ssh

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutor

func NewExecutor(agentTimeout time.Duration, user user.User) (herd.Executor, error)

func NewKeyScanExecutor

func NewKeyScanExecutor(keyTypes []string, user user.User) (herd.Executor, error)

func NewPingExecutor added in v0.11.0

func NewPingExecutor(agentTimeout time.Duration, user user.User) (herd.Executor, error)

func RegisterHostAlias

func RegisterHostAlias(host, alias string)

Types

type Executor

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

func (*Executor) Run

func (e *Executor) Run(ctx context.Context, host *herd.Host, command string, oc chan herd.OutputLine) *herd.Result

func (*Executor) SetConnectTimeout

func (e *Executor) SetConnectTimeout(t time.Duration)

type KeyScanExecutor

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

func (*KeyScanExecutor) Disconnect

func (e *KeyScanExecutor) Disconnect()

func (*KeyScanExecutor) Run

func (e *KeyScanExecutor) Run(ctx context.Context, host *herd.Host, cmd string, oc chan herd.OutputLine) *herd.Result

func (*KeyScanExecutor) SetConnectTimeout

func (e *KeyScanExecutor) SetConnectTimeout(t time.Duration)

type PingExecutor added in v0.11.0

type PingExecutor struct {
	Executor
}

func (*PingExecutor) Run added in v0.11.0

func (e *PingExecutor) Run(ctx context.Context, host *herd.Host, command string, oc chan herd.OutputLine) *herd.Result

Jump to

Keyboard shortcuts

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