node_observer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GenerateTopologyURL string         `yaml:"generateTopologyUrl"`
	Trigger             Trigger        `yaml:"trigger"`
	Provider            string         `yaml:"provider"`
	Engine              string         `yaml:"engine"`
	Params              map[string]any `yaml:"params"`
}

func NewConfigFromFile

func NewConfigFromFile(fname string) (*Config, error)

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(ctx context.Context, client kubernetes.Interface, cfg *Config) (*Controller, error)

func (*Controller) Start

func (c *Controller) Start() error

func (*Controller) Stop

func (c *Controller) Stop(err error)

type NodeInformer

type NodeInformer struct {
	// contains filtered or unexported fields
}

func NewNodeInformer

func NewNodeInformer(ctx context.Context, client kubernetes.Interface, trigger *Trigger, reqFunc httpreq.RequestFunc) (*NodeInformer, error)

func (*NodeInformer) Start

func (n *NodeInformer) Start() error

func (*NodeInformer) Stop

func (n *NodeInformer) Stop(_ error)

type Trigger

type Trigger struct {
	NodeSelector map[string]string     `yaml:"nodeSelector,omitempty"`
	PodSelector  *metav1.LabelSelector `yaml:"podSelector,omitempty"`
}

Jump to

Keyboard shortcuts

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