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 ¶
Types ¶
type SSHOperator ¶
type SSHOperator struct {
Config *easyssh.MakeConfig
}
func (*SSHOperator) Execute ¶
func (r *SSHOperator) Execute(command string) (stdOut string, stdErr string, err error)
выполнить комманду на удаленном компьютере и вернуть результат как строка
func (*SSHOperator) NewSSHOperator ¶
func (r *SSHOperator) NewSSHOperator(bastion *k3sv1alpha1.BastionNode)
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.