Documentation ¶
Index ¶
- func CreateDirectory(directoryPath string) error
- func DecryptString(encryptedRaw string, keyBase string) (plainTextString string, err error)
- func EncryptAES(key, data []byte) ([]byte, error)
- func EncryptString(plain string, keyBase string) (string, error)
- func Fetch(fromFile, prefix string) ([]string, error)
- func FindFiles(dir string) []os.FileInfo
- func GetEnvVars(prefix string) []string
- func PrettyPrint(b []byte) ([]byte, error)
- func PrintLogLines(logs []api.LogLine) error
- func ReadLines(path string) ([]string, error)
- func RichLog(level string, log string)
- func StringInSlice(str string, list []string) bool
- func ToHash(plain string) []byte
- func ToYaml(o interface{}) ([]byte, error)
- func WalkPropertyValueFromArgs(args []string, actionFunc func(property, value string) error) error
- func WriteByteFile(fileName string, data []byte) error
- func WriteBytesFile(landscapeDir, basePath, fileName string, data []byte) error
- func WriteFile(landscapeDir, basePath, fileName, format string, resource interface{}) error
- func WriteJSON(landscapeDir, basePath, fileName string, resource interface{}) error
- func WriteStringFile(fileName string, data []string) error
- func WriteYAML(landscapeDir, basePath, fileName string, resource interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDirectory ¶
CreateDirectory creates a directory with full permissions
func DecryptString ¶
DecryptString descryptin encrypted string with keybase
func EncryptAES ¶
EncryptAES encrypts data with provided key
func EncryptString ¶
EncryptString encrypts plain string with the provided keybase (AES)
func GetEnvVars ¶
GetEnvVars returns the environments variables
func PrettyPrint ¶
PrettyPrint prints json with pretty identation
func PrintLogLines ¶
PrintLogLines prints lines as logs
func StringInSlice ¶
StringInSlice check if a string is in slice
func WalkPropertyValueFromArgs ¶
WalkPropertyValueFromArgs walks the proerty values from arguments
func WriteByteFile ¶
WriteByteFile writes to a file from byte data
func WriteBytesFile ¶
WriteBytesFile write bytes to a file to basepath with filename and the given format
func WriteStringFile ¶
WriteStringFile writes to a file from string data
Types ¶
This section is empty.