Help us shape the future of Go! Take the 2026 Go Developer Survey

artifact

package
v0.2.61 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DescriptorFileName        = "provider.artifact.json"
	DescriptorSchemaV0        = "codefly.provider-artifact/v0"
	InstalledManifestSuffix   = ".provider.codefly.yaml"
	InstalledDescriptorSuffix = ".provider.artifact.json"
)

Variables

This section is empty.

Functions

func AdmitVersionTransition

func AdmitVersionTransition(current, next *Descriptor, currentStateVersion uint32) error

func IsIntegrityError

func IsIntegrityError(err error) bool

func MarshalDescriptor

func MarshalDescriptor(descriptor *Descriptor) ([]byte, error)

Types

type Descriptor

type Descriptor struct {
	SchemaVersion         string `json:"schema_version"`
	ProtocolVersion       string `json:"protocol_version"`
	ManifestSchemaVersion string `json:"manifest_schema_version"`
	Publisher             string `json:"publisher"`
	Name                  string `json:"name"`
	Version               string `json:"version"`
	BinaryPath            string `json:"binary_path"`
	BinaryDigest          string `json:"binary_digest"`
	ManifestPath          string `json:"manifest_path"`
	ManifestDigest        string `json:"manifest_digest"`
	ArtifactDigest        string `json:"artifact_digest"`
}

func BuildDescriptor

func BuildDescriptor(binaryName string, binary, manifestBytes []byte) (*Descriptor, error)

func ParseDescriptor

func ParseDescriptor(data []byte) (*Descriptor, error)

type Verified

type Verified struct {
	Descriptor *Descriptor
	Manifest   *manifest.Manifest
	BinaryPath string
}

func InstallLayout

func InstallLayout(root, target string, expected *resources.Agent) (*Verified, error)

func VerifyExecutable

func VerifyExecutable(binaryPath string, expected *resources.Agent) (*Verified, error)

func VerifyLayout

func VerifyLayout(root string, expected *resources.Agent) (*Verified, error)

func (*Verified) AdmitRuntimeCatalog

func (v *Verified) AdmitRuntimeCatalog(runtime *providerv0.RuntimeCatalog) (*manifest.Catalog, error)

Jump to

Keyboard shortcuts

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