proposal

package
v0.10.21 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewController

func NewController(topo topo.Store, conns gnmi.ConnManager, proposals proposalstore.Store, configurations configuration.Store, pluginRegistry pluginregistry.PluginRegistry) *controller.Controller

NewController returns a proposal controller

Types

type ConfigurationWatcher

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

ConfigurationWatcher configuration store watcher

func (*ConfigurationWatcher) Start

func (w *ConfigurationWatcher) Start(ch chan<- controller.ID) error

Start starts the watcher

func (*ConfigurationWatcher) Stop

func (w *ConfigurationWatcher) Stop()

Stop stops the watcher

type Partitioner

type Partitioner struct{}

Partitioner is a proposal partitioner

func (*Partitioner) Partition

func (p *Partitioner) Partition(id controller.ID) (controller.PartitionKey, error)

Partition partitions proposals by target ID

type Reconciler

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

Reconciler reconciles proposals

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(id controller.ID) (controller.Result, error)

Reconcile reconciles target proposals

type Watcher

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

Watcher proposal store watcher

func (*Watcher) Start

func (w *Watcher) Start(ch chan<- controller.ID) error

Start starts the watcher

func (*Watcher) Stop

func (w *Watcher) Stop()

Stop stops the watcher

Jump to

Keyboard shortcuts

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