support

package
v0.0.0-...-ab80ba3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Config holds the configMap from the data forwarder

View Source
var KubectlBin = "kubectl"

KubectlBin holds location of kubectl

Functions

func CheckError

func CheckError(message string, err error, exit bool) bool

CheckError will validate whether error is not nil

func CheckMap

func CheckMap(inputMap map[string]interface{}, list ...string) string

func DeleteFile

func DeleteFile(filepath string) error

DeleteFile deletes a file specified in the path

func DeleteSecret

func DeleteSecret(secretName string)

DeleteSecret deletes the specified k8s secret

func DirExists

func DirExists(filename string) bool

DirExists checks to see if directory exists

func ExecuteSingleCommand

func ExecuteSingleCommand(command []string) (string, string, error)

ExecuteSingleCommand this function executes a given command.

func FileExists

func FileExists(filename string) bool

FileExists will check if a file (not directory) exists in the specified path.

func HTTPRequest

func HTTPRequest(method string, endpoint string, authStr string, body []byte) (string, error)

HTTPRequest send a REST api request to an end point

func InMap

func InMap(inputMap map[string]interface{}, keys []string) bool

func InSlice

func InSlice(slice []string, val string) (int, bool)

InSlice will check if an element exists in the slice

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

func RemoveSecretData(secretName string, secretKey string) error

RemoveSecretData deletes the specified k8s secret

func RetrieveSecrets

func RetrieveSecrets(secretName string) map[string]string

RetrieveSecrets will retreive the specified secret

func StoreSecrets

func StoreSecrets(secretName string, secrets map[string]string) bool

StoreSecrets stores the specified k8s secret

func WriteToTempFile

func WriteToTempFile(content string) (string, error)

WriteToTempFile writes the contents of the string to a temp file

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL