remoterelease

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: MIT Imports: 16 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
	FetchTimeout time.Duration
}

type Error added in v0.7.2

type Error struct {
	Phase         string
	ArtifactRole  string
	Retryable     bool
	Attempts      int
	LocatorSHA256 string
	// contains filtered or unexported fields
}

func DetailsOf added in v0.7.2

func DetailsOf(err error) (Error, bool)

func (*Error) Error added in v0.7.2

func (e *Error) Error() string

func (*Error) ReleaseArtifactFailure added in v0.7.2

func (e *Error) ReleaseArtifactFailure() host.ReleaseArtifactFailure

func (*Error) Unwrap added in v0.7.2

func (e *Error) Unwrap() error

Jump to

Keyboard shortcuts

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