types

package
v1.0.0-rc.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SpecVersion string = "0.1.0"
	Version     string = "version"
	Name        string = "name"
	Source      string = "source"
)
View 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

Jump to

Keyboard shortcuts

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