Documentation ¶
Index ¶
- func ArrayContains(array []string, value string) bool
- func Base64Decode(toDecode string) string
- func CurrentExecutableDir() string
- func FileExists(filePath string) bool
- func GetGcpKeyFilePath(p string) string
- func GetHomeDir() string
- func GetJsonArray(jsonMap interface{}, arrayKey string) []interface{}
- func GetJsonObject(jsonMap interface{}, key string) interface{}
- func GetStringValue(jsonMap interface{}, key string) string
- func LookupPathFor(executable string) (string, error)
- func Parse(jsonString string) map[string]interface{}
- func ParseArray(jsonString string) []map[string]interface{}
- func ReadFileToBytes(filename string) ([]byte, error)
- func ReadFileToString(filename string) (string, error)
- func StringTemplateToArgsArray(templatedArgs string, values ...string) []string
- func WriteAsYaml(yamlFilePath string, values []string) string
- func WriteStringToFile(content string, filePath string) error
- type ExternalIpList
- type JSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayContains ¶
func Base64Decode ¶
func CurrentExecutableDir ¶
func CurrentExecutableDir() string
func FileExists ¶
func GetGcpKeyFilePath ¶
func GetHomeDir ¶
func GetHomeDir() string
func GetJsonArray ¶
func GetJsonArray(jsonMap interface{}, arrayKey string) []interface{}
func GetJsonObject ¶
func GetJsonObject(jsonMap interface{}, key string) interface{}
func GetStringValue ¶
func LookupPathFor ¶
func Parse ¶
https://yourbasic.org/golang/json-example/ https://stackoverflow.com/questions/11066946/partly-json-unmarshal-into-a-map-in-go
func ParseArray ¶
func ReadFileToBytes ¶
func ReadFileToString ¶
func StringTemplateToArgsArray ¶
StringTemplateToArgsArray spreads an array of values on top of a templated string (%s,%s,...). It receives a templated string (%s, %d, ...) and a spread of values ['a','b','c'] to generate a string
func WriteAsYaml ¶
Writes the array given to a yaml file at 'yamlFilePath'
func WriteStringToFile ¶
Writes content to a filePath, overriding the current contents Returns: error when cannot create the file or write content
Types ¶
type ExternalIpList ¶
type ExternalIpList struct {
ExternalIPs []string
}
Click to show internal directories.
Click to hide internal directories.