ssh

package
v0.0.0-...-a8f3bf5 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2018 License: Apache-2.0 Imports: 9 Imported by: 2

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(config *Config) (*Client, error)

NewDockerClient initializes a docker client to remote cluster following authentication configuration

func (*Client) ExecCommand

func (c *Client) ExecCommand(cmd string) ([]byte, error)

type Config

type Config struct {
	Host         string
	Port         int
	ClientConfig *ssh.ClientConfig
}

func NewClientConfigWithKeyFile

func NewClientConfigWithKeyFile(username string, sshKey string, host string, port int, checkHostKey bool) (*Config, error)

Jump to

Keyboard shortcuts

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