ssh

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: GPL-3.0 Imports: 7 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(c *ConfigSshClient) *Client

func (*Client) Connect

func (c *Client) Connect(addr string) (*Conn, error)

type ConfigSshClient

type ConfigSshClient struct {
	List []Item `yaml:"ssh"`
}

type Conn

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

func (*Conn) Close

func (cnn *Conn) Close()

func (*Conn) Command

func (cnn *Conn) Command(cmd string) (string, error)

type Item

type Item struct {
	Addr string `yaml:"addr"`
	User string `yaml:"user"`
	PEM  string `yaml:"pem"`
}

Jump to

Keyboard shortcuts

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