pipeline

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewController

func NewController(topo topo.Store, pipelineConfigs pipelineConfigStore.Store, adminController *admin.Controller, p4pluginRegistry pluginregistry.P4PluginRegistry) *controller.Controller

NewController returns a new device pipeline pipeline config controller

func ToConfigAction added in v0.0.9

ToConfigAction converts topo configuration action type to p4rt api action type

func ToSetPipelineConfigReqAction added in v0.0.9

func ToSetPipelineConfigReqAction(configAction p4rtapi.ConfigurationAction) p4api.SetForwardingPipelineConfigRequest_Action

ToSetPipelineConfigReqAction converts config action to P4Runtime API config request action

Types

type Reconciler

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

Reconciler reconciles device pipeline config

func (*Reconciler) Reconcile

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

Reconcile reconciles pipeline configuration

type TopoWatcher

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

TopoWatcher is a topology watcher

func (*TopoWatcher) Start

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

Start starts the topo store watcher

func (*TopoWatcher) Stop

func (w *TopoWatcher) Stop()

Stop stops the topology watcher

type Watcher

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

Watcher pipeline config 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