Versions in this module Expand all Collapse all v21 v21.11.1 Apr 26, 2022 Changes in this version type SSHConfig + func (sconf *SSHConfig) Clone() *SSHConfig v21.11.0 Feb 17, 2022 Changes in this version + const BashLibraryReservedKeyword + const ClusterJoinTimeoutReservedKeyword + const DefaultDelayReservedKeyword + const DefaultTimeoutReservedKeyword + const DockerImagePullTimeoutReservedKeyword + const LongTimeoutReservedKeyword + func CreateTempFileFromString(content string, filemode os.FileMode) (*os.File, fail.Error) + func SCPErrorString(retcode int) string + func SSHErrorString(retcode int) string + type BashLibraryDefinition struct + ClusterJoinTimeout string + Content string + DefaultDelay uint + DefaultTimeout string + DockerImagePullTimeout string + LongTimeout string + func BuildBashLibraryDefinition() (*BashLibraryDefinition, fail.Error) + func (bld *BashLibraryDefinition) ToMap() (map[string]interface{}, fail.Error) + type SSHCommand struct + func (scmd *SSHCommand) Close() fail.Error + func (scmd *SSHCommand) CombinedOutput() ([]byte, fail.Error) + func (scmd *SSHCommand) Kill() fail.Error + func (scmd *SSHCommand) Output() ([]byte, fail.Error) + func (scmd *SSHCommand) RunWithTimeout(ctx context.Context, outs outputs.Enum, timeout time.Duration) (int, string, string, fail.Error) + func (scmd *SSHCommand) Start() fail.Error + func (scmd *SSHCommand) Wait() error + type SSHConfig struct + GatewayConfig *SSHConfig + Hostname string + IPAddress string + LocalPort int + Port int + PrivateKey string + SecondaryGatewayConfig *SSHConfig + User string + func (sconf *SSHConfig) CopyWithTimeout(ctx context.Context, remotePath, localPath string, isUpload bool, ...) (int, string, string, fail.Error) + func (sconf *SSHConfig) CreateTunneling() (_ SSHTunnels, _ *SSHConfig, ferr fail.Error) + func (sconf *SSHConfig) Enter(username, shell string) (ferr fail.Error) + func (sconf *SSHConfig) IsNull() bool + func (sconf *SSHConfig) NewCommand(ctx context.Context, cmdString string) (*SSHCommand, fail.Error) + func (sconf *SSHConfig) NewSudoCommand(ctx context.Context, cmdString string) (*SSHCommand, fail.Error) + func (sconf *SSHConfig) WaitServerReady(ctx context.Context, phase string, timeout time.Duration) (out string, ferr fail.Error) + type SSHTunnel struct + func (stun *SSHTunnel) Close() fail.Error + type SSHTunnels []*SSHTunnel + func (tunnels SSHTunnels) Close() fail.Error Other modules containing this package github.com/CS-SI/SafeScale github.com/CS-SI/SafeScale/v22