Documentation ¶
Index ¶
- Variables
- func CacheEnvVars(currentEnvVars []api.EnvVar, newEnvVars []api.EnvVar) []api.EnvVar
- func GenerateRandomBytes(length int) ([]byte, error)
- func GenerateRandomString(length int) (string, error)
- func GetPTSFromURL(ptsURLString string, request *http.Request) (api.PodTemplateSpec, error)
- func UniqueHostNames(hostNames []string, client k8sClient.Client) (bool, error)
- func ValidAdmin(organization string, w http.ResponseWriter, r *http.Request) bool
Constants ¶
This section is empty.
Variables ¶
var LogError = log.New(os.Stdout, "ERROR: ", log.Ldate|log.Ltime|log.LUTC|log.Lshortfile)
LogError the error log level
LogInfo the info log level
LogWarn the warn log level
Functions ¶
func CacheEnvVars ¶
CacheEnvVars appends a list of new env vars to a given current list without duplication
func GenerateRandomBytes ¶
GenerateRandomBytes returns securely generated random bytes. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
func GenerateRandomString ¶
GenerateRandomString returns a URL-safe, base64 encoded securely generated random string.
func GetPTSFromURL ¶
GetPTSFromURL gets a pod template spec from a given URL
func UniqueHostNames ¶
UniqueHostNames checks if the desired hostNames are unique among existing namespaces
func ValidAdmin ¶
ValidAdmin checks if the user is an org admin for the organization they are making a request in
Types ¶
This section is empty.