Documentation ¶
Index ¶
- Constants
- func FetchHttpResource(ctx context.Context, params map[string]string, kubeclient kubernetes.Interface, ...) (framework.ResolvedResource, error)
- func IsDisabled(ctx context.Context) bool
- func PopulateDefaultParams(ctx context.Context, params []pipelinev1.Param) (map[string]string, error)
- func ValidateParams(ctx context.Context, params []pipelinev1.Param) error
- type Resolverdeprecated
- 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, oParams []pipelinev1.Param) (framework.ResolvedResource, error)
- func (r *Resolver) ValidateParams(ctx context.Context, params []pipelinev1.Param) error
Constants ¶
View Source
const ( // UrlParam is the URL to fetch the task from UrlParam string = resource.ParamURL // HttpBasicAuthUsername is the user name to use for basic auth HttpBasicAuthUsername string = "http-username" // HttpBasicAuthSecret is the reference to a secret in the PipelineRun or TaskRun namespace to use for basic auth HttpBasicAuthSecret string = "http-password-secret" // HttpBasicAuthSecretKey is the key in the httpBasicAuthSecret secret to use for basic auth HttpBasicAuthSecretKey string = "http-password-secret-key" )
View Source
const ( // LabelValueHttpResolverType is the value to use for the // resolution.tekton.dev/type label on resource requests LabelValueHttpResolverType string = "http" )
View Source
const ( // TimeoutKey is the configuration field name for controlling // the maximum duration of a resolution request for a file from http. TimeoutKey = "fetch-timeout" )
Variables ¶
This section is empty.
Functions ¶
func FetchHttpResource ¶ added in v0.60.0
func FetchHttpResource(ctx context.Context, params map[string]string, kubeclient kubernetes.Interface, logger *zap.SugaredLogger) (framework.ResolvedResource, error)
func IsDisabled ¶ added in v0.60.0
func PopulateDefaultParams ¶ added in v0.60.0
func ValidateParams ¶ added in v0.60.0
func ValidateParams(ctx context.Context, params []pipelinev1.Param) error
Types ¶
type Resolver
deprecated
type Resolver struct {
// contains filtered or unexported fields
}
Resolver implements a framework.Resolver that can fetch files from an HTTP URL
Deprecated: Use github.com/tektoncd/pipeline/pkg/remoteresolution/resolver/http.Resolver instead.
func (*Resolver) GetConfigName ¶
GetConfigName returns the name of the http resolver's configmap.
func (*Resolver) GetSelector ¶
GetSelector returns a map of labels to match requests to this resolver.
func (*Resolver) Resolve ¶
func (r *Resolver) Resolve(ctx context.Context, oParams []pipelinev1.Param) (framework.ResolvedResource, error)
Resolve uses the given params to resolve the requested file or resource.
func (*Resolver) ValidateParams ¶
ValidateParams ensures parameters from a request are as expected.
Click to show internal directories.
Click to hide internal directories.