plugin

package
v1.0.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VerifyCommand = "VERIFY"
	CommandEnvKey = "RATIFY_VERIFIER_COMMAND"
	SubjectEnvKey = "RATIFY_VERIFIER_SUBJECT"
	VersionEnvKey = "RATIFY_VERIFIER_VERSION"
)

Variables

This section is empty.

Functions

func NewVerifier

func NewVerifier(version string, verifierConfig config.VerifierConfig, pluginPaths []string) (verifier.ReferenceVerifier, error)

NewVerifier creates a new verifier from the given configuration

Types

type VerifierPlugin

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

VerifierPlugin describes a verifier that is implemented by invoking the plugins

func (*VerifierPlugin) CanVerify

func (vp *VerifierPlugin) CanVerify(ctx context.Context, referenceDescriptor ocispecs.ReferenceDescriptor) bool

func (*VerifierPlugin) GetNestedReferences

func (vp *VerifierPlugin) GetNestedReferences() []string

func (*VerifierPlugin) Name

func (vp *VerifierPlugin) Name() string

func (*VerifierPlugin) Verify

func (vp *VerifierPlugin) Verify(ctx context.Context,
	subjectReference common.Reference,
	referenceDescriptor ocispecs.ReferenceDescriptor,
	store referrerstore.ReferrerStore) (verifier.VerifierResult, error)

type VerifierPluginArgs

type VerifierPluginArgs struct {
	Command          string
	Version          string
	SubjectReference string
}

VerifierPluginArgs describes arguments that are passed to the verifier plugin

func (*VerifierPluginArgs) AsEnviron

func (args *VerifierPluginArgs) AsEnviron() []string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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