Documentation ¶
Index ¶
- func CheckDNS(domain string) error
- func CheckNetwork(host, port string, timeout time.Duration) error
- func CreateArchive(archivePath string, relativeCopy bool, sourcePaths ...string) error
- func GatherCallFrames(delta int) string
- func GetEncodedToken(username string, password string) string
- func ResolvePort(port string, schema string) (string, error)
- func StrToBoolOr(text string, defaultValue bool) (bool, error)
- func StrToDurationOr(text string, defaultValue time.Duration) (time.Duration, error)
- func StrToIntOr(text string, defaultValue int) (int, error)
- func StringsContains(slice []string, target string) bool
- func StringsUniq(source []string) []string
- func WalkFields(t reflect.Type, filter func(field *reflect.StructField) bool) (f []reflect.StructField)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckNetwork ¶
CheckNetwork FIXME ...
func CreateArchive ¶ added in v0.13.0
CreateArchive creates a tar archive and writes the files/directories associated with the `targetPaths` to it. 'relativeCopy' = true will copy the contents inside each sourcePath (directory) over. If the sourcePath is a file, it is directly copied over.
func GetEncodedToken ¶
GetEncodedToken FIXME ...
func ResolvePort ¶
ResolvePort FIXME ...
func StrToBoolOr ¶ added in v0.12.0
StrToBoolOr Return defaultValue if text is empty, or try to convert it to bool
func StrToDurationOr ¶
StrToDurationOr Return defaultValue if text is empty, or try to convert it to time.Duration
func StrToIntOr ¶
StrToIntOr Return defaultValue if text is empty, or try to convert it to int
func StringsContains ¶ added in v0.12.0
StringsContains checks if `source` String Slice contains `target` string
func StringsUniq ¶ added in v0.12.0
StringsUniq returns a new String Slice contains deduped elements from `source`
func WalkFields ¶ added in v0.12.0
func WalkFields(t reflect.Type, filter func(field *reflect.StructField) bool) (f []reflect.StructField)
WalkFields get the field data by tag
Types ¶
This section is empty.