remote

package
v0.53.7 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrRequestInProgress is a sentinel value that indicates
	// resolving a remote file like a pipeline in a bundle or
	// a task in git hasn't completed yet.
	ErrRequestInProgress = errors.New("resource request in progress")

	// ErrorRequestInProgress is an alias for ErrRequestInProgress and will be
	// removed in a future release..
	//
	// Deprecated: use ErrRequestInProgress instead
	ErrorRequestInProgress = ErrRequestInProgress
)

Functions

This section is empty.

Types

type ResolvedObject

type ResolvedObject struct {
	Kind       string
	APIVersion string
	Name       string
}

ResolvedObject is returned by Resolver.List representing a Tekton resource stored in a remote location.

type Resolver

type Resolver interface {
	List(ctx context.Context) ([]ResolvedObject, error)
	Get(ctx context.Context, kind, name string) (runtime.Object, *v1.RefSource, error)
}

Resolver defines a generic API to retrieve Tekton resources from remote locations. It allows 2 principle operations:

  • List: retrieve a flat set of Tekton objects in this remote location
  • Get: retrieves a specific object with the given Kind and name, and the refSource identifying where the resource came from.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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