Documentation ¶
Index ¶
- Constants
- type Resolver
- func (r *Resolver) GetConfigName(context.Context) string
- func (r *Resolver) GetName(_ context.Context) string
- func (r *Resolver) GetSelector(_ context.Context) map[string]string
- func (r *Resolver) Initialize(ctx context.Context) error
- func (r *Resolver) Resolve(ctx context.Context, req *v1beta1.ResolutionRequestSpec) (resolutionframework.ResolvedResource, error)
- func (r *Resolver) Validate(ctx context.Context, req *v1beta1.ResolutionRequestSpec) error
Constants ¶
View Source
const ( // LabelValueClusterResolverType is the value to use for the // resolution.tekton.dev/type label on resource requests LabelValueClusterResolverType string = "cluster" // ClusterResolverName is the name that the cluster resolver should be // associated with ClusterResolverName string = "Cluster" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
ResolverV2 implements a framework.Resolver that can fetch resources from other namespaces.
func (*Resolver) GetConfigName ¶
GetConfigName returns the name of the cluster resolver's configmap.
func (*Resolver) GetName ¶
GetName returns the string name that the cluster resolver should be associated with.
func (*Resolver) GetSelector ¶
GetSelector returns the labels that resource requests are required to have for the cluster resolver to process them.
func (*Resolver) Initialize ¶
Initialize performs any setup required by the cluster resolver.
func (*Resolver) Resolve ¶
func (r *Resolver) Resolve(ctx context.Context, req *v1beta1.ResolutionRequestSpec) (resolutionframework.ResolvedResource, error)
Resolve performs the work of fetching a resource from a namespace with the given resolution spec.
Click to show internal directories.
Click to hide internal directories.