MCPcopy
hub / github.com/kubewall/kubewall / Container

Interface Container

backend/container/container.go:28–44  ·  view source on GitHub ↗

Container represents interface for accessing the data which sharing in overall application.

Source from the content-addressed store, hash-verified

26
27// Container represents interface for accessing the data which sharing in overall application.
28type 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.
47type container struct {

Callers 59

ServeFunction · 0.95
ClusterCacheMiddlewareFunction · 0.65
GetMethod · 0.65
ReloadMethod · 0.65
PostMethod · 0.65
PostBearerMethod · 0.65
PostCertificateMethod · 0.65
NewPodsHandlerFunction · 0.65
StartPortForwardingMethod · 0.65
RemovePortForwardingMethod · 0.65
publishListMethod · 0.65

Implementers 1

containerbackend/container/container.go

Calls

no outgoing calls

Tested by

no test coverage detected