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

Interface Factory

internal/dao/types.go:22–46  ·  view source on GitHub ↗

Factory represents a resource factory.

Source from the content-addressed store, hash-verified

20
21// Factory represents a resource factory.
22type Factory interface {
23 // Client retrieves an api client.
24 Client() client.Connection
25
26 // Get fetch a given resource.
27 Get(gvr *client.GVR, path string, wait bool, sel labels.Selector) (runtime.Object, error)
28
29 // List fetch a collection of resources.
30 List(gvr *client.GVR, ns string, wait bool, sel labels.Selector) ([]runtime.Object, error)
31
32 // ForResource fetch an informer for a given resource.
33 ForResource(ns string, gvr *client.GVR) (informers.GenericInformer, error)
34
35 // CanForResource fetch an informer for a given resource if authorized
36 CanForResource(ns string, gvr *client.GVR, verbs []string) (informers.GenericInformer, error)
37
38 // WaitForCacheSync synchronize the cache.
39 WaitForCacheSync()
40
41 // DeleteForwarder deletes a pod forwarder.
42 DeleteForwarder(path string)
43
44 // Forwarders returns all portforwards.
45 Forwarders() watch.Forwarders
46}
47
48// ImageLister tracks resources with container images.
49type ImageLister interface {

Callers 50

RefreshMethod · 0.65
WatchMethod · 0.65
NewClusterFunction · 0.65
VersionMethod · 0.65
ContextNameMethod · 0.65
ClusterNameMethod · 0.65
UserNameMethod · 0.65
yamlCmdMethod · 0.65
DebugFactoryFunction · 0.65
ForResourceMethod · 0.65
showLogsMethod · 0.65
InitMethod · 0.65

Implementers 7

tableFactoryinternal/model/table_test.go
testFactoryinternal/model/log_test.go
testFactoryinternal/view/pf_extender_test.go
testFactoryinternal/xray/container_test.go
testFactoryinternal/dao/utils_test.go
podFactoryinternal/dao/container_test.go
Factoryinternal/watch/factory.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…