Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
SetForwardingPipelineConfig(ctx context.Context, spec *PipelineConfigSpec, opts ...grpc.CallOption) (*p4api.SetForwardingPipelineConfigResponse, error)
GetForwardingPipelineConfig(ctx context.Context, responseType p4api.GetForwardingPipelineConfigRequest_ResponseType, opts ...grpc.CallOption) (*p4api.GetForwardingPipelineConfigResponse, error)
}
Client an admin interface for setting/getting pipeline configuration
type Controller ¶
type Controller struct {
Config Config
// contains filtered or unexported fields
}
Controller p4rt controller
func StartController ¶
func StartController(cfg Config) *Controller
StartController creates a new P4RTController instance and starts it
type PipelineConfigSpec ¶
type PipelineConfigSpec struct {
P4Info *p4configapi.P4Info
P4DeviceConfig []byte
Action p4api.SetForwardingPipelineConfigRequest_Action
}
PipelineConfigSpec pipeline config info
Click to show internal directories.
Click to hide internal directories.