k8s

package
v0.0.0-...-5785f03 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 15 Imported by: 1

Documentation

Index

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 (*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) Report

func (m *K8sReporter) Report(id string, namespace string, group string, kind string, version string, properties map[string]string, overwrtie bool) 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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL