remoterelease

package
v0.6.22 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package remoterelease provides a content-addressed remote transport for signed ReDevPlugin release assets. It contains no source discovery or trust decisions: callers supply an already reviewed locator-to-asset projection.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidAssetSet = errors.New("remote release asset set is invalid")
	ErrAssetMissing    = errors.New("remote release asset is missing")
	ErrAssetMismatch   = errors.New("remote release asset identity mismatch")
)

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Locator string `json:"locator"`
	URL     string `json:"url"`
	SHA256  string `json:"sha256"`
	Size    int64  `json:"size"`
}

type AssetSet

type AssetSet struct {
	// contains filtered or unexported fields
}

AssetSet is an immutable, current-release projection. Updating a catalog creates a new set instead of mutating a set used by an in-flight operation.

func NewAssetSet

func NewAssetSet(options AssetSetOptions) (*AssetSet, error)

func (*AssetSet) FetchReleaseDocument

func (*AssetSet) FetchSigningLedgerArtifact

func (set *AssetSet) FetchSigningLedgerArtifact(ctx context.Context, request releasetrust.SigningLedgerRequest) (releasetrust.SigningLedgerResult, error)

func (*AssetSet) ResolveReleaseArtifact

func (set *AssetSet) ResolveReleaseArtifact(ctx context.Context, request host.ReleaseArtifactResolveRequest) (host.ResolvedPackageArtifact, error)

type AssetSetOptions

type AssetSetOptions struct {
	SourceID     string
	Channel      string
	QuotaKey     string
	AllowedHosts []string
	Assets       []Asset
	Fetcher      AssetFetcher
}

Jump to

Keyboard shortcuts

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