Documentation
¶
Index ¶
- func NewController(topo topo.Store, pipelineConfigs pipelineConfigStore.Store, ...) *controller.Controller
- func ToConfigAction(action topoapi.P4PipelineInfo_ConfigurationAction) p4rtapi.ConfigurationAction
- func ToSetPipelineConfigReqAction(configAction p4rtapi.ConfigurationAction) p4api.SetForwardingPipelineConfigRequest_Action
- type Reconciler
- type TopoWatcher
- type Watcher
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
func ToConfigAction(action topoapi.P4PipelineInfo_ConfigurationAction) p4rtapi.ConfigurationAction
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
Click to show internal directories.
Click to hide internal directories.