Factory represents a resource factory.
| 20 | |
| 21 | // Factory represents a resource factory. |
| 22 | type 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. |
| 49 | type ImageLister interface { |
no outgoing calls
no test coverage detected
searching dependent graphs…