Documentation ¶
Index ¶
- func CheckDir(path string) (bool, error)
- func CidrSubnet(netCidr string, newbits int, netnum interface{}) (ret string, err error)
- func Diff(structA, structB interface{}, colored bool) string
- func FileExists(filename string) bool
- func GetTemplate(gitURL, targetDir, templateName string) (string, error)
- func IsAbsolutePath(path string) bool
- func IsDir(path string) bool
- func IsLocalPath(path string) bool
- func JSONDecode(in []byte, out interface{}) error
- func JSONEncode(in interface{}) ([]byte, error)
- func JSONInterfaceToType(in, out interface{}) error
- func Md5(data string) string
- func RandString(n int) string
- func ReadFilesToExistentsList(filesPath, baseDir string, filesList map[string][]byte) (err error)
- func ReadFilesToList(filesPath, baseDir string) (filesList map[string][]byte, err error)
- func ReadYAML(objData []byte) (res map[string]interface{}, err error)
- func ReadYAMLObjects(objData []byte) ([]map[string]interface{}, error)
- func TruncateString(src string, maxLen int) string
- func WriteFilesFromList(path string, filesList map[string][]byte) (err error)
- type GitRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CidrSubnet ¶
func GetTemplate ¶
func IsAbsolutePath ¶
func IsLocalPath ¶
func JSONInterfaceToType ¶
func JSONInterfaceToType(in, out interface{}) error
JSONInterfaceToType - convert interface data in to type of out with JSON tags.
func RandString ¶ added in v0.4.5
func ReadFilesToList ¶
func ReadYAMLObjects ¶
func TruncateString ¶
TruncateString - truncate string src to maxLen.
Types ¶
Click to show internal directories.
Click to hide internal directories.