Documentation ¶
Overview ¶
Package referrer is used for responses to the referrers to a manifest
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReferrerList ¶
type ReferrerList struct { Subject ref.Ref `json:"subject"` // subject queried Descriptors []descriptor.Descriptor `json:"descriptors"` // descriptors found in Index Annotations map[string]string `json:"annotations,omitempty"` // annotations extracted from Index Manifest manifest.Manifest `json:"-"` // returned OCI Index Tags []string `json:"-"` // tags matched when fetching referrers }
ReferrerList contains the response to a request for referrers to a subject
func (*ReferrerList) Add ¶ added in v0.4.5
func (rl *ReferrerList) Add(m manifest.Manifest) error
Add appends an entry to rl.Manifest, used to modify the client managed Index
func (*ReferrerList) Delete ¶ added in v0.4.5
func (rl *ReferrerList) Delete(m manifest.Manifest) error
Delete removes an entry from rl.Manifest, used to modify the client managed Index
func (ReferrerList) IsEmpty ¶ added in v0.4.5
func (rl ReferrerList) IsEmpty() bool
IsEmpty reports if the returned Index contains no manifests
func (ReferrerList) MarshalPretty ¶
func (rl ReferrerList) MarshalPretty() ([]byte, error)
MarshalPretty is used for printPretty template formatting
Click to show internal directories.
Click to hide internal directories.