git

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: Apache-2.0 Imports: 18 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) (*secretGitKeychain, error)

Types

type BasicGit2GoAuth added in v0.3.0

type BasicGit2GoAuth struct {
	Username, Password string
}

func (BasicGit2GoAuth) Cred added in v0.3.0

func (b BasicGit2GoAuth) Cred() (*git2go.Credential, error)

type Fetcher

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

func (Fetcher) Fetch

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

type Git2GoCredential added in v0.3.0

type Git2GoCredential interface {
	Cred() (*git2go.Credential, error)
}

type GitKeychain

type GitKeychain interface {
	Resolve(url string, usernameFromUrl string, allowedTypes git2go.CredentialType) (Git2GoCredential, error)
}

type Resolver

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

func NewResolver

func NewResolver(k8sClient k8sclient.Interface) *Resolver

func (*Resolver) CanResolve

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

func (*Resolver) Resolve

func (r *Resolver) Resolve(ctx context.Context, sourceResolver *v1alpha1.SourceResolver) (v1alpha1.ResolvedSourceConfig, error)

type SSHGit2GoAuth added in v0.3.0

type SSHGit2GoAuth struct {
	Username, PrivateKey string
}

func (SSHGit2GoAuth) Cred added in v0.3.0

func (s SSHGit2GoAuth) Cred() (*git2go.Credential, error)

Jump to

Keyboard shortcuts

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