Documentation
¶
Index ¶
- type Resolver
- func (r *Resolver) GetConfigName(_ context.Context) string
- func (r *Resolver) GetName(_ context.Context) string
- func (r *Resolver) GetResolutionTimeout(ctx context.Context, defaultTimeout time.Duration, params map[string]string) (time.Duration, error)
- func (r *Resolver) GetSelector(_ context.Context) map[string]string
- func (r *Resolver) Initialize(ctx context.Context) error
- func (r *Resolver) IsImmutable(params []v1.Param) bool
- 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 ¶
This section is empty.
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 git.
func (*Resolver) GetConfigName ¶
GetConfigName returns the name of the git resolver's configmap.
func (*Resolver) GetName ¶
GetName returns the string name that the git resolver should be associated with.
func (*Resolver) GetResolutionTimeout ¶
func (r *Resolver) GetResolutionTimeout(ctx context.Context, defaultTimeout time.Duration, params map[string]string) (time.Duration, error)
GetResolutionTimeout returns the configured timeout for git resolution requests.
func (*Resolver) GetSelector ¶
GetSelector returns the labels that resource requests are required to have for the gitresolver to process them.
func (*Resolver) Initialize ¶
Initialize performs any setup required by the git resolver.
func (*Resolver) IsImmutable ¶ added in v1.6.0
IsImmutable implements ImmutabilityChecker.IsImmutable Returns true if the revision parameter is a commit SHA (40-character hex string)
func (*Resolver) Resolve ¶
func (r *Resolver) Resolve(ctx context.Context, req *v1beta1.ResolutionRequestSpec) (resolutionframework.ResolvedResource, error)
Resolve performs the work of fetching a file from git given a map of parameters.