Documentation ¶
Index ¶
- type K8sReporter
- func (a *K8sReporter) Clone(config providers.IProviderConfig) (providers.IProvider, error)
- func (m *K8sReporter) ID() string
- func (m *K8sReporter) Init(config providers.IProviderConfig) error
- func (i *K8sReporter) InitWithMap(properties map[string]string) error
- func (m *K8sReporter) Report(id string, namespace string, group string, kind string, version string, ...) error
- func (a *K8sReporter) SetContext(context *contexts.ManagerContext)
- type K8sReporterConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8sReporter ¶
type K8sReporter struct { Config K8sReporterConfig Client *kubernetes.Clientset DynamicClient dynamic.Interface Context *contexts.ManagerContext }
func (*K8sReporter) Clone ¶
func (a *K8sReporter) Clone(config providers.IProviderConfig) (providers.IProvider, error)
func (*K8sReporter) ID ¶
func (m *K8sReporter) ID() string
func (*K8sReporter) Init ¶
func (m *K8sReporter) Init(config providers.IProviderConfig) error
func (*K8sReporter) InitWithMap ¶
func (i *K8sReporter) InitWithMap(properties map[string]string) error
func (*K8sReporter) SetContext ¶
func (a *K8sReporter) SetContext(context *contexts.ManagerContext)
type K8sReporterConfig ¶
type K8sReporterConfig struct { Name string `json:"name"` ConfigPath string `json:"configPath"` InCluster bool `json:"inCluster"` //TODO: add context support }
func K8sReporterConfigFromMap ¶
func K8sReporterConfigFromMap(properties map[string]string) (K8sReporterConfig, error)
Click to show internal directories.
Click to hide internal directories.