Container represents interface for accessing the data which sharing in overall application.
| 26 | |
| 27 | // Container represents interface for accessing the data which sharing in overall application. |
| 28 | type Container interface { |
| 29 | Env() *config.Env |
| 30 | Config() *config.AppConfig |
| 31 | RestConfig(config, cluster string) *rest.Config |
| 32 | ClientSet(config, cluster string) *kubernetes.Clientset |
| 33 | DynamicClient(config, cluster string) *dynamic.DynamicClient |
| 34 | DiscoveryClient(config, cluster string) *discovery.DiscoveryClient |
| 35 | MetricClient(config, cluster string) *metricsclient.Clientset |
| 36 | SharedInformerFactory(config, cluster string) informers.SharedInformerFactory |
| 37 | ExtensionSharedFactoryInformer(config, cluster string) apiextensionsinformers.SharedInformerFactory |
| 38 | DynamicSharedInformerFactory(config, cluster string) dynamicinformer.DynamicSharedInformerFactory |
| 39 | Cache() *otter.Cache[string, any] |
| 40 | SSE() *sse.Server |
| 41 | SocketUpgrader() *websocket.Upgrader |
| 42 | EventProcessor() *event.EventProcessor |
| 43 | PortForwarder() *portforward.PortForwarder |
| 44 | } |
| 45 | |
| 46 | // container struct is for sharing data which such as database setting, the setting of application and logger in overall this application. |
| 47 | type container struct { |
no outgoing calls
no test coverage detected