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 GetFileDataLocally(filePath string) string
- func GetPwd() string
- func IsFileExist(filename string) bool
- func MarshalYamlToFile(file string, obj interface{}) 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 ¶ added in v0.5.1
func CheckBeTrue(b bool)
func CheckEqual ¶ added in v0.5.1
func CheckEqual(obj1 interface{}, obj2 interface{})
func CheckFuncBeTrue ¶ added in v0.5.1
func CheckNotBeTrue ¶ added in v0.5.1
func CheckNotBeTrue(b bool)
func CheckNotEqual ¶ added in v0.5.1
func CheckNotEqual(obj1 interface{}, obj2 interface{})
func CheckNotExit0 ¶ added in v0.5.1
func CheckNotNil ¶ added in v0.5.1
func CheckNotNil(obj interface{})
func CreateTempFile ¶ added in v0.1.5
func CreateTempFile() string
func DeleteFileLocally ¶ added in v0.2.0
func DeleteFileLocally(filePath string)
DeleteFileLocally delete file for cloud apply
func GetFileDataLocally ¶ added in v0.2.0
GetFileDataLocally get file data for cloud apply
func IsFileExist ¶ added in v0.1.5
func MarshalYamlToFile ¶ added in v0.2.0
func RemoveTempFile ¶ added in v0.1.5
func RemoveTempFile(file string)
func RunCmdAndCheckResult ¶
RunCmdAndCheckResult start cmd and check expectedCode
func UnmarshalYamlFile ¶ added in v0.2.0
Types ¶
Click to show internal directories.
Click to hide internal directories.