ssh

package
v0.0.0-...-41c7706 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPv4Client

type IPv4Client struct {
	// contains filtered or unexported fields
}

func GenerateDefaultIPv4ClientSSH

func GenerateDefaultIPv4ClientSSH(user string, ipv4 string, port uint, password string, publicKeyPath string) *IPv4Client

func (*IPv4Client) Close

func (that *IPv4Client) Close() error

func (*IPv4Client) Connect

func (that *IPv4Client) Connect() error

func (*IPv4Client) ExecuteMultiCommands

func (that *IPv4Client) ExecuteMultiCommands(commands []*command.Command) ([]string, []error, error)

func (*IPv4Client) ExecuteMultiParallelCommands

func (that *IPv4Client) ExecuteMultiParallelCommands(commands []*command.Command) ([]string, []error, error)

func (*IPv4Client) ExecuteSingleCommand

func (that *IPv4Client) ExecuteSingleCommand(c *command.Command) (string, error, error)

func (*IPv4Client) GetIPv4AddressAsString

func (that *IPv4Client) GetIPv4AddressAsString() string

func (*IPv4Client) GetSftpConnect

func (that *IPv4Client) GetSftpConnect() (*sftp.Client, error)

type SavedIPv4Client

type SavedIPv4Client struct {
	Ipv4 string `yaml:"ipv4"`
	Port uint   `yaml:"port"`
	User string `yaml:"user"`
	Pwd  string `yaml:"pwd"`
	Puk  string `yaml:"puk"`
}

func ReadPwdClientFromYaml

func ReadPwdClientFromYaml(yamlPath string) (*SavedIPv4Client, error)

func (*SavedIPv4Client) CreateClient

func (that *SavedIPv4Client) CreateClient() *IPv4Client

Jump to

Keyboard shortcuts

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