auth

package
v2.19.3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthEntry added in v2.8.0

type AuthEntry struct {
	Host       string
	PathPrefix string
	Username   string
	Password   string

	SshKey     []byte
	KnownHosts []byte

	CABundle []byte
}

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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