Documentation ¶
Index ¶
- Constants
- func NewStore(version string, storeConfig config.StorePluginConfig, pluginPaths []string) (referrerstore.ReferrerStore, error)
- type ReferrerStorePluginArgs
- type StorePlugin
- func (sp *StorePlugin) GetBlobContent(ctx context.Context, subjectReference common.Reference, digest digest.Digest) ([]byte, error)
- func (sp *StorePlugin) GetConfig() *config.StoreConfig
- func (sp *StorePlugin) GetReferenceManifest(ctx context.Context, subjectReference common.Reference, ...) (ocispecs.ReferenceManifest, error)
- func (sp *StorePlugin) GetSubjectDescriptor(ctx context.Context, subjectReference common.Reference) (*ocispecs.SubjectDescriptor, error)
- func (sp *StorePlugin) ListReferrers(ctx context.Context, subjectReference common.Reference, artifactTypes []string, ...) (referrerstore.ListReferrersResult, error)
- func (sp *StorePlugin) Name() string
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 (*StorePlugin) GetConfig ¶
func (sp *StorePlugin) GetConfig() *config.StoreConfig
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, subjectDesc *ocispecs.SubjectDescriptor) (referrerstore.ListReferrersResult, error)
func (*StorePlugin) Name ¶
func (sp *StorePlugin) Name() string
Click to show internal directories.
Click to hide internal directories.