node

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package node provides kubernetes node information and preriodically update

Package node provides kubernetes node information and preriodically update

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Name         string
	InternalAddr string
	ExternalAddr string
	CPUCapacity  float64
	CPURemain    float64
	MemCapacity  float64
	MemRemain    float64
}

type NodeWatcher

type NodeWatcher k8s.ResourceController

func New

func New(opts ...Option) NodeWatcher

type Option

type Option func(*reconciler) error

func WithControllerName

func WithControllerName(name string) Option

func WithFields added in v1.3.0

func WithFields(fs map[string]string) Option

func WithLabels added in v1.3.0

func WithLabels(ls map[string]string) Option

func WithManager

func WithManager(mgr manager.Manager) Option

func WithNamespace added in v1.3.0

func WithNamespace(ns string) Option

func WithOnErrorFunc

func WithOnErrorFunc(f func(err error)) Option

func WithOnReconcileFunc

func WithOnReconcileFunc(f func(nodes []Node)) Option

Jump to

Keyboard shortcuts

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