Documentation
¶
Index ¶
- func GetAuthFromSecret(url string, creds *corev1.Secret, knownHosts string) (transport.AuthMethod, error)
- func GetHTTPClientFromSecret(creds *corev1.Secret, CABundle []byte, insecureTLSVerify bool) (*http.Client, error)
- type Fetch
- type GoGitRemoteLister
- type KnownHostsGetter
- type Remote
- type RemoteLister
- type RemoteRef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthFromSecret ¶
func GetAuthFromSecret(url string, creds *corev1.Secret, knownHosts string) (transport.AuthMethod, error)
GetAuthFromSecret returns the AuthMethod calculated from the given secret, setting known hosts if needed. Known hosts are sourced from the creds, if provided there. Otherwise, they will be sourced from the provided knownHosts if non-empty. The credentials secret is expected to be either basic-auth or ssh-auth (with extra known_hosts data option)
Types ¶
type Fetch ¶
type Fetch struct {
KnownHosts KnownHostsGetter
}
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 KnownHostsGetter ¶ added in v0.10.11
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.