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 ( // LabelValueBundleResolverType is the value to use for the // resolution.tekton.dev/type label on resource requests LabelValueBundleResolverType string = "bundles" // BundleResolverName is the name that the bundle resolver should be associated with. BundleResolverName = "bundleresolver" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver implements a framework.Resolver that can fetch files from OCI bundles.
func (*Resolver) GetConfigName ¶
GetConfigName returns the name of the bundle resolver's configmap.
func (*Resolver) GetSelector ¶
GetSelector returns a map of labels to match requests to this Resolver.
func (*Resolver) Initialize ¶
Initialize sets up any dependencies needed by the Resolver. None atm.
func (*Resolver) Resolve ¶
func (r *Resolver) Resolve(ctx context.Context, req *v1beta1.ResolutionRequestSpec) (resolutionframework.ResolvedResource, error)
Resolve uses the given request spec resolve the requested file or resource.
Click to show internal directories.
Click to hide internal directories.