Documentation ¶
Index ¶
- Variables
- func CheckError(message string, err error, exit bool) bool
- func CheckMap(inputMap map[string]interface{}, list ...string) string
- func DeleteFile(filepath string) error
- func DeleteSecret(secretName string)
- func DirExists(filename string) bool
- func ExecuteSingleCommand(command []string) (string, string, error)
- func FileExists(filename string) bool
- func HTTPRequest(method string, endpoint string, authStr string, body []byte) (string, error)
- func InMap(inputMap map[string]interface{}, keys []string) bool
- func InSlice(slice []string, val string) (int, bool)
- func LoadConfigMap()
- func LocateConfigNamespace(secretName string)
- func PrintCharAcrossScreen(char string)
- func RemoveSecretData(secretName string, secretKey string) error
- func RetrieveSecrets(secretName string) map[string]string
- func StoreSecrets(secretName string, secrets map[string]string) bool
- func WriteToTempFile(content string) (string, error)
Constants ¶
This section is empty.
Variables ¶
var Config *properties.Properties = nil
Config holds the configMap from the data forwarder
var KubectlBin = "kubectl"
KubectlBin holds location of kubectl
Functions ¶
func CheckError ¶
CheckError will validate whether error is not nil
func DeleteFile ¶
DeleteFile deletes a file specified in the path
func DeleteSecret ¶
func DeleteSecret(secretName string)
DeleteSecret deletes the specified k8s secret
func ExecuteSingleCommand ¶
ExecuteSingleCommand this function executes a given command.
func FileExists ¶
FileExists will check if a file (not directory) exists in the specified path.
func HTTPRequest ¶
HTTPRequest send a REST api request to an end point
func LoadConfigMap ¶
func LoadConfigMap()
LoadConfigMap loads the config map from the densify forwarder
func LocateConfigNamespace ¶
func LocateConfigNamespace(secretName string)
LocateConfigNamespace will identify which namespace the configuration secret is stored.
func PrintCharAcrossScreen ¶
func PrintCharAcrossScreen(char string)
func RemoveSecretData ¶
RemoveSecretData deletes the specified k8s secret
func RetrieveSecrets ¶
RetrieveSecrets will retreive the specified secret
func StoreSecrets ¶
StoreSecrets stores the specified k8s secret
func WriteToTempFile ¶
WriteToTempFile writes the contents of the string to a temp file
Types ¶
This section is empty.