INNER CODE UNIT · Go
writeToPathToStoreID
danielfoehrKn/kubeswitch · pkg/main.go:351
func writeToPathToStoreID(key string, value string) {
pathToStoreLock.Lock()
defer pathToStoreLock.Unlock()
pathToStoreID[key] = value
}
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
}