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

common

package
v0.6.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	AuthMethod   transport.AuthMethod
	CredCallback git2go.CredentialsCallback
	CertCallback git2go.CertificateCheckCallback
}

type AuthSecretStrategy

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

type CheckoutStrategy

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

type Commit

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

Jump to

Keyboard shortcuts

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