gocsaf / csaf

Tools to download or provide CSAF (Common Security Advisory Framework) documents.
https://csaf.io
40 stars 23 forks source link

Go-Library: Add the ability to import a csaf-document into a go-structure and export it #560

Open JanHoefelmeyer opened 3 months ago

JanHoefelmeyer commented 3 months ago

This issue depends on https://github.com/csaf-poc/csaf_distribution/issues/559.

Any csaf-document should be able to be read into that go-structure, and any go-structure should be able to be saved or exported as csaf-document.

This will allow modification and creation of csaf-documents via the csaf-go-library, see https://github.com/csaf-poc/csaf_distribution/issues/367#issue-1711582988

Note that the standard-name when saving the document as file must confirm to the pattern defined in https://docs.oasis-open.org/csaf/csaf/v2.0/os/csaf-v2.0-os.html#51-filename

Also note that when saving, the keys of the document need to be able to be sorted where applicable.