Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PluginMain ¶
func PluginMain(name, version string, verifyReference VerifyReference, supportedVersions []string)
PluginMain is the core "main" for a plugin which includes error handling.
Types ¶
type CmdArgs ¶
type CmdArgs struct { Version string Subject string StdinData []byte // contains filtered or unexported fields }
CmdArgs describes arguments that are passed when the plugin is invoked
type VerifyReference ¶
type VerifyReference func(args *CmdArgs, subjectReference common.Reference, referenceDescriptor ocispecs.ReferenceDescriptor, referrerStore referrerstore.ReferrerStore) (*verifier.VerifierResult, error)
Click to show internal directories.
Click to hide internal directories.