signature

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 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

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

AccessDeniedErr specific access denied error

func (AccessDeniedErr) Error

func (a AccessDeniedErr) Error() string

Error Access Denied message

func (AccessDeniedErr) ImageRef

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

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

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

type FetchError

type FetchError struct {
	AllErrors []FetchingError
}

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

func (*FetchError) Add

func (f *FetchError) Add(err FetchingError)

Add a new error to the list of errors

func (*FetchError) Error

func (f *FetchError) Error() string

Error message that contains all errors

func (*FetchError) HasErrors

func (f *FetchError) HasErrors() bool

HasErrors check if any error happened

type FetchingError

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

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

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

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