Documentation ¶
Index ¶
- Constants
- type Artifacts
- type Descriptor
- type FormatDecoder
- type FormatEncoder
- type FormatID
- type SBOM
- func (s SBOM) AllCoordinates() []file.Coordinates
- func (s SBOM) CoordinatesForPackage(p pkg.Package, rt ...artifact.RelationshipType) []file.Coordinates
- func (s SBOM) RelationshipsForPackage(p pkg.Package, rt ...artifact.RelationshipType) []artifact.Relationship
- func (s SBOM) RelationshipsSorted() []artifact.Relationship
- type Writer
Constants ¶
View Source
const AnyVersion = ""
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artifacts ¶
type Artifacts struct { Packages *pkg.Collection FileMetadata map[file.Coordinates]file.Metadata FileDigests map[file.Coordinates][]file.Digest FileContents map[file.Coordinates]string FileLicenses map[file.Coordinates][]file.License Executables map[file.Coordinates]file.Executable LinuxDistribution *linux.Release }
type Descriptor ¶
type FormatDecoder ¶
type FormatDecoder interface { // Decode will return an SBOM from the given reader. If the bytes are not a valid SBOM for the given format // then an error will be returned. Decode(io.Reader) (*SBOM, FormatID, string, error) // Identify will return the format ID and version for the given reader. Note: this does not validate the // full SBOM, only pulls the minimal information necessary to identify the format. Identify(io.Reader) (FormatID, string) }
type FormatEncoder ¶
type SBOM ¶
type SBOM struct { Artifacts Artifacts Relationships []artifact.Relationship Source source.Description Descriptor Descriptor }
func (SBOM) AllCoordinates ¶
func (s SBOM) AllCoordinates() []file.Coordinates
func (SBOM) CoordinatesForPackage ¶
func (s SBOM) CoordinatesForPackage(p pkg.Package, rt ...artifact.RelationshipType) []file.Coordinates
CoordinatesForPackage returns all coordinates for the provided package for provided relationship types If no types are provided, all relationship types are considered.
func (SBOM) RelationshipsForPackage ¶
func (s SBOM) RelationshipsForPackage(p pkg.Package, rt ...artifact.RelationshipType) []artifact.Relationship
RelationshipsForPackage returns all relationships for the provided types. If no types are provided, all relationships for the package are returned.
func (SBOM) RelationshipsSorted ¶
func (s SBOM) RelationshipsSorted() []artifact.Relationship
Click to show internal directories.
Click to hide internal directories.