SYMBOL INDEX (186 symbols across 54 files) FILE: cmd/kubectx/current.go type CurrentOp (line 26) | type CurrentOp struct method Run (line 28) | func (_op CurrentOp) Run(stdout, _ io.Writer) error { FILE: cmd/kubectx/delete.go type DeleteOp (line 27) | type DeleteOp struct method Run (line 32) | func (op DeleteOp) Run(_, stderr io.Writer) error { function deleteContext (line 54) | func deleteContext(name string) (deleteName string, wasActiveContext boo... FILE: cmd/kubectx/flags.go type UnsupportedOp (line 27) | type UnsupportedOp struct method Run (line 29) | func (op UnsupportedOp) Run(_, _ io.Writer) error { function parseArgs (line 35) | func parseArgs(argv []string) Op { FILE: cmd/kubectx/flags_test.go function Test_parseArgs_new (line 24) | func Test_parseArgs_new(t *testing.T) { FILE: cmd/kubectx/fzf.go type InteractiveSwitchOp (line 32) | type InteractiveSwitchOp struct method Run (line 40) | func (op InteractiveSwitchOp) Run(_, stderr io.Writer) error { type InteractiveDeleteOp (line 36) | type InteractiveDeleteOp struct method Run (line 90) | func (op InteractiveDeleteOp) Run(_, stderr io.Writer) error { FILE: cmd/kubectx/help.go type HelpOp (line 26) | type HelpOp struct method Run (line 28) | func (_ HelpOp) Run(stdout, _ io.Writer) error { function printUsage (line 32) | func printUsage(out io.Writer) error { function selfName (line 58) | func selfName() string { FILE: cmd/kubectx/help_test.go function TestPrintHelp (line 23) | func TestPrintHelp(t *testing.T) { FILE: cmd/kubectx/isolated_shell_guard.go function checkIsolatedMode (line 11) | func checkIsolatedMode() error { FILE: cmd/kubectx/list.go type ListOp (line 29) | type ListOp struct method Run (line 31) | func (_ ListOp) Run(stdout, stderr io.Writer) error { FILE: cmd/kubectx/main.go type Op (line 28) | type Op interface function main (line 32) | func main() { FILE: cmd/kubectx/rename.go type RenameOp (line 27) | type RenameOp struct method Run (line 45) | func (op RenameOp) Run(_, stderr io.Writer) error { function parseRenameSyntax (line 34) | func parseRenameSyntax(v string) (string, string, bool) { FILE: cmd/kubectx/rename_test.go function Test_parseRenameSyntax (line 23) | func Test_parseRenameSyntax(t *testing.T) { FILE: cmd/kubectx/shell.go type ShellOp (line 18) | type ShellOp struct method Run (line 22) | func (op ShellOp) Run(_, stderr io.Writer) error { function resolveKubectl (line 96) | func resolveKubectl() (string, error) { function extractMinimalKubeconfig (line 107) | func extractMinimalKubeconfig(kubectlPath, contextName string) ([]byte, ... function detectShell (line 118) | func detectShell() string { FILE: cmd/kubectx/shell_test.go function Test_detectShell_unix (line 11) | func Test_detectShell_unix(t *testing.T) { function Test_ShellOp_blockedWhenNested (line 45) | func Test_ShellOp_blockedWhenNested(t *testing.T) { function Test_resolveKubectl_envVar (line 68) | func Test_resolveKubectl_envVar(t *testing.T) { function Test_resolveKubectl_inPath (line 79) | func Test_resolveKubectl_inPath(t *testing.T) { function Test_checkIsolatedMode_notSet (line 92) | func Test_checkIsolatedMode_notSet(t *testing.T) { function Test_checkIsolatedMode_set (line 101) | func Test_checkIsolatedMode_set(t *testing.T) { FILE: cmd/kubectx/state.go function kubectxPrevCtxFile (line 26) | func kubectxPrevCtxFile() (string, error) { function readLastContext (line 36) | func readLastContext(path string) (string, error) { function writeLastContext (line 46) | func writeLastContext(path, value string) error { FILE: cmd/kubectx/state_test.go function Test_readLastContext_nonExistingFile (line 23) | func Test_readLastContext_nonExistingFile(t *testing.T) { function Test_readLastContext (line 33) | func Test_readLastContext(t *testing.T) { function Test_writeLastContext_err (line 49) | func Test_writeLastContext_err(t *testing.T) { function Test_writeLastContext (line 57) | func Test_writeLastContext(t *testing.T) { function Test_kubectxFilePath (line 74) | func Test_kubectxFilePath(t *testing.T) { function Test_kubectxFilePath_xdgCacheHome (line 88) | func Test_kubectxFilePath_xdgCacheHome(t *testing.T) { function Test_kubectxFilePath_error (line 101) | func Test_kubectxFilePath_error(t *testing.T) { FILE: cmd/kubectx/switch.go type SwitchOp (line 27) | type SwitchOp struct method Run (line 31) | func (op SwitchOp) Run(_, stderr io.Writer) error { function switchContext (line 52) | func switchContext(name string) (string, error) { function swapContext (line 91) | func swapContext() (string, error) { FILE: cmd/kubectx/unset.go type UnsetOp (line 26) | type UnsetOp struct method Run (line 28) | func (_ UnsetOp) Run(_, stderr io.Writer) error { FILE: cmd/kubectx/version.go type VersionOp (line 13) | type VersionOp struct method Run (line 15) | func (_ VersionOp) Run(stdout, _ io.Writer) error { FILE: cmd/kubens/current.go type CurrentOp (line 25) | type CurrentOp struct method Run (line 27) | func (c CurrentOp) Run(stdout, _ io.Writer) error { FILE: cmd/kubens/flags.go type UnsupportedOp (line 28) | type UnsupportedOp struct method Run (line 30) | func (op UnsupportedOp) Run(_, _ io.Writer) error { function parseArgs (line 36) | func parseArgs(argv []string) Op { function getSwitchOp (line 81) | func getSwitchOp(v string, force bool) Op { FILE: cmd/kubens/flags_test.go function Test_parseArgs_new (line 24) | func Test_parseArgs_new(t *testing.T) { FILE: cmd/kubens/fzf.go type InteractiveSwitchOp (line 32) | type InteractiveSwitchOp struct method Run (line 37) | func (op InteractiveSwitchOp) Run(_, stderr io.Writer) error { FILE: cmd/kubens/help.go type HelpOp (line 26) | type HelpOp struct method Run (line 28) | func (_ HelpOp) Run(stdout, _ io.Writer) error { function printUsage (line 32) | func printUsage(out io.Writer) error { function selfName (line 54) | func selfName() string { FILE: cmd/kubens/list.go type ListOp (line 34) | type ListOp struct method Run (line 36) | func (op ListOp) Run(stdout, stderr io.Writer) error { function queryNamespaces (line 70) | func queryNamespaces(kc *kubeconfig.Kubeconfig) ([]string, error) { function newKubernetesClientSet (line 104) | func newKubernetesClientSet(kc *kubeconfig.Kubeconfig) (*kubernetes.Clie... FILE: cmd/kubens/main.go type Op (line 28) | type Op interface function main (line 32) | func main() { FILE: cmd/kubens/statefile.go type NSFile (line 29) | type NSFile struct method path (line 36) | func (f NSFile) path() string { method Load (line 46) | func (f NSFile) Load() (string, error) { method Save (line 58) | func (f NSFile) Save(value string) error { function NewNSFile (line 34) | func NewNSFile(ctx string) NSFile { return NSFile{dir: defaultDir, ctx: ... function isWindows (line 67) | func isWindows() bool { FILE: cmd/kubens/statefile_test.go function TestNSFile (line 23) | func TestNSFile(t *testing.T) { function TestNSFile_path_windows (line 50) | func TestNSFile_path_windows(t *testing.T) { function Test_isWindows (line 59) | func Test_isWindows(t *testing.T) { FILE: cmd/kubens/switch.go type SwitchOp (line 31) | type SwitchOp struct method Run (line 36) | func (s SwitchOp) Run(_, stderr io.Writer) error { function switchNamespace (line 51) | func switchNamespace(kc *kubeconfig.Kubeconfig, ns string, force bool) (... function namespaceExists (line 101) | func namespaceExists(kc *kubeconfig.Kubeconfig, ns string) (bool, error) { FILE: cmd/kubens/unset.go type UnsetOp (line 27) | type UnsetOp struct method Run (line 29) | func (_ UnsetOp) Run(_, stderr io.Writer) error { function clearNamespace (line 44) | func clearNamespace(kc *kubeconfig.Kubeconfig) (string, error) { FILE: cmd/kubens/version.go type VersionOp (line 13) | type VersionOp struct method Run (line 15) | func (_ VersionOp) Run(stdout, _ io.Writer) error { FILE: internal/cmdutil/deprecated.go function PrintDeprecatedEnvWarnings (line 24) | func PrintDeprecatedEnvWarnings(out io.Writer, vars []string) { FILE: internal/cmdutil/deprecated_test.go function TestPrintDeprecatedEnvWarnings_noDeprecatedVars (line 23) | func TestPrintDeprecatedEnvWarnings_noDeprecatedVars(t *testing.T) { function TestPrintDeprecatedEnvWarnings_bgColors (line 34) | func TestPrintDeprecatedEnvWarnings_bgColors(t *testing.T) { FILE: internal/cmdutil/interactive.go function isTerminal (line 27) | func isTerminal(fd *os.File) bool { function fzfInstalled (line 32) | func fzfInstalled() bool { function IsInteractiveMode (line 41) | func IsInteractiveMode(stdout *os.File) bool { FILE: internal/cmdutil/util.go function HomeDir (line 23) | func HomeDir() string { function CacheDir (line 33) | func CacheDir() string { function IsNotFoundErr (line 45) | func IsNotFoundErr(err error) bool { FILE: internal/cmdutil/util_test.go function Test_homeDir (line 22) | func Test_homeDir(t *testing.T) { function TestCacheDir (line 77) | func TestCacheDir(t *testing.T) { FILE: internal/env/constants.go constant EnvFZFIgnore (line 20) | EnvFZFIgnore = "KUBECTX_IGNORE_FZF" constant EnvNoColor (line 24) | EnvNoColor = `NO_COLOR` constant EnvForceColor (line 28) | EnvForceColor = `_KUBECTX_FORCE_COLOR` constant EnvDebug (line 31) | EnvDebug = `DEBUG` constant EnvIsolatedShell (line 33) | EnvIsolatedShell = "KUBECTX_ISOLATED_SHELL" FILE: internal/kubeconfig/contextmodify.go method DeleteContextEntry (line 23) | func (k *Kubeconfig) DeleteContextEntry(deleteName string) error { method ModifyCurrentContext (line 39) | func (k *Kubeconfig) ModifyCurrentContext(name string) error { method ModifyContextName (line 46) | func (k *Kubeconfig) ModifyContextName(old, new string) error { FILE: internal/kubeconfig/contextmodify_test.go function TestKubeconfig_DeleteContextEntry_errors (line 25) | func TestKubeconfig_DeleteContextEntry_errors(t *testing.T) { function TestKubeconfig_DeleteContextEntry (line 48) | func TestKubeconfig_DeleteContextEntry(t *testing.T) { function TestKubeconfig_ModifyCurrentContext_fieldExists (line 74) | func TestKubeconfig_ModifyCurrentContext_fieldExists(t *testing.T) { function TestKubeconfig_ModifyCurrentContext_fieldMissing (line 95) | func TestKubeconfig_ModifyCurrentContext_fieldMissing(t *testing.T) { function TestKubeconfig_ModifyContextName_noContextsEntryError (line 117) | func TestKubeconfig_ModifyContextName_noContextsEntryError(t *testing.T) { function TestKubeconfig_ModifyContextName_contextsEntryNotSequenceError (line 129) | func TestKubeconfig_ModifyContextName_contextsEntryNotSequenceError(t *t... function TestKubeconfig_ModifyContextName_noChange (line 142) | func TestKubeconfig_ModifyContextName_noChange(t *testing.T) { function TestKubeconfig_ModifyContextName (line 156) | func TestKubeconfig_ModifyContextName(t *testing.T) { FILE: internal/kubeconfig/contexts.go method contextsNode (line 25) | func (k *Kubeconfig) contextsNode() (*yaml.RNode, error) { method contextNode (line 38) | func (k *Kubeconfig) contextNode(name string) (*yaml.RNode, error) { method ContextNames (line 53) | func (k *Kubeconfig) ContextNames() ([]string, error) { method ContextExists (line 68) | func (k *Kubeconfig) ContextExists(name string) (bool, error) { FILE: internal/kubeconfig/contexts_test.go function TestKubeconfig_ContextNames (line 25) | func TestKubeconfig_ContextNames(t *testing.T) { function TestKubeconfig_ContextNames_noContextsEntry (line 46) | func TestKubeconfig_ContextNames_noContextsEntry(t *testing.T) { function TestKubeconfig_ContextNames_nonArrayContextsEntry (line 62) | func TestKubeconfig_ContextNames_nonArrayContextsEntry(t *testing.T) { function TestKubeconfig_CheckContextExists (line 74) | func TestKubeconfig_CheckContextExists(t *testing.T) { FILE: internal/kubeconfig/currentcontext.go method GetCurrentContext (line 25) | func (k *Kubeconfig) GetCurrentContext() (string, error) { method UnsetCurrentContext (line 33) | func (k *Kubeconfig) UnsetCurrentContext() error { FILE: internal/kubeconfig/currentcontext_test.go function TestKubeconfig_GetCurrentContext (line 23) | func TestKubeconfig_GetCurrentContext(t *testing.T) { function TestKubeconfig_GetCurrentContext_missingField (line 40) | func TestKubeconfig_GetCurrentContext_missingField(t *testing.T) { function TestKubeconfig_UnsetCurrentContext (line 57) | func TestKubeconfig_UnsetCurrentContext(t *testing.T) { FILE: internal/kubeconfig/helper_test.go type MockKubeconfigLoader (line 23) | type MockKubeconfigLoader struct method Read (line 28) | func (t *MockKubeconfigLoader) Read(p []byte) (n int, err error) { re... method Write (line 29) | func (t *MockKubeconfigLoader) Write(p []byte) (n int, err error) { re... method Close (line 30) | func (t *MockKubeconfigLoader) Close() error { re... method Reset (line 31) | func (t *MockKubeconfigLoader) Reset() error { re... method Load (line 32) | func (t *MockKubeconfigLoader) Load() ([]ReadWriteResetCloser, error) { method Output (line 35) | func (t *MockKubeconfigLoader) Output() string { return t.out.String() } function WithMockKubeconfigLoader (line 37) | func WithMockKubeconfigLoader(kubecfg string) *MockKubeconfigLoader { FILE: internal/kubeconfig/kubeconfig.go type ReadWriteResetCloser (line 25) | type ReadWriteResetCloser interface type Loader (line 32) | type Loader interface type Kubeconfig (line 36) | type Kubeconfig struct method WithLoader (line 43) | func (k *Kubeconfig) WithLoader(l Loader) *Kubeconfig { method Close (line 48) | func (k *Kubeconfig) Close() error { method Parse (line 55) | func (k *Kubeconfig) Parse() error { method Bytes (line 76) | func (k *Kubeconfig) Bytes() ([]byte, error) { method Save (line 84) | func (k *Kubeconfig) Save() error { FILE: internal/kubeconfig/kubeconfig_test.go function TestParse (line 25) | func TestParse(t *testing.T) { function TestSave (line 49) | func TestSave(t *testing.T) { FILE: internal/kubeconfig/kubeconfigloader.go type StandardKubeconfigLoader (line 30) | type StandardKubeconfigLoader struct method Load (line 34) | func (*StandardKubeconfigLoader) Load() ([]ReadWriteResetCloser, error) { type kubeconfigFile (line 32) | type kubeconfigFile struct method Reset (line 52) | func (kf *kubeconfigFile) Reset() error { function kubeconfigPath (line 62) | func kubeconfigPath() (string, error) { FILE: internal/kubeconfig/kubeconfigloader_test.go function Test_kubeconfigPath (line 26) | func Test_kubeconfigPath(t *testing.T) { function Test_kubeconfigPath_noEnvVars (line 39) | func Test_kubeconfigPath_noEnvVars(t *testing.T) { function Test_kubeconfigPath_envOvveride (line 50) | func Test_kubeconfigPath_envOvveride(t *testing.T) { function Test_kubeconfigPath_envOvverideDoesNotSupportPathSeparator (line 62) | func Test_kubeconfigPath_envOvverideDoesNotSupportPathSeparator(t *testi... function TestStandardKubeconfigLoader_returnsNotFoundErr (line 72) | func TestStandardKubeconfigLoader_returnsNotFoundErr(t *testing.T) { FILE: internal/kubeconfig/namespace.go constant defaultNamespace (line 22) | defaultNamespace = "default" method NamespaceOfContext (line 25) | func (k *Kubeconfig) NamespaceOfContext(contextName string) (string, err... method SetNamespace (line 37) | func (k *Kubeconfig) SetNamespace(ctxName string, ns string) error { FILE: internal/kubeconfig/namespace_test.go function TestKubeconfig_NamespaceOfContext_ctxNotFound (line 25) | func TestKubeconfig_NamespaceOfContext_ctxNotFound(t *testing.T) { function TestKubeconfig_NamespaceOfContext (line 38) | func TestKubeconfig_NamespaceOfContext(t *testing.T) { function TestKubeconfig_SetNamespace (line 64) | func TestKubeconfig_SetNamespace(t *testing.T) { FILE: internal/printer/color.go function init (line 29) | func init() { function useColors (line 36) | func useColors() *bool { function EnableOrDisableColor (line 48) | func EnableOrDisableColor(c *color.Color) { FILE: internal/printer/color_test.go function Test_useColors_forceColors (line 27) | func Test_useColors_forceColors(t *testing.T) { function Test_useColors_disableColors (line 36) | func Test_useColors_disableColors(t *testing.T) { function Test_useColors_default (line 44) | func Test_useColors_default(t *testing.T) { FILE: internal/printer/printer.go function init (line 30) | func init() { function Error (line 46) | func Error(w io.Writer, format string, args ...any) error { function Warning (line 51) | func Warning(w io.Writer, format string, args ...any) error { function Success (line 56) | func Success(w io.Writer, format string, args ...any) error { FILE: internal/testutil/kubeconfigbuilder.go type Context (line 24) | type Context struct method Ns (line 32) | func (c *Context) Ns(ns string) *Context { c.Context.Namespace = ns; r... function Ctx (line 31) | func Ctx(name string) *Context { return &Context{Name: name} } type Kubeconfig (line 34) | type Kubeconfig method Set (line 42) | func (k *Kubeconfig) Set(key string, v any) *Kubeconfig { (*k)[key] ... method WithCurrentCtx (line 43) | func (k *Kubeconfig) WithCurrentCtx(s string) *Kubeconfig { (*k)["curr... method WithCtxs (line 44) | func (k *Kubeconfig) WithCtxs(c ...*Context) *Kubeconfig { (*k)["cont... method ToYAML (line 46) | func (k *Kubeconfig) ToYAML(t *testing.T) string { function KC (line 36) | func KC() *Kubeconfig {