nrtupdater

package
v0.11.100 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 14 Imported by: 4

Documentation

Index

Constants

View Source
const (
	RTEUpdatePeriodic = "periodic"
	RTEUpdateReactive = "reactive"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	NoPublish bool
	Oneshot   bool
	Hostname  string
}

Command line arguments

type MonitorInfo

type MonitorInfo struct {
	Timer       bool
	Zones       v1alpha2.ZoneList
	Attributes  v1alpha2.AttributeList
	Annotations map[string]string
}

func (MonitorInfo) UpdateReason added in v0.1.1

func (mi MonitorInfo) UpdateReason() string

type NRTUpdater

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

func NewNRTUpdater

func NewNRTUpdater(args Args, tmconf TMConfig) *NRTUpdater

func (*NRTUpdater) Run

func (te *NRTUpdater) Run(infoChannel <-chan MonitorInfo, condChan chan v1.PodCondition)

func (*NRTUpdater) Stop added in v0.4.0

func (te *NRTUpdater) Stop()

func (*NRTUpdater) Update

func (te *NRTUpdater) Update(info MonitorInfo) error

func (*NRTUpdater) UpdateWithClient added in v0.4.2

func (te *NRTUpdater) UpdateWithClient(cli topologyclientset.Interface, info MonitorInfo) error

type TMConfig added in v0.10.0

type TMConfig struct {
	Policy string
	Scope  string
}

func (TMConfig) IsValid added in v0.10.0

func (conf TMConfig) IsValid() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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