client

package
v0.0.0-...-a65b750 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2020 License: MIT 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 New

func New() *Client

ssh client service

func (*Client) Delete

func (c *Client) Delete(identity string) (err error)

Delete ssh client

func (*Client) Exec

func (c *Client) Exec(identity string, cmd string) (output []byte, err error)

Remotely execute commands via SSH

func (*Client) Get

func (c *Client) Get(identity string) (content common.Information, err error)

Get ssh client information

func (*Client) GetClientOptions

func (c *Client) GetClientOptions() map[string]*common.ConnectOption

Get Client Options

func (*Client) Put

func (c *Client) Put(identity string, option common.ConnectOption) (err error)

Add or modify the ssh client

func (*Client) SetTunnels

func (c *Client) SetTunnels(identity string, options []common.TunnelOption) (err error)

Tunnel setting

func (*Client) Testing

func (c *Client) Testing(option common.ConnectOption) (sshClient *ssh.Client, err error)

Test ssh client connection

Jump to

Keyboard shortcuts

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