client

package
v0.0.0-...-3751135 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*Config
	*ssh.Client
}

func New

func New(conf *Config) (c *Client, err error)

func (*Client) NewSession

func (c *Client) NewSession(sc SessionConfig) (s *Session, err error)

type Config

type Config struct {
	*zap.SugaredLogger
	User    string
	Host    string
	Port    uint16
	Auth    ssh.AuthMethod
	Timeout time.Duration
}

type Session

type Session struct {
	*ssh.Session

	Stdin  io.WriteCloser
	Stdout io.Reader
	Stderr io.Reader
}

type SessionConfig

type SessionConfig struct {
	PTYRequested bool
	PTYPayload   ssh_types.PTYRequestMsg
	Requests     chan interface{}
}

Jump to

Keyboard shortcuts

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