Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection interface {
RunCommand(ctx context.Context, command string) (string, error)
Close() error
}
Connection represents a connection to a target system
func NewLocalConnection ¶
func NewLocalConnection() Connection
NewLocalConnection creates a new local connection
func NewSSHConnection ¶
func NewSSHConnection(ctx context.Context, config SSHConnectionConfig) (Connection, error)
NewSSHConnection creates a new SSH connection
type LocalConnection ¶
type LocalConnection struct{}
LocalConnection represents a connection to the local system
func (*LocalConnection) Close ¶
func (c *LocalConnection) Close() error
Close is a no-op for local connections
func (*LocalConnection) RunCommand ¶
RunCommand runs a command on the local system
type SSHConnection ¶
type SSHConnection struct {
// contains filtered or unexported fields
}
SSHConnection represents an SSH connection to a target system
func (*SSHConnection) RunCommand ¶
RunCommand runs a command on the target system
Click to show internal directories.
Click to hide internal directories.