node

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OfflineDuration = 40 * time.Second
	KeyNodeProps    = "nodeprops"
	KubeNodeName    = "KUBE_NODE_NAME"
)

Variables

View Source
var (
	ErrParseReport = errors.New("failed to parse report struct")
)

Functions

This section is empty.

Types

type Node

type Node interface {
	Get() (m *v1.Node, err error)
	Desire(desired v1.Desire, override bool) (delta v1.Delta, err error)
	Report(reported v1.Report, override bool) (delta v1.Delta, err error)
	GetStats(ctx *routing.Context) (interface{}, error)
	GetNodeProperties(ctx *routing.Context) (interface{}, error)
	UpdateNodeProperties(ctx *routing.Context) (interface{}, error)
}

func NewNode

func NewNode(store *bh.Store) (Node, error)

NewNode create a node with shadow

Jump to

Keyboard shortcuts

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