sign

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

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

func NewSigner

func NewSigner(o *SignerOption) *Signer

func (*Signer) Sign

func (s *Signer) Sign(ctx context.Context) error

type SignerOption

type SignerOption struct {
	Reference    typesv5.ImageReference
	RetryOptions *retry.Options
	Policy       *signaturev5.Policy

	CopyOptions *copyv5.Options
}

type Validator

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

func NewValidator

func NewValidator(o *ValidatorOption) *Validator

func (*Validator) Validate

func (v *Validator) Validate(ctx context.Context) error

type ValidatorOption

type ValidatorOption struct {
	// Reference is the image reference to be validate.
	Reference typesv5.ImageReference
	// If Repository is not empty, use the containers/image 'exactRepository'
	// signedIdentity to validate the signed image.
	// Validator will use the 'matchRepoDigestOrExact'
	Repository string
	// Pubkey is the sigstore public key file.
	Pubkey string
	// SystemContext
	SystemContext *typesv5.SystemContext
	// RetryOptions, can be nil
	RetryOptions *retry.Options
}

Jump to

Keyboard shortcuts

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