signature

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 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 Cosign

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

Cosign Signature retriever

func NewCosign

func NewCosign(reg DigestReader) *Cosign

NewCosign constructor for Signature retriever

func (Cosign) Signature

func (c Cosign) Signature(imageRef regname.Digest) (imageset.UnprocessedImageRef, error)

Signature retrieves the Image information that contains the signature for the provided Image

type DigestReader added in v0.26.0

type DigestReader interface {
	Digest(reference regname.Reference) (regv1.Hash, error)
}

DigestReader Interface that knows how to read a Digest from a registry

type Finder

type Finder interface {
	Signature(reference name.Digest) (imageset.UnprocessedImageRef, error)
}

type Noop

type Noop struct{}

Noop No Operation signature fetcher

func NewNoop

func NewNoop() *Noop

NewNoop Constructs a no operation signature fetcher

func (Noop) Fetch

Fetch Do nothing

func (Noop) FetchForImageRefs added in v0.27.0

func (n Noop) FetchForImageRefs(images []lockconfig.ImageRef) ([]lockconfig.ImageRef, error)

FetchForImageRefs Retrieve the available signatures associated with the images provided

type NotFoundErr

type NotFoundErr struct{}

NotFoundErr specific not found error

func (NotFoundErr) Error

func (s NotFoundErr) Error() string

Error Not Found Error message

type Signatures

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

Signatures Signature fetcher

func NewSignatures

func NewSignatures(finder Finder, concurrency int) *Signatures

NewSignatures constructs the Signature Fetcher

func (*Signatures) Fetch

Fetch Retrieve the available signatures associated with the images provided

func (*Signatures) FetchForImageRefs added in v0.26.0

func (s *Signatures) FetchForImageRefs(images []lockconfig.ImageRef) ([]lockconfig.ImageRef, error)

FetchForImageRefs Retrieve the available signatures associated with the images provided

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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