resolution

package
v0.41.2 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorRequestedResourceIsNil = errors.New("unknown error occurred: requested resource is nil")

ErrorRequestedResourceIsNil is returned when remote resolution appears to have succeeded but the resolved resource is nil.

Functions

func NewResolver

func NewResolver(requester remoteresource.Requester, owner kmeta.OwnerRefable, resolverName string, targetName string, targetNamespace string, params []v1beta1.Param) remote.Resolver

NewResolver returns an implementation of remote.Resolver capable of performing asynchronous remote resolution.

Types

type ErrorAccessingData

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

ErrorAccessingData is returned when remote resolution succeeded but attempting to access the resolved data failed. An example of this type of error would be if a ResolutionRequest contained malformed base64.

func (*ErrorAccessingData) Error

func (e *ErrorAccessingData) Error() string

Error returns the string representation of this error.

func (*ErrorAccessingData) Is

func (*ErrorAccessingData) Is(e error) bool

Is returns true if the given error coerces into an error of this type.

func (*ErrorAccessingData) Unwrap

func (e *ErrorAccessingData) Unwrap() error

Unwrap returns the underlying original error.

type ErrorInvalidRuntimeObject

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

ErrorInvalidRuntimeObject is returned when remote resolution succeeded but the returned data is not a valid runtime.Object.

func (*ErrorInvalidRuntimeObject) Error

func (e *ErrorInvalidRuntimeObject) Error() string

Error returns the string representation of this error.

func (*ErrorInvalidRuntimeObject) Is

Is returns true if the given error coerces into an error of this type.

func (*ErrorInvalidRuntimeObject) Unwrap

func (e *ErrorInvalidRuntimeObject) Unwrap() error

Unwrap returns the underlying original error.

type Resolver

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

Resolver implements remote.Resolver and encapsulates the majority of code required to interface with the tektoncd/resolution project. It is used to make async requests for resources like pipelines from remote places like git repos.

func (*Resolver) Get

func (resolver *Resolver) Get(ctx context.Context, _, _ string) (runtime.Object, error)

Get implements remote.Resolver.

func (*Resolver) List

func (resolver *Resolver) List(_ context.Context) ([]remote.ResolvedObject, error)

List implements remote.Resolver but is unused for remote resolution.

Jump to

Keyboard shortcuts

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