Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultSecretName = "gitcredential" //nolint:gosec // this is a resource name
)
Variables ¶
This section is empty.
Functions ¶
func GetAuthFromSecret ¶
GetAuthFromSecret returns the AuthMethod calculated from the given secret The credentials secret is expected to be either basic-auth or ssh-auth (with extra known_hosts data option)
Types ¶
type GoGitRemoteLister ¶
type GoGitRemoteLister struct {
URL string
Auth transport.AuthMethod
CABundle []byte
InsecureSkipTLS bool
}
GoGitRemoteLister implements the RemoteLister interface using the go-git library
type Remote ¶
type Remote struct {
Lister RemoteLister
URL string
Options *options
}
func (*Remote) LatestBranchCommit ¶
LatestBranchCommit returns the latest commit for the given branch
type RemoteLister ¶
Click to show internal directories.
Click to hide internal directories.