remote

package
v0.0.0-...-2962828 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCommand

func CheckCommand(checkCommand string, nodes []config.NodeInfo, log *zap.Logger) error

Types

type Client

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

func NewClient

func NewClient(addr string, user string, log *zap.Logger) (*Client, error)

func NewClientPool

func NewClientPool(addr string, user string, log *zap.Logger, count int) ([]*Client, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) ExecCommandBySSH

func (c *Client) ExecCommandBySSH(cmd string) error

Jump to

Keyboard shortcuts

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