oci

package
v0.50.6 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 15 Imported by: 5

Documentation

Index

Constants

View Source
const (
	// KindAnnotation is an OCI annotation for the bundle kind
	KindAnnotation = "dev.tekton.image.kind"
	// APIVersionAnnotation is an OCI annotation for the bundle version
	APIVersionAnnotation = "dev.tekton.image.apiVersion"
	// TitleAnnotation is an OCI annotation for the bundle title
	TitleAnnotation = "dev.tekton.image.name"
	// MaximumBundleObjects defines the maximum number of objects in a bundle
	MaximumBundleObjects = 20
)

Variables

This section is empty.

Functions

func NewResolver added in v0.18.0

func NewResolver(ref string, keychain authn.Keychain) remote.Resolver

NewResolver is a convenience function to return a new OCI resolver instance as a remote.Resolver with a short, 1m timeout for resolving an individual image.

Types

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver implements the Resolver interface using OCI images.

func (*Resolver) Get

func (o *Resolver) Get(ctx context.Context, kind, name string) (runtime.Object, *pipelinev1.RefSource, error)

Get retrieves a specific object with the given Kind and name

func (*Resolver) List

func (o *Resolver) List(ctx context.Context) ([]remote.ResolvedObject, error)

List retrieves a flat set of Tekton objects

Jump to

Keyboard shortcuts

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