node

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: MPL-2.0 Imports: 12 Imported by: 5

Documentation

Overview

Package node provides the logic for mapping a Kubernetes Node to a LogicMonitor device.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodesMap added in v1.0.1

func GetNodesMap(k8sClient *kubernetes.Clientset) (map[string]string, error)

GetNodesMap implements the getting nodes map info from k8s

Types

type Watcher

type Watcher struct {
	types.DeviceManager
	DeviceGroups map[string]int32
	LMClient     *client.LMSdkGo
}

Watcher represents a watcher type that watches nodes.

func (*Watcher) APIVersion

func (w *Watcher) APIVersion() string

APIVersion is a function that implements the Watcher interface.

func (*Watcher) AddFunc

func (w *Watcher) AddFunc() func(obj interface{})

AddFunc is a function that implements the Watcher interface.

func (*Watcher) DeleteFunc

func (w *Watcher) DeleteFunc() func(obj interface{})

DeleteFunc is a function that implements the Watcher interface. nolint: dupl

func (*Watcher) Enabled

func (w *Watcher) Enabled() bool

Enabled is a function that check the resource can watch.

func (*Watcher) ObjType

func (w *Watcher) ObjType() runtime.Object

ObjType is a function that implements the Watcher interface.

func (*Watcher) Resource

func (w *Watcher) Resource() string

Resource is a function that implements the Watcher interface.

func (*Watcher) UpdateFunc

func (w *Watcher) UpdateFunc() func(oldObj, newObj interface{})

UpdateFunc is a function that implements the Watcher interface.

Jump to

Keyboard shortcuts

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