access

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessConfig

type AccessConfig struct {
	Username           string
	Password           string
	Address            string
	Port               int
	SshKey             string
	SshAgent           bool
	SshAgentForwarding bool
}

func NewAccessConfig

func NewAccessConfig(username string, password string, address string, port int, sshKey string, sshAgent bool, sshAgentForwarding bool) *AccessConfig

func (*AccessConfig) BuildClientConfig

func (a *AccessConfig) BuildClientConfig() (*ssh.ClientConfig, error)

func (*AccessConfig) GetAddress

func (a *AccessConfig) GetAddress() string

func (*AccessConfig) GetPassword

func (a *AccessConfig) GetPassword() string

func (*AccessConfig) GetPort

func (a *AccessConfig) GetPort() int

func (*AccessConfig) GetSshAgent

func (a *AccessConfig) GetSshAgent() bool

func (*AccessConfig) GetSshAgentForwarding

func (a *AccessConfig) GetSshAgentForwarding() bool

func (*AccessConfig) GetSshKey

func (a *AccessConfig) GetSshKey() string

func (*AccessConfig) GetUsername

func (a *AccessConfig) GetUsername() string

func (*AccessConfig) SetPort

func (a *AccessConfig) SetPort(port int)

type Configurator

type Configurator interface {
	BuildClientConfig() (*ssh.ClientConfig, error)

	GetUsername() string
	GetPassword() string
	GetAddress() string
	GetPort() int
	SetPort(int)
	GetSshKey() string
	GetSshAgent() bool
	GetSshAgentForwarding() bool
	// contains filtered or unexported methods
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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