Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 map[string]string) 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 ¶
func (*ErrorInvalidRuntimeObject) Is(e error) bool
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.