cmd

package
v0.0.0-...-6ab36f0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HOST_FILE_PASSWD_PREFIX = "#PASSWD"
)

Variables

This section is empty.

Functions

func Execute

func Execute()

Types

type SshNode

type SshNode struct {
	Host    string `yaml:"host,omitempty" `
	Role    string `yaml:"role,omitempty" `
	User    string `yaml:"user,omitempty" `
	Passwd  string `yaml:"passwd,omitempty" `
	KeyFile string `yaml:"keyfile,omitempty" `
	Port    int    `yaml:"port,omitempty" `
	// contains filtered or unexported fields
}

func NewSshNode

func NewSshNode(host, username, passwd string, port int) *SshNode

func (*SshNode) Run

func (node *SshNode) Run(host, cmd string, verbose bool) error

func (*SshNode) Upload

func (node *SshNode) Upload(host, localFilePath, remoteFilePath string, verbose bool, mode os.FileMode) error

/aaaa/bbb/ -> /xxx/yyy/ /aaa/bbb/ccc.ddd -> /xxx/yyy.zzz /aaa/bbb/ccc.ddd -> /xxx/yyy/

Jump to

Keyboard shortcuts

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