git

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMountedSecretGitKeychain

func NewMountedSecretGitKeychain(volumeName string, basicAuthSecrets, sshAuthSecrets []string, sshTrustUnknownHosts bool) (*secretGitKeychain, error)

Types

type Fetcher

type Fetcher struct {
	Logger   *log.Logger
	Keychain GitKeychain
}

func (Fetcher) Fetch

func (f Fetcher) Fetch(dir, gitURL, gitRevision, metadataDir string) error

type GitKeychain

type GitKeychain interface {
	Resolve(url string) (transport.AuthMethod, error)
}

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func NewResolver

func NewResolver(k8sClient k8sclient.Interface, sshTrustUnknownHosts bool) *Resolver

func (*Resolver) CanResolve

func (*Resolver) CanResolve(sourceResolver *buildapi.SourceResolver) bool

func (*Resolver) Resolve

Jump to

Keyboard shortcuts

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