sshclient

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 License: Unlicense Imports: 10 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 {
	KeyPair *SSHKeyPair
}

func New

func New() (*Client, error)

func (*Client) GetFileFromContainer

func (s *Client) GetFileFromContainer(user, host, containerName, file string) (string, error)

func (*Client) GetPublicKey added in v0.0.15

func (s *Client) GetPublicKey() string

func (*Client) Run

func (s *Client) Run(user, host, command string) (string, error)

type SSHKeyPair

type SSHKeyPair struct {
	PrivateKey    *rsa.PrivateKey
	PublicKey     ssh.PublicKey
	PrivateKeyPEM []byte
	AuthorizedKey []byte
}

Jump to

Keyboard shortcuts

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