cosign

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CosignRepositoryEnv       = "COSIGN_REPOSITORY"
	CosignDockerMediaTypesEnv = "COSIGN_DOCKER_MEDIA_TYPES"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BuilderSigner added in v0.13.0

type BuilderSigner interface {
	SignBuilder(context.Context, string, []*corev1.Secret, authn.Keychain) ([]v1alpha2.CosignSignature, error)
}

type FetchSignatureFunc added in v0.13.0

type FetchSignatureFunc func(name.Reference, ...cosignremote.Option) (name.Tag, error)

type ImageSigner

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

func NewImageSigner

func NewImageSigner(signFunc SignFunc, fetchSignatureFunc FetchSignatureFunc) *ImageSigner

func (*ImageSigner) Sign

func (s *ImageSigner) Sign(ro *cosignoptions.RootOptions, report files.Report, secretLocation string, annotations, cosignRepositories, cosignDockerMediaTypes map[string]interface{}) error

func (*ImageSigner) SignBuilder added in v0.13.0

func (s *ImageSigner) SignBuilder(
	ctx context.Context,
	imageReference string,
	serviceAccountSecrets []*corev1.Secret,
	builderKeychain authn.Keychain,
) ([]v1alpha2.CosignSignature, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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