Documentation ¶
Index ¶
- func CheckBeTrue(b bool)
- func CheckEnvSetting(keys []string)
- func CheckEqual(obj1 interface{}, obj2 interface{})
- func CheckErr(err error, explainErrMsg ...string)
- 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 Failf(msg string)
- func GetAllSubDirs(rootPath string) ([]string, error)
- func GetBinArch(filepath string) (string, error)
- func GetBinPath(bin string) (string, error)
- func GetFileDataLocally(filePath string) string
- func GetLocalIpv4() string
- func GetPwd() string
- func IsFileExist(filename string) bool
- func ListLocalHostAddrs() (*[]net.Addr, error)
- func LocalIP(addrs *[]net.Addr) string
- func Log(msg string)
- func Logf(format string, args ...interface{})
- func MarshalYamlToFile(file string, obj interface{}) error
- func MkTmpdir(dir string) (string, error)
- func RemoveTempFile(file string)
- func ToYalms(bs string) (yamls []string)
- func UnmarshalData(metadata []byte) (map[string]interface{}, error)
- func UnmarshalYamlFile(file string, obj interface{}) error
- func WriteFile(fileName string, content []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckBeTrue ¶
func CheckBeTrue(b bool)
func CheckEnvSetting ¶
func CheckEnvSetting(keys []string)
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 GetAllSubDirs ¶
func GetBinArch ¶
func GetBinPath ¶
func GetFileDataLocally ¶
GetFileDataLocally get file data for cloud apply
func GetLocalIpv4 ¶
func GetLocalIpv4() string
func IsFileExist ¶
func ListLocalHostAddrs ¶
func MarshalYamlToFile ¶
func RemoveTempFile ¶
func RemoveTempFile(file string)
func UnmarshalData ¶
func UnmarshalYamlFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.