Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoSearch ¶
func DoSearch(stores []store.KubeconfigStore, config *types.Config, stateDir string, noIndex bool) (*chan DiscoveredContext, error)
DoSearch executes a concurrent search over the given kubeconfig stores returns results from all stores on the return channel
Types ¶
type DiscoveredContext ¶
type DiscoveredContext struct { // Path is the kubeconfig path in the backing store (filesystem / Vault) Path string // Name ist the context name in the kubeconfig Name string // Alias is a custom alias defined for this context name Alias string // Tags contains the additional metadata that the store wants to associate with a context name. // This metadata is later handed over in the getKubeconfigForPath() function when retrieving the kubeconfig bytes for the path Tags map[string]string // Store is a reference to the backing store that contains the kubeconfig Store *store.KubeconfigStore // Error is an error that occured during the search Error error }
Click to show internal directories.
Click to hide internal directories.