oci

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Anonymous

type Anonymous authn.AuthConfig

Anonymous is an authn.AuthConfig that always returns an anonymous authenticator. It is useful for registries that do not require authentication or when the credentials are not known. It implements authn.Keychain `Resolve` method and can be used as a keychain.

func (Anonymous) Resolve

func (a Anonymous) Resolve(_ authn.Resource) (authn.Authenticator, error)

Resolve implements authn.Keychain.

type Options

type Options func(opts *options)

Options is a function that configures the options applied to a Verifier.

func WithPublicKey

func WithPublicKey(publicKey []byte) Options

WithPublicKey sets the public key.

func WithRemoteOptions

func WithRemoteOptions(opts ...remote.Option) Options

WithRemoteOptions is a functional option for overriding the default remote options used by the verifier.

type Verifier

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

Verifier is a struct which is responsible for executing verification logic.

func NewVerifier

func NewVerifier(ctx context.Context, opts ...Options) (*Verifier, error)

NewVerifier initializes a new Verifier.

func (*Verifier) VerifyImageSignatures

func (v *Verifier) VerifyImageSignatures(ctx context.Context, ref name.Reference) ([]oci.Signature, bool, error)

VerifyImageSignatures verify the authenticity of the given ref OCI image.

Jump to

Keyboard shortcuts

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