pkg

package
v0.0.0-...-21becc5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2025 License: Apache-2.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoSearch

func DoSearch(stores []storetypes.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

func Switcher

func Switcher(stores []storetypes.KubeconfigStore, config *types.Config, stateDir string, noIndex, showPreview bool) (*string, *string, error)

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 *storetypes.KubeconfigStore
	// Error is an error that occured during the search
	Error error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL