MCPcopy
hub / github.com/derailed/k9s / ContextNamer

Interface ContextNamer

internal/render/context.go:79–81  ·  view source on GitHub ↗

ContextNamer represents a named context.

Source from the content-addressed store, hash-verified

77
78// ContextNamer represents a named context.
79type ContextNamer interface {
80 CurrentContextName() (string, error)
81}
82
83// NewNamedContext returns a new named context.
84func NewNamedContext(c ContextNamer, n string, ctx *api.Context) *NamedContext {

Callers 4

ContextNameMethod · 0.65
k8sEnvFunction · 0.65
IsCurrentContextMethod · 0.65

Implementers 3

Configinternal/client/config.go
configinternal/render/context_test.go
mockKubeSettingsinternal/config/mock/test_helpers.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…