releaseartifact

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2026 License: GPL-3.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package releaseartifact defines deterministic public-release metadata and files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CycloneDX

func CycloneDX(component Component, inventory DependencyInventory) ([]byte, error)

func WriteArchive

func WriteArchive(writer io.Writer, entries []ArchiveEntry, epoch time.Time) error

Types

type ArchiveEntry

type ArchiveEntry struct {
	Name string
	Mode fs.FileMode
	Data []byte
}

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 Component

type Component struct {
	ID      string `json:"id"`
	Kind    string `json:"kind"`
	Version string `json:"version"`
	Tag     string `json:"tag"`
	Package string `json:"package"`
	Binary  string `json:"binary"`
}

type Dependency

type Dependency struct {
	Module           string `json:"module"`
	Version          string `json:"version"`
	License          string `json:"license"`
	LicenseSHA256    string `json:"license_sha256"`
	ReleaseBlocked   bool   `json:"release_blocked,omitempty"`
	ReleaseBlockerID string `json:"release_blocker_id,omitempty"`
}

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

type ModuleVersion struct {
	Module  string
	Version string
}

ModuleVersion is one external module/version pair reachable from an exact component build configuration.

type Plan

type Plan struct {
	SchemaVersion int         `json:"schema_version"`
	Components    []Component `json:"components"`
}

func DecodePlan

func DecodePlan(data []byte) (Plan, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL