Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 }
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 (*Resolver) CanResolve ¶
func (*Resolver) CanResolve(sourceResolver *v1alpha1.SourceResolver) bool
func (*Resolver) Resolve ¶
func (r *Resolver) Resolve(ctx context.Context, sourceResolver *v1alpha1.SourceResolver) (v1alpha1.ResolvedSourceConfig, error)
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)
Click to show internal directories.
Click to hide internal directories.