Documentation
¶
Index ¶
- Constants
- func BASE64DecodeString(str string) string
- func BASE64EncodeString(str string) string
- func Exists(name string) (bool, error)
- func HMACSHA256(plain string, key string) string
- func MD5(str string) string
- func MapToStruct(_map map[string]interface{}, obj interface{})
- func ParseFloat64(i interface{}) (val float64)
- func ParseInt(i interface{}) (val int)
- func ParseInt64(i interface{}) (val int64)
- func ParseString(i interface{}) string
- func RandomString(chars string, length int) string
- func Round(f float64, n int) float64
- func SCPFile(conf SSHConfig, srcFile string, destFile string) error
- func SCPFileFromRemote(conf SSHConfig, srcFile string, destFile string) error
- func SHA1(str string) string
- func SHA256(str string) string
- func SSHRun(conf SSHConfig, shell string) (string, error)
- func StructToMap(obj interface{}) map[string]interface{}
- func TimeHex(time time.Time) (hex string)
- func TimeHexNano(time int64) (hex string)
- func UUIDNewV4() uuid.UUID
- func UnGzip(data []byte) (result []byte, err error)
- type SSHClient
- type SSHConfig
Constants ¶
View Source
const ( CHARNUMBER = "0123456789" CHARCHARACTER = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" )
Variables ¶
This section is empty.
Functions ¶
func BASE64DecodeString ¶
BASE64DecodeString base64 decode string
func BASE64EncodeString ¶
BASE64EncodeString base64 encode string
func SCPFileFromRemote ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.