Documentation ¶
Index ¶
- func CheckBeTrue(b bool)
- func CheckEqual(obj1 interface{}, obj2 interface{})
- func CheckErr(err error)
- func CheckExit0(sess *gexec.Session, waitTime time.Duration)
- func CheckFuncBeTrue(f func() bool, t time.Duration)
- func CheckNotBeTrue(b bool)
- func CheckNotEqual(obj1 interface{}, obj2 interface{})
- func CheckNotExit0(sess *gexec.Session, waitTime time.Duration)
- func CheckNotNil(obj interface{})
- func CreateTempFile() string
- func DeleteFileLocally(filePath string)
- func GetLocalFileData(filePath string) string
- func GetPwd() string
- func GetRemoteFileData(sshClient *SSHClient, filePath string) []byte
- func IsFileExist(filename string) bool
- func MarshalYamlToFile(file string, obj interface{}) error
- func NewSSHByCluster(cluster *v1.Cluster) ssh.Interface
- func PathExists(path string) (bool, error)
- func RemoveTempFile(file string)
- func RunCmdAndCheckResult(cmdLine string, expectedCode int) *gexec.Session
- func Start(cmdLine string) (*gexec.Session, error)
- func UnmarshalYamlFile(file string, obj interface{}) error
- func WriteFile(fileName string, content []byte) error
- type SSHClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckBeTrue ¶
func CheckBeTrue(b bool)
func CheckEqual ¶
func CheckEqual(obj1 interface{}, obj2 interface{})
func CheckFuncBeTrue ¶
func CheckNotBeTrue ¶
func CheckNotBeTrue(b bool)
func CheckNotEqual ¶
func CheckNotEqual(obj1 interface{}, obj2 interface{})
func CheckNotNil ¶
func CheckNotNil(obj interface{})
func CreateTempFile ¶
func CreateTempFile() string
func DeleteFileLocally ¶
func DeleteFileLocally(filePath string)
DeleteFileLocally delete file for cloud apply
func GetLocalFileData ¶ added in v0.9.2
GetLocalFileData get file data from local
func GetRemoteFileData ¶ added in v0.9.2
GetRemoteFileData get file data from remote
func IsFileExist ¶
func MarshalYamlToFile ¶
func PathExists ¶ added in v0.9.2
func RemoveTempFile ¶
func RemoveTempFile(file string)
func RunCmdAndCheckResult ¶
RunCmdAndCheckResult start cmd and check expectedCode
func UnmarshalYamlFile ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.