Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDfOutput ¶
ParseDfOutput парсим строку комманды df -P TODO: translate
func ParseInt64Output ¶
ParseInt64Output парсим одну строку с числом TODO: translate
func ParseOutput ¶
func RunSshCommand ¶
func RunSshCommand(myCommand string, spec *types.DeploySpec, dryRun bool) error
/ RunSshCommand выполнение комманд на удаленном хосте по ssh TODO: tranclate
Types ¶
type SSHOperator ¶
type SSHOperator struct {
Config *easyssh.MakeConfig
}
func (*SSHOperator) NewSSHOperator ¶
func (r *SSHOperator) NewSSHOperator(node *types.NodeOpts)
NewSshConnection New SSH Connection
func (*SSHOperator) Run ¶
func (r *SSHOperator) Run(command string) (done bool, err error)
Run command on remote machine
Example:
func (*SSHOperator) Stream ¶
func (r *SSHOperator) Stream(command string, isPrint bool)
Stream returns one channel that combines the stdout and stderr of the command as it is run on the remote machine, and another that sends true when the command is done. The sessions and channels will then be closed.
isPrint - выводить результат на экран или в лог
Click to show internal directories.
Click to hide internal directories.