Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthMethodAndCA ¶ added in v2.8.0
type AuthMethodAndCA struct { AuthMethod transport.AuthMethod CABundle []byte Hash func() ([]byte, error) }
func (*AuthMethodAndCA) SshClientConfig ¶ added in v2.18.0
func (a *AuthMethodAndCA) SshClientConfig() (*ssh.ClientConfig, error)
type GitAuthProvider ¶
type GitAuthProvider interface {
BuildAuth(ctx context.Context, gitUrl git_url.GitUrl) AuthMethodAndCA
}
type GitAuthProviders ¶
type GitAuthProviders struct {
// contains filtered or unexported fields
}
func NewDefaultAuthProviders ¶
func NewDefaultAuthProviders(envPrefix string, messageCallbacks *messages.MessageCallbacks) *GitAuthProviders
func (*GitAuthProviders) BuildAuth ¶
func (a *GitAuthProviders) BuildAuth(ctx context.Context, gitUrl git_url.GitUrl) AuthMethodAndCA
func (*GitAuthProviders) RegisterAuthProvider ¶
func (a *GitAuthProviders) RegisterAuthProvider(p GitAuthProvider, last bool)
type GitCredentialsFileAuthProvider ¶
type GitCredentialsFileAuthProvider struct {
MessageCallbacks messages.MessageCallbacks
}
func (*GitCredentialsFileAuthProvider) BuildAuth ¶
func (a *GitCredentialsFileAuthProvider) BuildAuth(ctx context.Context, gitUrl git_url.GitUrl) AuthMethodAndCA
type GitEnvAuthProvider ¶
type GitEnvAuthProvider struct { MessageCallbacks messages.MessageCallbacks Prefix string }
func (*GitEnvAuthProvider) BuildAuth ¶
func (a *GitEnvAuthProvider) BuildAuth(ctx context.Context, gitUrl git_url.GitUrl) AuthMethodAndCA
type GitSshAuthProvider ¶
type GitSshAuthProvider struct { MessageCallbacks messages.MessageCallbacks // contains filtered or unexported fields }
func (*GitSshAuthProvider) BuildAuth ¶
func (a *GitSshAuthProvider) BuildAuth(ctx context.Context, gitUrl git_url.GitUrl) AuthMethodAndCA
type KnownHostsWrapper ¶ added in v2.18.0
type KnownHostsWrapper struct {
// contains filtered or unexported fields
}
func (*KnownHostsWrapper) ClientConfig ¶ added in v2.18.0
func (w *KnownHostsWrapper) ClientConfig() (*ssh2.ClientConfig, error)
func (*KnownHostsWrapper) Name ¶ added in v2.18.0
func (w *KnownHostsWrapper) Name() string
func (*KnownHostsWrapper) String ¶ added in v2.18.0
func (w *KnownHostsWrapper) String() string
type ListAuthProvider ¶ added in v2.8.0
type ListAuthProvider struct { MessageCallbacks messages.MessageCallbacks // contains filtered or unexported fields }
func (*ListAuthProvider) AddEntry ¶ added in v2.8.0
func (a *ListAuthProvider) AddEntry(e AuthEntry)
func (*ListAuthProvider) BuildAuth ¶ added in v2.8.0
func (a *ListAuthProvider) BuildAuth(ctx context.Context, gitUrl git_url.GitUrl) AuthMethodAndCA
Source Files ¶
Click to show internal directories.
Click to hide internal directories.