Documentation ¶
Index ¶
Constants ¶
View Source
const ID sbom.FormatID = "github-0-json"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DependencyGraph ¶
type DependencyGraph map[string]DependencyNode
type DependencyNode ¶
type DependencyNode struct { Purl string `json:"purl,omitempty"` Metadata Metadata `json:"metadata,omitempty"` Relationship DependencyRelationship `json:"relationship,omitempty"` Scope DependencyScope `json:"scope,omitempty"` Dependencies []string `json:"dependencies,omitempty"` }
type DependencyRelationship ¶
type DependencyRelationship string
DependencyRelationship A notation of whether a dependency is requested directly by this manifest, or is a dependency of another dependency.
const ( DependencyRelationshipDirect DependencyRelationship = "direct" DependencyRelationshipIndirect DependencyRelationship = "indirect" )
type DependencyScope ¶
type DependencyScope string
DependencyScope A notation of whether the dependency is required for the primary build artifact (runtime), or is only used for development. Future versions of this specification may allow for more granular scopes, like `runtimeserver`, `runtimeshipped`, `developmenttest`, `developmentbenchmark`.
const ( DependencyScopeRuntime DependencyScope = "runtime" DependencyScopeDevelopment DependencyScope = "development" )
type DependencySnapshot ¶
type DependencySnapshot struct { Version int `json:"version"` Job Job `json:"job,omitempty"` // !omitempty Sha string `json:"sha,omitempty"` // !omitempty sha of the Git commit Ref string `json:"ref,omitempty"` // !omitempty ref of the Git commit example "refs/heads/main" Detector DetectorMetadata `json:"detector,omitempty"` Metadata Metadata `json:"metadata,omitempty"` Manifests Manifests `json:"manifests,omitempty"` Scanned ISO8601Date `json:"scanned,omitempty"` }
type DetectorMetadata ¶
type ISO8601Date ¶
type ISO8601Date = string
type Manifest ¶
type Manifest struct { Name string `json:"name"` File FileInfo `json:"file"` Metadata Metadata `json:"metadata,omitempty"` Resolved DependencyGraph `json:"resolved,omitempty"` }
Manifest A collection of related dependencies, either declared in a file, or representing a logical group of dependencies.
Click to show internal directories.
Click to hide internal directories.