plugin

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ListReferrersCommand  = "LISTREFERRERS"
	GetBlobContentCommand = "GETBLOB"
	GetRefManifestCommand = "GETREFMANIFEST"
	GetSubjectDescriptor  = "GETSUBJECTDESCRIPTOR"
	CommandEnvKey         = "RATIFY_STORE_COMMAND"
	SubjectEnvKey         = "RATIFY_STORE_SUBJECT"
	VersionEnvKey         = "RATIFY_STORE_VERSION"
	ArgsEnvKey            = "RATIFY_STORE_ARGS"
)

Variables

This section is empty.

Functions

func NewStore

func NewStore(version string, storeConfig config.StorePluginConfig, pluginPaths []string) (referrerstore.ReferrerStore, error)

Types

type ReferrerStorePluginArgs

type ReferrerStorePluginArgs struct {
	Command          string
	Version          string
	SubjectReference string
	PluginArgs       [][2]string
}

ReferrerStorePluginArgs describes all arguments that are passed when a store plugin is invoked

func (*ReferrerStorePluginArgs) AsEnviron

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

type StorePlugin

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

StorePlugin describes a store that is implemented by invoking the plugins

func (*StorePlugin) GetBlobContent

func (sp *StorePlugin) GetBlobContent(ctx context.Context, subjectReference common.Reference, digest digest.Digest) ([]byte, error)

func (*StorePlugin) GetConfig

func (sp *StorePlugin) GetConfig() *config.StoreConfig

func (*StorePlugin) GetPath

func (sp *StorePlugin) GetPath() []string

func (*StorePlugin) GetReferenceManifest

func (sp *StorePlugin) GetReferenceManifest(ctx context.Context, subjectReference common.Reference, referenceDesc ocispecs.ReferenceDescriptor) (ocispecs.ReferenceManifest, error)

func (*StorePlugin) GetSubjectDescriptor

func (sp *StorePlugin) GetSubjectDescriptor(ctx context.Context, subjectReference common.Reference) (*ocispecs.SubjectDescriptor, error)

func (*StorePlugin) ListReferrers

func (sp *StorePlugin) ListReferrers(ctx context.Context, subjectReference common.Reference, artifactTypes []string, nextToken string, _ *ocispecs.SubjectDescriptor) (referrerstore.ListReferrersResult, error)

func (*StorePlugin) Name

func (sp *StorePlugin) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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