git

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultOrigin            = "origin"
	DefaultBranch            = "master"
	DefaultPublicKeyAuthUser = "git"
	CAFile                   = "caFile"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth added in v0.8.0

type Auth struct {
	AuthMethod   transport.AuthMethod
	CABundle     []byte
	CredCallback git2go.CredentialsCallback
	CertCallback git2go.CertificateCheckCallback
}

TODO(hidde): candidate for refactoring, so that we do not directly

depend on implementation specifics here.

type AuthSecretStrategy

type AuthSecretStrategy interface {
	Method(secret corev1.Secret) (*Auth, error)
}

type CheckoutOptions added in v0.11.0

type CheckoutOptions struct {
	GitImplementation string
	RecurseSubmodules bool
}

type CheckoutStrategy

type CheckoutStrategy interface {
	Checkout(ctx context.Context, path, url string, auth *Auth) (Commit, string, error)
}

type Commit added in v0.8.0

type Commit interface {
	Verify(secret corev1.Secret) error
	Hash() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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