commandexecutorsshclient

package
v0.432.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHClient

type SSHClient struct {
	commandexecutorgeneric.CommandExecutorBase
	// contains filtered or unexported fields
}

func GetSshClientByHostName

func GetSshClientByHostName(hostName string) (sshClient *SSHClient, err error)

func NewSSHClient

func NewSSHClient() (s *SSHClient)

func (*SSHClient) CheckReachable

func (s *SSHClient) CheckReachable(ctx context.Context) (err error)

func (*SSHClient) GetDeepCopy

func (s *SSHClient) GetDeepCopy() (copy commandexecutorinterfaces.CommandExecutor)

func (*SSHClient) GetHostDescription

func (s *SSHClient) GetHostDescription() (hostDescription string, err error)

func (*SSHClient) GetHostName

func (s *SSHClient) GetHostName() (hostName string, err error)

func (*SSHClient) GetSshUserName

func (s *SSHClient) GetSshUserName() (sshUserName string, err error)

func (*SSHClient) IsReachable

func (s *SSHClient) IsReachable(ctx context.Context) (isReachable bool, err error)

func (*SSHClient) IsSshUserNameSet

func (s *SSHClient) IsSshUserNameSet() (isSet bool)

func (*SSHClient) RunCommand

func (s *SSHClient) RunCommand(ctx context.Context, options *parameteroptions.RunCommandOptions) (commandOutput *commandoutput.CommandOutput, err error)

func (*SSHClient) SetHostName

func (s *SSHClient) SetHostName(hostName string) (err error)

func (*SSHClient) SetSshUserName

func (s *SSHClient) SetSshUserName(sshUserName string) (err error)

Jump to

Keyboard shortcuts

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