Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct { BOMRef string `json:"bom-ref"` Type string `json:"type"` Name string `json:"name"` Version string `json:"version"` Description string `json:"description"` PUrl string `json:"purl"` Hashes []Hash `json:"hashes,omitempty"` ExternalReferences []ExternalReference `json:"externalReferences,omitempty"` Licenses []License `json:"licenses,omitempty"` Components []Component `json:"components,omitempty"` }
type CycloneDX ¶
type CycloneDX struct {
// contains filtered or unexported fields
}
func (*CycloneDX) GenerateIndex ¶ added in v0.5.0
type Dependency ¶
type Document ¶
type Document struct { BOMFormat string `json:"bomFormat"` SpecVersion string `json:"specVersion"` Version int `json:"version"` Components []Component `json:"components,omitempty"` Dependencies []Dependency `json:"dependencies,omitempty"` }
TODO(kaniini): Move most of this over to gitlab.alpinelinux.org/alpine/go.
type ExternalReference ¶
type Hash ¶ added in v0.5.0
type Hash struct { Algorithm HashAlgorithm `json:"alg"` Value string `json:"content"` }
type HashAlgorithm ¶ added in v0.5.0
type HashAlgorithm string
Click to show internal directories.
Click to hide internal directories.