referrerstore

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListReferrersResult

type ListReferrersResult struct {
	Referrers []ocispecs.ReferenceDescriptor
	NextToken string
}

ListReferrersResult represents the result of ListReferrers API

type ReferrerStore

type ReferrerStore interface {
	// Name is the name of the store
	Name() string

	// ListReferrers returns the immediate set of supply chain objects for the given subject
	// represented as artifact manifests
	ListReferrers(ctx context.Context, subjectReference common.Reference, artifactTypes []string, nextToken string, subjectDesc *ocispecs.SubjectDescriptor) (ListReferrersResult, error)

	// GetBlobContent returns the blob with the given digest
	// WARNING: This API is intended to use for small objects like signatures, SBoMs
	GetBlobContent(ctx context.Context, subjectReference common.Reference, digest digest.Digest) ([]byte, error)

	// GetReferenceManifest returns the reference artifact manifest as given by the descriptor
	GetReferenceManifest(ctx context.Context, subjectReference common.Reference, referenceDesc ocispecs.ReferenceDescriptor) (ocispecs.ReferenceManifest, error)

	// GetConfig returns the configuration of this store
	GetConfig() *config.StoreConfig

	// GetSubjectDescriptor returns the descriptor for the given subject.
	GetSubjectDescriptor(ctx context.Context, subjectReference common.Reference) (*ocispecs.SubjectDescriptor, error)
}

ReferrerStore is an interface that defines methods to query the graph of supply chain content including its related content

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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