registry

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstallOptions

type InstallOptions struct {
	Source              string
	CacheDir            string
	PublicKey           ed25519.PublicKey
	AllowHosts          []string
	PublisherAllowlist  []string
	PinDigest           string
	HTTPClient          *http.Client
	RetryMaxAttempts    int
	RetryBaseDelay      time.Duration
	AllowInsecureHTTP   bool
	AllowCachedFallback bool
}

type InstallResult

type InstallResult struct {
	Source       string                      `json:"source"`
	PackName     string                      `json:"pack_name"`
	PackVersion  string                      `json:"pack_version"`
	Digest       string                      `json:"digest"`
	MetadataPath string                      `json:"metadata_path"`
	PinPath      string                      `json:"pin_path"`
	FallbackUsed bool                        `json:"fallback_used,omitempty"`
	FallbackPath string                      `json:"fallback_path,omitempty"`
	Manifest     schemaregistry.RegistryPack `json:"manifest"`
}

func Install

func Install(ctx context.Context, options InstallOptions) (InstallResult, error)

type InstalledPack

type InstalledPack struct {
	PackName     string `json:"pack_name"`
	PackVersion  string `json:"pack_version"`
	Digest       string `json:"digest"`
	MetadataPath string `json:"metadata_path"`
	PinPath      string `json:"pin_path,omitempty"`
	PinDigest    string `json:"pin_digest,omitempty"`
	PinVerified  bool   `json:"pin_verified"`
}

func List

func List(options ListOptions) ([]InstalledPack, error)

type ListOptions

type ListOptions struct {
	CacheDir string
}

type VerifyOptions

type VerifyOptions struct {
	MetadataPath       string
	CacheDir           string
	PublicKey          ed25519.PublicKey
	PublisherAllowlist []string
}

type VerifyResult

type VerifyResult struct {
	PackName          string `json:"pack_name"`
	PackVersion       string `json:"pack_version"`
	Digest            string `json:"digest"`
	MetadataPath      string `json:"metadata_path"`
	PinPath           string `json:"pin_path,omitempty"`
	PinDigest         string `json:"pin_digest,omitempty"`
	PinPresent        bool   `json:"pin_present"`
	PinVerified       bool   `json:"pin_verified"`
	SignatureVerified bool   `json:"signature_verified"`
	SignatureError    string `json:"signature_error,omitempty"`
	Publisher         string `json:"publisher,omitempty"`
	Source            string `json:"source,omitempty"`
	PublisherAllowed  bool   `json:"publisher_allowed,omitempty"`
}

func Verify

func Verify(options VerifyOptions) (VerifyResult, error)

Jump to

Keyboard shortcuts

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