trust

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	VerifyByPolicy(string, *image.Reference, credential.Credentials, *policyv1.Policy) (*bytes.Buffer, error, error)
}

Interface is for verifying notary signatures

type Signer

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

Signer struct holds the signer and publicKey from a SignerSecret

type Verifier

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

Verifier is the notary controller

func NewVerifier

func NewVerifier(kubeWrapper kubernetes.WrapperInterface, trust notary.Interface, cr registryclient.Interface) *Verifier

NewVerifier creates a new controller object from the various clients passed in

func (*Verifier) VerifyByPolicy

func (v *Verifier) VerifyByPolicy(namespace string, img *image.Reference, credentials credential.Credentials, policy *policyv1.Policy) (*bytes.Buffer, error, error)

VerifyByPolicy ...

Jump to

Keyboard shortcuts

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