Documentation ¶
Index ¶
- Constants
- func GetListReferrersResult(result []byte) (referrerstore.ListReferrersResult, error)
- func GetReferenceManifestResult(result []byte) (ocispecs.ReferenceManifest, error)
- func GetSubjectDescriptorResult(result []byte) (*ocispecs.SubjectDescriptor, error)
- func WriteListReferrersResult(result *referrerstore.ListReferrersResult, w io.Writer) error
- func WriteReferenceManifestResult(result *ocispecs.ReferenceManifest, w io.Writer) error
- func WriteSubjectDescriptorResult(result *ocispecs.SubjectDescriptor, w io.Writer) error
- type ReferrersResult
Constants ¶
const ( SpecVersion string = "0.1.0" Version string = "version" Name string = "name" Source string = "source" )
const ( ErrUnknown uint = iota // 0 ErrConfigParsingFailure // 1 ErrInvalidStoreConfig // 2 ErrUnknownCommand // 3 ErrMissingEnvironmentVariables // 4 ErrIOFailure // 5 ErrVersionNotSupported // 6 ErrArgsParsingFailure // 7 ErrPluginCmdFailure // 8 ErrInternalFailure uint = 999 )
Variables ¶
This section is empty.
Functions ¶
func GetListReferrersResult ¶
func GetListReferrersResult(result []byte) (referrerstore.ListReferrersResult, error)
GetListReferrersResult unmarshall the given JSON data to list referrers result
func GetReferenceManifestResult ¶
func GetReferenceManifestResult(result []byte) (ocispecs.ReferenceManifest, error)
GetReferenceManifestResult unmarshall the given JSON data to reference manifest
func GetSubjectDescriptorResult ¶
func GetSubjectDescriptorResult(result []byte) (*ocispecs.SubjectDescriptor, error)
GetSubjectDescriptorResult unmarshall the given JSON data to the subject descriptor
func WriteListReferrersResult ¶
func WriteListReferrersResult(result *referrerstore.ListReferrersResult, w io.Writer) error
WriteListReferrersResult writes the list referrers result as JSON data to the given writer
func WriteReferenceManifestResult ¶
func WriteReferenceManifestResult(result *ocispecs.ReferenceManifest, w io.Writer) error
WriteReferenceManifestResult writes the reference manifest as JSON data in to the given writer
func WriteSubjectDescriptorResult ¶
func WriteSubjectDescriptorResult(result *ocispecs.SubjectDescriptor, w io.Writer) error
WriteSubjectDescriptorResult writes the subject descriptor as JSON data in to the given writer
Types ¶
type ReferrersResult ¶
type ReferrersResult struct { Referrers []ocispecs.ReferenceDescriptor `json:"referrers"` NextToken string `json:"nextToken"` }
TODO Versioned Referrers result (based on the version serialize/deserialize the result) ReferrersResult is the result of ListReferrers as returned by the plugins