cosign

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 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 ImageSigner

type ImageSigner struct {
	Logger *log.Logger
	// contains filtered or unexported fields
}

func NewImageSigner

func NewImageSigner(logger *log.Logger, signFunc SignFunc) *ImageSigner

func (*ImageSigner) Sign

func (s *ImageSigner) Sign(ctx context.Context, report platform.ExportReport, secretLocation string, annotations, cosignRepositories, cosignDockerMediaTypes map[string]interface{}) error

type SignFunc

type SignFunc func(
	ctx context.Context, ko sign.KeyOpts, registryOptions options.RegistryOptions, annotations map[string]interface{}, imageRef []string,
	certPath string, upload bool, outputSignature, outputCertificate string,
	payloadPath string, force, recursive bool, attachment string,
) error

Jump to

Keyboard shortcuts

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