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

releasetrustfixture

package
v1.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentTransport

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

func (*DocumentTransport) Calls

func (transport *DocumentTransport) Calls() int

func (*DocumentTransport) FetchReleaseDocument

func (*DocumentTransport) FirstDeadlineRemaining added in v0.7.8

func (transport *DocumentTransport) FirstDeadlineRemaining() (time.Duration, bool)

func (*DocumentTransport) SetBlocked added in v0.7.7

func (transport *DocumentTransport) SetBlocked(blocked bool)

type Fixture

type Fixture struct {
	Service               *releasetrust.ReleaseTrustService
	ServiceSet            *releasetrust.ServiceSet
	Identity              releasetrust.ReleaseIdentity
	SourcePolicy          releasecontract.SourcePolicyV2
	Package               pluginpkg.Package
	PackageBytes          []byte
	Metadata              releasecontract.ReleaseMetadataV8
	MetadataBytes         []byte
	MetadataSignature     []byte
	PackageSignature      releasecontract.PackageSignatureV1
	SigningPrivateKey     ed25519.PrivateKey
	DocumentTransport     *DocumentTransport
	ReleaseArtifactSHA256 string
	GeneratedAt           time.Time
	ExpiresAt             time.Time
}

func New

func New(packageBytes []byte, options Options) (*Fixture, error)

func (*Fixture) RevokeRelease added in v1.0.0

func (fixture *Fixture) RevokeRelease(now time.Time) error

func (*Fixture) RevokeSigningKey added in v1.0.0

func (fixture *Fixture) RevokeSigningKey(now time.Time) error

type Options

type Options struct {
	SourceID             string
	Channel              string
	SourceType           string
	SourceClass          string
	InstallPolicy        string
	DowngradePolicy      string
	AllowedArtifactHosts []string
	HostRequirements     []releasecontract.ReleaseHostRequirement
	GeneratedAt          time.Time
	ExpiresAt            time.Time
}

Jump to

Keyboard shortcuts

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