keyfile

package
v0.11.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyFileAuthMethod

type KeyFileAuthMethod struct {
	// PrivateKeyFile is the path to the private key file
	PrivateKeyFile string `json:"private_key_file"`
	// PrivateKeyPassword is the password for the private key file
	PrivateKeyPassword string `json:"private_key_password"`
	// GitSSHUser is the user to use for git ssh
	GitSSHUser string `json:"git_ssh_user"`
}

KeyFileAuthMethod is used for private key file authentication

func NewKeyFileAuthMethod

func NewKeyFileAuthMethod() *KeyFileAuthMethod

NewKeyFileAuthMethod creates a new KeyFileAuthMethod from the given credential

func (*KeyFileAuthMethod) AuthMethodConstructor

func (auth *KeyFileAuthMethod) AuthMethodConstructor(credential *credentials.Credential) (repository.AuthMethodReader, error)

AuthMethodConstructor creates a new KeyFileAuthMethod from the given credential

func (*KeyFileAuthMethod) Name

func (a *KeyFileAuthMethod) Name() string

Name returns the name of the authentication method

Jump to

Keyboard shortcuts

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