ssh

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 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 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)

Jump to

Keyboard shortcuts

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