Help us shape the future of Go! Take the 2026 Go Developer Survey

git

package
v1.15.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

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

func (r *Resolver) GetConfigName(_ context.Context) string

GetConfigName returns the name of the git resolver's configmap.

func (*Resolver) GetName

func (r *Resolver) GetName(_ context.Context) string

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

func (r *Resolver) GetSelector(_ context.Context) map[string]string

GetSelector returns the labels that resource requests are required to have for the gitresolver to process them.

func (*Resolver) Initialize

func (r *Resolver) Initialize(ctx context.Context) error

Initialize performs any setup required by the git resolver.

func (*Resolver) IsImmutable added in v1.6.0

func (r *Resolver) IsImmutable(params []v1.Param) bool

IsImmutable implements ImmutabilityChecker.IsImmutable Returns true if the revision parameter is a commit SHA (40-character SHA-1 or 64-character SHA-256 hex string)

func (*Resolver) Resolve

Resolve performs the work of fetching a file from git given a map of parameters.

func (*Resolver) Validate

func (r *Resolver) Validate(ctx context.Context, req *v1beta1.ResolutionRequestSpec) error

Validate returns an error if the given parameter map is not valid for a resource request targeting the gitresolver.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL