signature

package
v0.37.3 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessDeniedErr added in v0.34.0

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

AccessDeniedErr specific access denied error

func (AccessDeniedErr) Error added in v0.34.0

func (a AccessDeniedErr) Error() string

Error Access Denied message

func (AccessDeniedErr) ImageRef added in v0.34.0

func (a AccessDeniedErr) ImageRef() string

ImageRef Image Reference and associated to the error

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 FetchError added in v0.34.0

type FetchError struct {
	AllErrors []FetchingError
}

FetchError Struct that will contain all the errors found while fetching signatures

func (*FetchError) Add added in v0.34.0

func (f *FetchError) Add(err FetchingError)

Add a new error to the list of errors

func (*FetchError) Error added in v0.34.0

func (f *FetchError) Error() string

Error message that contains all errors

func (*FetchError) HasErrors added in v0.34.0

func (f *FetchError) HasErrors() bool

HasErrors check if any error happened

type FetchingError added in v0.34.0

type FetchingError interface {
	error
	ImageRef() string
}

FetchingError Error type that happen when fetching signatures

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(_ []lockconfig.ImageRef) ([]lockconfig.ImageRef, error)

FetchForImageRefs Retrieve the available signatures associated with the images provided

type NotFoundErr

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

NotFoundErr specific not found error

func (NotFoundErr) Error

func (n NotFoundErr) Error() string

Error Not Found Error message

func (NotFoundErr) ImageRef added in v0.34.0

func (n NotFoundErr) ImageRef() string

ImageRef Image Reference and associated to the error

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