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

Function NewCluster

internal/model/cluster.go:50–56  ·  view source on GitHub ↗

NewCluster returns a new cluster info resource.

(f dao.Factory)

Source from the content-addressed store, hash-verified

48
49// NewCluster returns a new cluster info resource.
50func NewCluster(f dao.Factory) *Cluster {
51 return &Cluster{
52 factory: f,
53 mx: client.DialMetrics(f.Client()),
54 cache: cache.NewLRUExpireCache(clusterCacheSize),
55 }
56}
57
58// Version returns the current K8s cluster version.
59func (c *Cluster) Version() string {

Callers 2

NewClusterInfoFunction · 0.85
ResetMethod · 0.85

Calls 2

DialMetricsFunction · 0.92
ClientMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…