Documentation
¶
Overview ¶
scw helpers
Index ¶
- func AttachToSerial(serverID string, apiToken string, attachStdin bool) error
- func GetConfigFilePath() (string, error)
- func IsTCPPortOpen(dest string) bool
- func NewSSHExecCmd(ipAddress string, allocateTTY bool, command []string) []string
- func PathToTARPathparts(fullPath string) (string, string)
- func RemoveDuplicates(elements []string) []string
- func SSHExec(ipAddress string, command []string, checkConnection bool) error
- func TruncIf(str string, max int, cond bool) string
- func WaitForTCPPortOpen(dest string) error
- func Wordify(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachToSerial ¶ added in v1.2.0
AttachToSerial tries to connect to server serial using 'term.js-cli' and fallback with a help message
func GetConfigFilePath ¶
GetConfigFilePath returns the path to the Scaleway CLI config file
func IsTCPPortOpen ¶
IsTCPPortOpen returns true if a TCP communication with "host:port" can be initialized
func NewSSHExecCmd ¶
NewSSHExecCmd computes execve compatible arguments to run a command via ssh
func PathToTARPathparts ¶
PathToTARPathparts returns the two parts of a unix path
func RemoveDuplicates ¶
RemoveDuplicates transforms an array into a unique array
func WaitForTCPPortOpen ¶
WaitForTCPPortOpen calls IsTCPPortOpen in a loop
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.