oci

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: Apache-2.0 Imports: 14 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 = 10
)

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(kind, name string) (runtime.Object, error)

Get retrieves a specific object with the given Kind and name

func (*Resolver) List

func (o *Resolver) List() ([]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