INNER CODE UNIT · Go
readFromPathToKubeconfig
danielfoehrKn/kubeswitch · pkg/main.go:357
func readFromPathToKubeconfig(key string) string {
pathToKubeconfigLock.RLock()
defer pathToKubeconfigLock.RUnlock()
return pathToKubeconfig[key]
}
func writeToPathToKubeconfig(key, value string) {
pathToKubeconfigLock.Lock()
defer pathToKubeconfigLock.Unlock()
pathToKubeconfig[key] = value
}
func writeToAliasToContext(key, value string) {
aliasToContextLock.Lock()
defer aliasToContextLock.Unlock()
aliasToContext[key] = value
}