connect

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ssh

type Ssh interface {
	Init(context.Context) error
	Deinit(context.Context) error
	Reconnect(context.Context) error
	Run(context.Context, string) (string, error)
	Start(context.Context, string, chan string) error
}

func SshNew

func SshNew(_ context.Context, cfg *SshConfig) Ssh

type SshConfig

type SshConfig struct {
	Config config.Config
	Logger hclog.Logger
}

func DefaultSshConfig

func DefaultSshConfig() *SshConfig

Jump to

Keyboard shortcuts

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