Documentation ¶
Index ¶
- Variables
- func CheckKubectlVersion(compareMinor int) error
- func CopyDir(src string, dst string) (err error)
- func CopyFile(src, dst string) (err error)
- func GetHomePath() string
- func GetNhctlBinName() string
- func GetNhctlPath() (string, error)
- func GetPortForwardForString(portStr string) (int, int, error)
- func GetShortUuid() (string, error)
- func IsSudoUser() bool
- func IsWindows() bool
- func RecoverFromPanic()
- func ReplaceCodingcorpString(old string) string
- func Reverse(account *Account, sshEndpoint, remoteEndpoint, localEndpoint string) (err error)
- func Sha1ToString(str string) string
- func Should(err error)
- func ShouldI(err error, info string)
- type Account
- type Printer
- type Spinner
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRoot = &Account{
Username: "root",
Password: "root",
}
Functions ¶
func CheckKubectlVersion ¶
func CopyDir ¶
CopyDir recursively copies a directory tree, attempting to preserve permissions. Source directory must exist Symlinks are ignored and skipped.
func GetHomePath ¶
func GetHomePath() string
func GetNhctlBinName ¶
func GetNhctlBinName() string
func GetNhctlPath ¶
func GetPortForwardForString ¶
portStr is like 8080:80, :80 or 80
func GetShortUuid ¶
func IsSudoUser ¶
func IsSudoUser() bool
func RecoverFromPanic ¶
func RecoverFromPanic()
func ReplaceCodingcorpString ¶
func Sha1ToString ¶
Types ¶
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
func NewPrinter ¶
func (*Printer) ChangeContent ¶
Click to show internal directories.
Click to hide internal directories.