oci

package
v0.0.0-...-4fc8c9b Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

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

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