internal

package
v5.30.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*SigstoreSigner) error

type SigstoreSigner

type SigstoreSigner struct {
	PrivateKey       sigstoreSignature.Signer // May be nil during initialization
	SigningKeyOrCert []byte                   // For possible Rekor upload; always initialized together with PrivateKey

	// Fulcio results to include
	FulcioGeneratedCertificate      []byte // Or nil
	FulcioGeneratedCertificateChain []byte // Or nil

	// Rekor state
	RekorUploader func(ctx context.Context, keyOrCertBytes []byte, signatureBytes []byte, payloadBytes []byte) ([]byte, error) // Or nil
}

SigstoreSigner is a signer.SignerImplementation implementation for sigstore signatures. It is initialized using various closures that implement Option, sadly over several subpackages, to decrease the dependency impact.

func (*SigstoreSigner) Close

func (s *SigstoreSigner) Close() error

func (*SigstoreSigner) ProgressMessage

func (s *SigstoreSigner) ProgressMessage() string

ProgressMessage returns a human-readable sentence that makes sense to write before starting to create a single signature.

func (*SigstoreSigner) SignImageManifest

func (s *SigstoreSigner) SignImageManifest(ctx context.Context, m []byte, dockerReference reference.Named) (signature.Signature, error)

SignImageManifest creates a new signature for manifest m as dockerReference.

Jump to

Keyboard shortcuts

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