Documentation
¶
Overview ¶
Package releaseartifact defines deterministic public-release metadata and files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteArchive ¶
Types ¶
type CatalogPredecessor ¶
type CatalogPredecessor struct {
SchemaVersion int `json:"schema_version"`
FirstRelease bool `json:"first_release,omitempty"`
Tag string `json:"tag,omitempty"`
CatalogSHA256 string `json:"catalog_sha256,omitempty"`
SignatureSHA256 string `json:"signature_sha256,omitempty"`
}
CatalogPredecessor binds publication to either the one explicit first release or the exact signed catalog bytes from the preceding core release.
func DecodeCatalogPredecessor ¶
func DecodeCatalogPredecessor(data []byte) (CatalogPredecessor, error)
DecodeCatalogPredecessor strictly decodes the tracked stable-catalog chain.
type Dependency ¶
type DependencyInventory ¶
type DependencyInventory struct {
SchemaVersion int `json:"schema_version"`
Modules []Dependency `json:"modules"`
}
func DecodeDependencyInventory ¶
func DecodeDependencyInventory(data []byte) (DependencyInventory, error)
func SelectDependencies ¶
func SelectDependencies(inventory DependencyInventory, reachable []ModuleVersion) (DependencyInventory, error)
SelectDependencies requires an exact reviewed inventory entry for every external module/version reachable from a component and returns only that component's stable closure.
type ModuleVersion ¶
ModuleVersion is one external module/version pair reachable from an exact component build configuration.