referrer

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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

func FallbackTag added in v0.4.5

func FallbackTag(r ref.Ref) (ref.Ref, error)

FallbackTag returns the ref that should be used when the registry does not support the referrers API

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

Jump to

Keyboard shortcuts

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