ssh

package module
v0.0.0-...-6d4ea37 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

README

ssh

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConfigNotFound = errors.New("config not found")

Functions

This section is empty.

Types

type Client

type Client struct {
	ConfigCallback ConfigCallback
}

type Config

type Config struct {
	ssh.ClientConfig `json:"-" yaml:"-"`

	Network     string
	Address     string
	KeepAlive   bool
	ServerAlive Heartbeat
}

func (*Config) Callback

func (cfg *Config) Callback() ConfigCallback

func (*Config) With

func (cfg *Config) With(opts ...Option) *Config

func (*Config) WithAuth

func (cfg *Config) WithAuth(methods ...ssh.AuthMethod) *Config

type ConfigCallback

type ConfigCallback func(ctx context.Context, network, address string) (*Config, error)

type Conn

type Conn struct {
	*ssh.Client
}

type Heartbeat

type Heartbeat struct {
	Interval time.Duration
	MaxCount int
}

type Option

type Option interface {
	Apply(*Config) *Config
}

type Session

type Session struct {
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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