Documentation
¶
Overview ¶
Package messages is a generated protocol buffer package.
It is generated from these files:
messages/messages.proto
It has these top-level messages:
EchoRequest EchoResponse PingRequest PingResponse Response CreateBridgeRequest DeleteBridgeRequest AddPortRequest PortOptions SetPortRequest GetPortRequest GetPortResponse DeletePortRequest AddFlowRequest DeleteFlowRequest DumpFlowsRequest DumpFlowsResponse DumpPortsRequest DumpPortsResponse DumpPortRequest DumpPortResponse FindNetworkNamespacePathRequest FindNetworkNamespacePathResponse ConnectBridgeRequest ConfigureIfaceRequest AddRouteRequest
Index ¶
- func RegisterNetworkControlServer(s *grpc.Server, srv NetworkControlServer)
- type AddFlowRequest
- type AddPortRequest
- func (*AddPortRequest) Descriptor() ([]byte, []int)
- func (m *AddPortRequest) GetBridgeName() string
- func (m *AddPortRequest) GetDpdkDevargs() string
- func (m *AddPortRequest) GetIfaceName() string
- func (*AddPortRequest) ProtoMessage()
- func (m *AddPortRequest) Reset()
- func (m *AddPortRequest) String() string
- type AddRouteRequest
- func (*AddRouteRequest) Descriptor() ([]byte, []int)
- func (m *AddRouteRequest) GetContainerVethName() string
- func (m *AddRouteRequest) GetDstCIDR() string
- func (m *AddRouteRequest) GetGwIP() string
- func (m *AddRouteRequest) GetPath() string
- func (*AddRouteRequest) ProtoMessage()
- func (m *AddRouteRequest) Reset()
- func (m *AddRouteRequest) String() string
- type ConfigureIfaceRequest
- func (*ConfigureIfaceRequest) Descriptor() ([]byte, []int)
- func (m *ConfigureIfaceRequest) GetCIDR() string
- func (m *ConfigureIfaceRequest) GetContainerVethName() string
- func (m *ConfigureIfaceRequest) GetPath() string
- func (*ConfigureIfaceRequest) ProtoMessage()
- func (m *ConfigureIfaceRequest) Reset()
- func (m *ConfigureIfaceRequest) String() string
- type ConnectBridgeRequest
- func (*ConnectBridgeRequest) Descriptor() ([]byte, []int)
- func (m *ConnectBridgeRequest) GetBridgeName() string
- func (m *ConnectBridgeRequest) GetContainerVethName() string
- func (m *ConnectBridgeRequest) GetPath() string
- func (m *ConnectBridgeRequest) GetPodUUID() string
- func (*ConnectBridgeRequest) ProtoMessage()
- func (m *ConnectBridgeRequest) Reset()
- func (m *ConnectBridgeRequest) String() string
- type CreateBridgeRequest
- type DeleteBridgeRequest
- type DeleteFlowRequest
- type DeletePortRequest
- type DumpFlowsRequest
- type DumpFlowsResponse
- type DumpPortRequest
- type DumpPortResponse
- type DumpPortsRequest
- type DumpPortsResponse
- type EchoRequest
- type EchoResponse
- type FindNetworkNamespacePathRequest
- func (*FindNetworkNamespacePathRequest) Descriptor() ([]byte, []int)
- func (m *FindNetworkNamespacePathRequest) GetNamespace() string
- func (m *FindNetworkNamespacePathRequest) GetPodName() string
- func (m *FindNetworkNamespacePathRequest) GetPodUUID() string
- func (*FindNetworkNamespacePathRequest) ProtoMessage()
- func (m *FindNetworkNamespacePathRequest) Reset()
- func (m *FindNetworkNamespacePathRequest) String() string
- type FindNetworkNamespacePathResponse
- func (*FindNetworkNamespacePathResponse) Descriptor() ([]byte, []int)
- func (m *FindNetworkNamespacePathResponse) GetPath() string
- func (m *FindNetworkNamespacePathResponse) GetServerResponse() *Response
- func (*FindNetworkNamespacePathResponse) ProtoMessage()
- func (m *FindNetworkNamespacePathResponse) Reset()
- func (m *FindNetworkNamespacePathResponse) String() string
- type GetPortRequest
- type GetPortResponse
- type NetworkControlClient
- type NetworkControlServer
- type PingRequest
- type PingResponse
- type PortOptions
- type Response
- type SetPortRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterNetworkControlServer ¶
func RegisterNetworkControlServer(s *grpc.Server, srv NetworkControlServer)
Types ¶
type AddFlowRequest ¶
type AddFlowRequest struct {
BridgeName string `protobuf:"bytes,1,opt,name=bridgeName" json:"bridgeName,omitempty"`
FlowString string `protobuf:"bytes,2,opt,name=flowString" json:"flowString,omitempty"`
}
func (*AddFlowRequest) Descriptor ¶
func (*AddFlowRequest) Descriptor() ([]byte, []int)
func (*AddFlowRequest) GetBridgeName ¶
func (m *AddFlowRequest) GetBridgeName() string
func (*AddFlowRequest) GetFlowString ¶
func (m *AddFlowRequest) GetFlowString() string
func (*AddFlowRequest) ProtoMessage ¶
func (*AddFlowRequest) ProtoMessage()
func (*AddFlowRequest) Reset ¶
func (m *AddFlowRequest) Reset()
func (*AddFlowRequest) String ¶
func (m *AddFlowRequest) String() string
type AddPortRequest ¶
type AddPortRequest struct {
BridgeName string `protobuf:"bytes,1,opt,name=bridgeName" json:"bridgeName,omitempty"`
IfaceName string `protobuf:"bytes,2,opt,name=ifaceName" json:"ifaceName,omitempty"`
// option message: only for dpdk usage
DpdkDevargs string `protobuf:"bytes,3,opt,name=dpdkDevargs" json:"dpdkDevargs,omitempty"`
}
func (*AddPortRequest) Descriptor ¶
func (*AddPortRequest) Descriptor() ([]byte, []int)
func (*AddPortRequest) GetBridgeName ¶
func (m *AddPortRequest) GetBridgeName() string
func (*AddPortRequest) GetDpdkDevargs ¶
func (m *AddPortRequest) GetDpdkDevargs() string
func (*AddPortRequest) GetIfaceName ¶
func (m *AddPortRequest) GetIfaceName() string
func (*AddPortRequest) ProtoMessage ¶
func (*AddPortRequest) ProtoMessage()
func (*AddPortRequest) Reset ¶
func (m *AddPortRequest) Reset()
func (*AddPortRequest) String ¶
func (m *AddPortRequest) String() string
type AddRouteRequest ¶
type AddRouteRequest struct {
Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
DstCIDR string `protobuf:"bytes,2,opt,name=dstCIDR" json:"dstCIDR,omitempty"`
GwIP string `protobuf:"bytes,3,opt,name=gwIP" json:"gwIP,omitempty"`
ContainerVethName string `protobuf:"bytes,4,opt,name=containerVethName" json:"containerVethName,omitempty"`
}
func (*AddRouteRequest) Descriptor ¶
func (*AddRouteRequest) Descriptor() ([]byte, []int)
func (*AddRouteRequest) GetContainerVethName ¶
func (m *AddRouteRequest) GetContainerVethName() string
func (*AddRouteRequest) GetDstCIDR ¶
func (m *AddRouteRequest) GetDstCIDR() string
func (*AddRouteRequest) GetGwIP ¶
func (m *AddRouteRequest) GetGwIP() string
func (*AddRouteRequest) GetPath ¶
func (m *AddRouteRequest) GetPath() string
func (*AddRouteRequest) ProtoMessage ¶
func (*AddRouteRequest) ProtoMessage()
func (*AddRouteRequest) Reset ¶
func (m *AddRouteRequest) Reset()
func (*AddRouteRequest) String ¶
func (m *AddRouteRequest) String() string
type ConfigureIfaceRequest ¶
type ConfigureIfaceRequest struct {
Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
CIDR string `protobuf:"bytes,2,opt,name=CIDR" json:"CIDR,omitempty"`
ContainerVethName string `protobuf:"bytes,3,opt,name=containerVethName" json:"containerVethName,omitempty"`
}
func (*ConfigureIfaceRequest) Descriptor ¶
func (*ConfigureIfaceRequest) Descriptor() ([]byte, []int)
func (*ConfigureIfaceRequest) GetCIDR ¶
func (m *ConfigureIfaceRequest) GetCIDR() string
func (*ConfigureIfaceRequest) GetContainerVethName ¶
func (m *ConfigureIfaceRequest) GetContainerVethName() string
func (*ConfigureIfaceRequest) GetPath ¶
func (m *ConfigureIfaceRequest) GetPath() string
func (*ConfigureIfaceRequest) ProtoMessage ¶
func (*ConfigureIfaceRequest) ProtoMessage()
func (*ConfigureIfaceRequest) Reset ¶
func (m *ConfigureIfaceRequest) Reset()
func (*ConfigureIfaceRequest) String ¶
func (m *ConfigureIfaceRequest) String() string
type ConnectBridgeRequest ¶
type ConnectBridgeRequest struct {
Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
PodUUID string `protobuf:"bytes,2,opt,name=podUUID" json:"podUUID,omitempty"`
ContainerVethName string `protobuf:"bytes,3,opt,name=containerVethName" json:"containerVethName,omitempty"`
BridgeName string `protobuf:"bytes,4,opt,name=bridgeName" json:"bridgeName,omitempty"`
}
func (*ConnectBridgeRequest) Descriptor ¶
func (*ConnectBridgeRequest) Descriptor() ([]byte, []int)
func (*ConnectBridgeRequest) GetBridgeName ¶
func (m *ConnectBridgeRequest) GetBridgeName() string
func (*ConnectBridgeRequest) GetContainerVethName ¶
func (m *ConnectBridgeRequest) GetContainerVethName() string
func (*ConnectBridgeRequest) GetPath ¶
func (m *ConnectBridgeRequest) GetPath() string
func (*ConnectBridgeRequest) GetPodUUID ¶
func (m *ConnectBridgeRequest) GetPodUUID() string
func (*ConnectBridgeRequest) ProtoMessage ¶
func (*ConnectBridgeRequest) ProtoMessage()
func (*ConnectBridgeRequest) Reset ¶
func (m *ConnectBridgeRequest) Reset()
func (*ConnectBridgeRequest) String ¶
func (m *ConnectBridgeRequest) String() string
type CreateBridgeRequest ¶
type CreateBridgeRequest struct {
BridgeName string `protobuf:"bytes,1,opt,name=bridgeName" json:"bridgeName,omitempty"`
DatapathType string `protobuf:"bytes,2,opt,name=datapathType" json:"datapathType,omitempty"`
}
func (*CreateBridgeRequest) Descriptor ¶
func (*CreateBridgeRequest) Descriptor() ([]byte, []int)
func (*CreateBridgeRequest) GetBridgeName ¶
func (m *CreateBridgeRequest) GetBridgeName() string
func (*CreateBridgeRequest) GetDatapathType ¶
func (m *CreateBridgeRequest) GetDatapathType() string
func (*CreateBridgeRequest) ProtoMessage ¶
func (*CreateBridgeRequest) ProtoMessage()
func (*CreateBridgeRequest) Reset ¶
func (m *CreateBridgeRequest) Reset()
func (*CreateBridgeRequest) String ¶
func (m *CreateBridgeRequest) String() string
type DeleteBridgeRequest ¶
type DeleteBridgeRequest struct {
BridgeName string `protobuf:"bytes,1,opt,name=bridgeName" json:"bridgeName,omitempty"`
}
func (*DeleteBridgeRequest) Descriptor ¶
func (*DeleteBridgeRequest) Descriptor() ([]byte, []int)
func (*DeleteBridgeRequest) GetBridgeName ¶
func (m *DeleteBridgeRequest) GetBridgeName() string
func (*DeleteBridgeRequest) ProtoMessage ¶
func (*DeleteBridgeRequest) ProtoMessage()
func (*DeleteBridgeRequest) Reset ¶
func (m *DeleteBridgeRequest) Reset()
func (*DeleteBridgeRequest) String ¶
func (m *DeleteBridgeRequest) String() string
type DeleteFlowRequest ¶
type DeleteFlowRequest struct {
BridgeName string `protobuf:"bytes,1,opt,name=bridgeName" json:"bridgeName,omitempty"`
FlowString string `protobuf:"bytes,2,opt,name=flowString" json:"flowString,omitempty"`
}
func (*DeleteFlowRequest) Descriptor ¶
func (*DeleteFlowRequest) Descriptor() ([]byte, []int)
func (*DeleteFlowRequest) GetBridgeName ¶
func (m *DeleteFlowRequest) GetBridgeName() string
func (*DeleteFlowRequest) GetFlowString ¶
func (m *DeleteFlowRequest) GetFlowString() string
func (*DeleteFlowRequest) ProtoMessage ¶
func (*DeleteFlowRequest) ProtoMessage()
func (*DeleteFlowRequest) Reset ¶
func (m *DeleteFlowRequest) Reset()
func (*DeleteFlowRequest) String ¶
func (m *DeleteFlowRequest) String() string
type DeletePortRequest ¶
type DeletePortRequest struct {
BridgeName string `protobuf:"bytes,1,opt,name=bridgeName" json:"bridgeName,omitempty"`
IfaceName string `protobuf:"bytes,2,opt,name=ifaceName" json:"ifaceName,omitempty"`
}
func (*DeletePortRequest) Descriptor ¶
func (*DeletePortRequest) Descriptor() ([]byte, []int)
func (*DeletePortRequest) GetBridgeName ¶
func (m *DeletePortRequest) GetBridgeName() string
func (*DeletePortRequest) GetIfaceName ¶
func (m *DeletePortRequest) GetIfaceName() string
func (*DeletePortRequest) ProtoMessage ¶
func (*DeletePortRequest) ProtoMessage()
func (*DeletePortRequest) Reset ¶
func (m *DeletePortRequest) Reset()
func (*DeletePortRequest) String ¶
func (m *DeletePortRequest) String() string
type DumpFlowsRequest ¶
type DumpFlowsRequest struct {
BridgeName string `protobuf:"bytes,1,opt,name=bridgeName" json:"bridgeName,omitempty"`
}
func (*DumpFlowsRequest) Descriptor ¶
func (*DumpFlowsRequest) Descriptor() ([]byte, []int)
func (*DumpFlowsRequest) GetBridgeName ¶
func (m *DumpFlowsRequest) GetBridgeName() string
func (*DumpFlowsRequest) ProtoMessage ¶
func (*DumpFlowsRequest) ProtoMessage()
func (*DumpFlowsRequest) Reset ¶
func (m *DumpFlowsRequest) Reset()
func (*DumpFlowsRequest) String ¶
func (m *DumpFlowsRequest) String() string
type DumpFlowsResponse ¶
type DumpFlowsResponse struct {
Flows [][]byte `protobuf:"bytes,1,rep,name=flows,proto3" json:"flows,omitempty"`
ServerResponse *Response `protobuf:"bytes,2,opt,name=serverResponse" json:"serverResponse,omitempty"`
}
func (*DumpFlowsResponse) Descriptor ¶
func (*DumpFlowsResponse) Descriptor() ([]byte, []int)
func (*DumpFlowsResponse) GetFlows ¶
func (m *DumpFlowsResponse) GetFlows() [][]byte
func (*DumpFlowsResponse) GetServerResponse ¶
func (m *DumpFlowsResponse) GetServerResponse() *Response
func (*DumpFlowsResponse) ProtoMessage ¶
func (*DumpFlowsResponse) ProtoMessage()
func (*DumpFlowsResponse) Reset ¶
func (m *DumpFlowsResponse) Reset()
func (*DumpFlowsResponse) String ¶
func (m *DumpFlowsResponse) String() string
type DumpPortRequest ¶
type DumpPortRequest struct {
BridgeName string `protobuf:"bytes,1,opt,name=bridgeName" json:"bridgeName,omitempty"`
PortName string `protobuf:"bytes,2,opt,name=portName" json:"portName,omitempty"`
}
func (*DumpPortRequest) Descriptor ¶
func (*DumpPortRequest) Descriptor() ([]byte, []int)
func (*DumpPortRequest) GetBridgeName ¶
func (m *DumpPortRequest) GetBridgeName() string
func (*DumpPortRequest) GetPortName ¶
func (m *DumpPortRequest) GetPortName() string
func (*DumpPortRequest) ProtoMessage ¶
func (*DumpPortRequest) ProtoMessage()
func (*DumpPortRequest) Reset ¶
func (m *DumpPortRequest) Reset()
func (*DumpPortRequest) String ¶
func (m *DumpPortRequest) String() string
type DumpPortResponse ¶
type DumpPortResponse struct {
Port []byte `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"`
ServerResponse *Response `protobuf:"bytes,2,opt,name=serverResponse" json:"serverResponse,omitempty"`
}
func (*DumpPortResponse) Descriptor ¶
func (*DumpPortResponse) Descriptor() ([]byte, []int)
func (*DumpPortResponse) GetPort ¶
func (m *DumpPortResponse) GetPort() []byte
func (*DumpPortResponse) GetServerResponse ¶
func (m *DumpPortResponse) GetServerResponse() *Response
func (*DumpPortResponse) ProtoMessage ¶
func (*DumpPortResponse) ProtoMessage()
func (*DumpPortResponse) Reset ¶
func (m *DumpPortResponse) Reset()
func (*DumpPortResponse) String ¶
func (m *DumpPortResponse) String() string
type DumpPortsRequest ¶
type DumpPortsRequest struct {
BridgeName string `protobuf:"bytes,1,opt,name=bridgeName" json:"bridgeName,omitempty"`
}
func (*DumpPortsRequest) Descriptor ¶
func (*DumpPortsRequest) Descriptor() ([]byte, []int)
func (*DumpPortsRequest) GetBridgeName ¶
func (m *DumpPortsRequest) GetBridgeName() string
func (*DumpPortsRequest) ProtoMessage ¶
func (*DumpPortsRequest) ProtoMessage()
func (*DumpPortsRequest) Reset ¶
func (m *DumpPortsRequest) Reset()
func (*DumpPortsRequest) String ¶
func (m *DumpPortsRequest) String() string
type DumpPortsResponse ¶
type DumpPortsResponse struct {
Ports [][]byte `protobuf:"bytes,1,rep,name=ports,proto3" json:"ports,omitempty"`
ServerResponse *Response `protobuf:"bytes,2,opt,name=serverResponse" json:"serverResponse,omitempty"`
}
func (*DumpPortsResponse) Descriptor ¶
func (*DumpPortsResponse) Descriptor() ([]byte, []int)
func (*DumpPortsResponse) GetPorts ¶
func (m *DumpPortsResponse) GetPorts() [][]byte
func (*DumpPortsResponse) GetServerResponse ¶
func (m *DumpPortsResponse) GetServerResponse() *Response
func (*DumpPortsResponse) ProtoMessage ¶
func (*DumpPortsResponse) ProtoMessage()
func (*DumpPortsResponse) Reset ¶
func (m *DumpPortsResponse) Reset()
func (*DumpPortsResponse) String ¶
func (m *DumpPortsResponse) String() string
type EchoRequest ¶
type EchoRequest struct {
Word string `protobuf:"bytes,1,opt,name=word" json:"word,omitempty"`
}
func (*EchoRequest) Descriptor ¶
func (*EchoRequest) Descriptor() ([]byte, []int)
func (*EchoRequest) GetWord ¶
func (m *EchoRequest) GetWord() string
func (*EchoRequest) ProtoMessage ¶
func (*EchoRequest) ProtoMessage()
func (*EchoRequest) Reset ¶
func (m *EchoRequest) Reset()
func (*EchoRequest) String ¶
func (m *EchoRequest) String() string
type EchoResponse ¶
type EchoResponse struct {
Word string `protobuf:"bytes,1,opt,name=word" json:"word,omitempty"`
}
func (*EchoResponse) Descriptor ¶
func (*EchoResponse) Descriptor() ([]byte, []int)
func (*EchoResponse) GetWord ¶
func (m *EchoResponse) GetWord() string
func (*EchoResponse) ProtoMessage ¶
func (*EchoResponse) ProtoMessage()
func (*EchoResponse) Reset ¶
func (m *EchoResponse) Reset()
func (*EchoResponse) String ¶
func (m *EchoResponse) String() string
type FindNetworkNamespacePathRequest ¶
type FindNetworkNamespacePathRequest struct {
PodName string `protobuf:"bytes,1,opt,name=podName" json:"podName,omitempty"`
Namespace string `protobuf:"bytes,2,opt,name=namespace" json:"namespace,omitempty"`
PodUUID string `protobuf:"bytes,3,opt,name=podUUID" json:"podUUID,omitempty"`
}
func (*FindNetworkNamespacePathRequest) Descriptor ¶
func (*FindNetworkNamespacePathRequest) Descriptor() ([]byte, []int)
func (*FindNetworkNamespacePathRequest) GetNamespace ¶
func (m *FindNetworkNamespacePathRequest) GetNamespace() string
func (*FindNetworkNamespacePathRequest) GetPodName ¶
func (m *FindNetworkNamespacePathRequest) GetPodName() string
func (*FindNetworkNamespacePathRequest) GetPodUUID ¶
func (m *FindNetworkNamespacePathRequest) GetPodUUID() string
func (*FindNetworkNamespacePathRequest) ProtoMessage ¶
func (*FindNetworkNamespacePathRequest) ProtoMessage()
func (*FindNetworkNamespacePathRequest) Reset ¶
func (m *FindNetworkNamespacePathRequest) Reset()
func (*FindNetworkNamespacePathRequest) String ¶
func (m *FindNetworkNamespacePathRequest) String() string
type FindNetworkNamespacePathResponse ¶
type FindNetworkNamespacePathResponse struct {
Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
ServerResponse *Response `protobuf:"bytes,2,opt,name=serverResponse" json:"serverResponse,omitempty"`
}
func (*FindNetworkNamespacePathResponse) Descriptor ¶
func (*FindNetworkNamespacePathResponse) Descriptor() ([]byte, []int)
func (*FindNetworkNamespacePathResponse) GetPath ¶
func (m *FindNetworkNamespacePathResponse) GetPath() string
func (*FindNetworkNamespacePathResponse) GetServerResponse ¶
func (m *FindNetworkNamespacePathResponse) GetServerResponse() *Response
func (*FindNetworkNamespacePathResponse) ProtoMessage ¶
func (*FindNetworkNamespacePathResponse) ProtoMessage()
func (*FindNetworkNamespacePathResponse) Reset ¶
func (m *FindNetworkNamespacePathResponse) Reset()
func (*FindNetworkNamespacePathResponse) String ¶
func (m *FindNetworkNamespacePathResponse) String() string
type GetPortRequest ¶
type GetPortRequest struct {
IfaceName string `protobuf:"bytes,1,opt,name=ifaceName" json:"ifaceName,omitempty"`
PortOptions *PortOptions `protobuf:"bytes,2,opt,name=portOptions" json:"portOptions,omitempty"`
}
func (*GetPortRequest) Descriptor ¶
func (*GetPortRequest) Descriptor() ([]byte, []int)
func (*GetPortRequest) GetIfaceName ¶
func (m *GetPortRequest) GetIfaceName() string
func (*GetPortRequest) GetPortOptions ¶
func (m *GetPortRequest) GetPortOptions() *PortOptions
func (*GetPortRequest) ProtoMessage ¶
func (*GetPortRequest) ProtoMessage()
func (*GetPortRequest) Reset ¶
func (m *GetPortRequest) Reset()
func (*GetPortRequest) String ¶
func (m *GetPortRequest) String() string
type GetPortResponse ¶
type GetPortResponse struct {
PortOptions *PortOptions `protobuf:"bytes,1,opt,name=portOptions" json:"portOptions,omitempty"`
ServerResponse *Response `protobuf:"bytes,2,opt,name=serverResponse" json:"serverResponse,omitempty"`
}
func (*GetPortResponse) Descriptor ¶
func (*GetPortResponse) Descriptor() ([]byte, []int)
func (*GetPortResponse) GetPortOptions ¶
func (m *GetPortResponse) GetPortOptions() *PortOptions
func (*GetPortResponse) GetServerResponse ¶
func (m *GetPortResponse) GetServerResponse() *Response
func (*GetPortResponse) ProtoMessage ¶
func (*GetPortResponse) ProtoMessage()
func (*GetPortResponse) Reset ¶
func (m *GetPortResponse) Reset()
func (*GetPortResponse) String ¶
func (m *GetPortResponse) String() string
type NetworkControlClient ¶
type NetworkControlClient interface {
Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error)
Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
// OpenvSwitch RPC series
CreateBridge(ctx context.Context, in *CreateBridgeRequest, opts ...grpc.CallOption) (*Response, error)
DeleteBridge(ctx context.Context, in *DeleteBridgeRequest, opts ...grpc.CallOption) (*Response, error)
AddPort(ctx context.Context, in *AddPortRequest, opts ...grpc.CallOption) (*Response, error)
AddDPDKPort(ctx context.Context, in *AddPortRequest, opts ...grpc.CallOption) (*Response, error)
GetPort(ctx context.Context, in *GetPortRequest, opts ...grpc.CallOption) (*GetPortResponse, error)
SetPort(ctx context.Context, in *SetPortRequest, opts ...grpc.CallOption) (*Response, error)
DeletePort(ctx context.Context, in *DeletePortRequest, opts ...grpc.CallOption) (*Response, error)
AddFlow(ctx context.Context, in *AddFlowRequest, opts ...grpc.CallOption) (*Response, error)
DeleteFlow(ctx context.Context, in *DeleteFlowRequest, opts ...grpc.CallOption) (*Response, error)
DumpFlows(ctx context.Context, in *DumpFlowsRequest, opts ...grpc.CallOption) (*DumpFlowsResponse, error)
DumpPorts(ctx context.Context, in *DumpPortsRequest, opts ...grpc.CallOption) (*DumpPortsResponse, error)
DumpPort(ctx context.Context, in *DumpPortRequest, opts ...grpc.CallOption) (*DumpPortResponse, error)
// Docker RPC series
FindNetworkNamespacePath(ctx context.Context, in *FindNetworkNamespacePathRequest, opts ...grpc.CallOption) (*FindNetworkNamespacePathResponse, error)
// Netlink RPC series
ConnectBridge(ctx context.Context, in *ConnectBridgeRequest, opts ...grpc.CallOption) (*Response, error)
ConfigureIface(ctx context.Context, in *ConfigureIfaceRequest, opts ...grpc.CallOption) (*Response, error)
AddRoute(ctx context.Context, in *AddRouteRequest, opts ...grpc.CallOption) (*Response, error)
}
func NewNetworkControlClient ¶
func NewNetworkControlClient(cc *grpc.ClientConn) NetworkControlClient
type NetworkControlServer ¶
type NetworkControlServer interface {
Echo(context.Context, *EchoRequest) (*EchoResponse, error)
Ping(context.Context, *PingRequest) (*PingResponse, error)
// OpenvSwitch RPC series
CreateBridge(context.Context, *CreateBridgeRequest) (*Response, error)
DeleteBridge(context.Context, *DeleteBridgeRequest) (*Response, error)
AddPort(context.Context, *AddPortRequest) (*Response, error)
AddDPDKPort(context.Context, *AddPortRequest) (*Response, error)
GetPort(context.Context, *GetPortRequest) (*GetPortResponse, error)
SetPort(context.Context, *SetPortRequest) (*Response, error)
DeletePort(context.Context, *DeletePortRequest) (*Response, error)
AddFlow(context.Context, *AddFlowRequest) (*Response, error)
DeleteFlow(context.Context, *DeleteFlowRequest) (*Response, error)
DumpFlows(context.Context, *DumpFlowsRequest) (*DumpFlowsResponse, error)
DumpPorts(context.Context, *DumpPortsRequest) (*DumpPortsResponse, error)
DumpPort(context.Context, *DumpPortRequest) (*DumpPortResponse, error)
// Docker RPC series
FindNetworkNamespacePath(context.Context, *FindNetworkNamespacePathRequest) (*FindNetworkNamespacePathResponse, error)
// Netlink RPC series
ConnectBridge(context.Context, *ConnectBridgeRequest) (*Response, error)
ConfigureIface(context.Context, *ConfigureIfaceRequest) (*Response, error)
AddRoute(context.Context, *AddRouteRequest) (*Response, error)
}
type PingRequest ¶
type PingRequest struct {
Ping string `protobuf:"bytes,1,opt,name=ping" json:"ping,omitempty"`
}
func (*PingRequest) Descriptor ¶
func (*PingRequest) Descriptor() ([]byte, []int)
func (*PingRequest) GetPing ¶
func (m *PingRequest) GetPing() string
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) Reset ¶
func (m *PingRequest) Reset()
func (*PingRequest) String ¶
func (m *PingRequest) String() string
type PingResponse ¶
type PingResponse struct {
Pong string `protobuf:"bytes,1,opt,name=pong" json:"pong,omitempty"`
}
func (*PingResponse) Descriptor ¶
func (*PingResponse) Descriptor() ([]byte, []int)
func (*PingResponse) GetPong ¶
func (m *PingResponse) GetPong() string
func (*PingResponse) ProtoMessage ¶
func (*PingResponse) ProtoMessage()
func (*PingResponse) Reset ¶
func (m *PingResponse) Reset()
func (*PingResponse) String ¶
func (m *PingResponse) String() string
type PortOptions ¶
type PortOptions struct {
Tag int32 `protobuf:"varint,1,opt,name=tag" json:"tag,omitempty"`
VLANMode string `protobuf:"bytes,2,opt,name=VLANMode" json:"VLANMode,omitempty"`
Trunk []int32 `protobuf:"varint,3,rep,packed,name=trunk" json:"trunk,omitempty"`
}
func (*PortOptions) Descriptor ¶
func (*PortOptions) Descriptor() ([]byte, []int)
func (*PortOptions) GetTag ¶
func (m *PortOptions) GetTag() int32
func (*PortOptions) GetTrunk ¶
func (m *PortOptions) GetTrunk() []int32
func (*PortOptions) GetVLANMode ¶
func (m *PortOptions) GetVLANMode() string
func (*PortOptions) ProtoMessage ¶
func (*PortOptions) ProtoMessage()
func (*PortOptions) Reset ¶
func (m *PortOptions) Reset()
func (*PortOptions) String ¶
func (m *PortOptions) String() string
type Response ¶
type Response struct {
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
Reason string `protobuf:"bytes,2,opt,name=reason" json:"reason,omitempty"`
}
func (*Response) Descriptor ¶
func (*Response) GetSuccess ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
type SetPortRequest ¶
type SetPortRequest struct {
IfaceName string `protobuf:"bytes,1,opt,name=ifaceName" json:"ifaceName,omitempty"`
Options *PortOptions `protobuf:"bytes,2,opt,name=options" json:"options,omitempty"`
}
func (*SetPortRequest) Descriptor ¶
func (*SetPortRequest) Descriptor() ([]byte, []int)
func (*SetPortRequest) GetIfaceName ¶
func (m *SetPortRequest) GetIfaceName() string
func (*SetPortRequest) GetOptions ¶
func (m *SetPortRequest) GetOptions() *PortOptions
func (*SetPortRequest) ProtoMessage ¶
func (*SetPortRequest) ProtoMessage()
func (*SetPortRequest) Reset ¶
func (m *SetPortRequest) Reset()
func (*SetPortRequest) String ¶
func (m *SetPortRequest) String() string
Click to show internal directories.
Click to hide internal directories.