git

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 19 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 *buildapi.SourceResolver) bool

func (*Resolver) Resolve

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