Documentation
¶
Overview ¶
Package env resolves filesystem paths from environment variables, keeping environment lookups out of business logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GcloudRoot ¶
GcloudRoot resolves the gcloud config root: $CLOUDSDK_CONFIG, else ~/.config/gcloud (gcloud hardcodes ~/.config, ignoring XDG_CONFIG_HOME).
func KubeAuthCachePath ¶ added in v0.1.1
KubeAuthCachePath resolves the gke-gcloud-auth-plugin token cache: $KUBECACHEDIR (falling back to ~/.kube)/gke_gcloud_auth_plugin_cache. The plugin serves this cached token until expiry regardless of the active gcloud account, so switching configurations must invalidate it.
func PreviousStatePath ¶
PreviousStatePath resolves gctx's state file recording the previously active configuration: <$XDG_CONFIG_HOME|~/.config>/gcloud-switch/previous.
Types ¶
This section is empty.