admin

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 17 Imported by: 2

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 Config

type Config struct {
	CAPath      string
	KeyPath     string
	CertPath    string
	TopoAddress string
}

Config is a manager

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

func (*Controller) Client

func (c *Controller) Client(ctx context.Context, targetID topoapi.ID) (Client, *topoapi.Object, *topoapi.Object, error)

Client returns a master client for the given target

type PipelineConfigSpec

type PipelineConfigSpec struct {
	P4Info         *p4configapi.P4Info
	P4DeviceConfig []byte
	Action         p4api.SetForwardingPipelineConfigRequest_Action
}

PipelineConfigSpec pipeline config info

Jump to

Keyboard shortcuts

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