Documentation ¶
Index ¶
- Variables
- func RegisterControllerServiceServer(s *grpc.Server, srv ControllerServiceServer)
- type BroadcastEndpointResponse
- func (*BroadcastEndpointResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BroadcastEndpointResponse) GetIP() []string
- func (*BroadcastEndpointResponse) ProtoMessage()
- func (x *BroadcastEndpointResponse) ProtoReflect() protoreflect.Message
- func (x *BroadcastEndpointResponse) Reset()
- func (x *BroadcastEndpointResponse) String() string
- type ControllerServiceClient
- type ControllerServiceServer
- type LookupRequest
- func (*LookupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LookupRequest) GetIP() string
- func (x *LookupRequest) GetLookupType() LookupType
- func (x *LookupRequest) GetMAC() string
- func (x *LookupRequest) GetVLAN() uint32
- func (x *LookupRequest) GetVNID() uint32
- func (*LookupRequest) ProtoMessage()
- func (x *LookupRequest) ProtoReflect() protoreflect.Message
- func (x *LookupRequest) Reset()
- func (x *LookupRequest) String() string
- type LookupResponse
- func (*LookupResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LookupResponse) GetIP() string
- func (x *LookupResponse) GetMAC() string
- func (*LookupResponse) ProtoMessage()
- func (x *LookupResponse) ProtoReflect() protoreflect.Message
- func (x *LookupResponse) Reset()
- func (x *LookupResponse) String() string
- type LookupType
- type MACIPRequest
- func (*MACIPRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MACIPRequest) GetIP() string
- func (x *MACIPRequest) GetMAC() string
- func (x *MACIPRequest) GetVLAN() uint32
- func (x *MACIPRequest) GetVNID() uint32
- func (*MACIPRequest) ProtoMessage()
- func (x *MACIPRequest) ProtoReflect() protoreflect.Message
- func (x *MACIPRequest) Reset()
- func (x *MACIPRequest) String() string
- type MACIPResp
- type RegResponse
- type UnimplementedControllerServiceServer
- func (*UnimplementedControllerServiceServer) BroadcastEndpoints(context.Context, *VNIDRequest) (*BroadcastEndpointResponse, error)
- func (*UnimplementedControllerServiceServer) DeregisterEP(context.Context, *VNIDRequest) (*RegResponse, error)
- func (*UnimplementedControllerServiceServer) DeregisterMacIP(context.Context, *MACIPRequest) (*MACIPResp, error)
- func (*UnimplementedControllerServiceServer) LookupIP(context.Context, *LookupRequest) (*LookupResponse, error)
- func (*UnimplementedControllerServiceServer) LookupMac(context.Context, *LookupRequest) (*LookupResponse, error)
- func (*UnimplementedControllerServiceServer) RegisterEP(context.Context, *VNIDRequest) (*RegResponse, error)
- func (*UnimplementedControllerServiceServer) RegisterMacIP(context.Context, *MACIPRequest) (*MACIPResp, error)
- type VNIDRequest
Constants ¶
This section is empty.
Variables ¶
var ( LookupType_name = map[int32]string{ 0: "MAC", 1: "IP", } LookupType_value = map[string]int32{ "MAC": 0, "IP": 1, } )
Enum value maps for LookupType.
var File_l2Controller_proto protoreflect.FileDescriptor
Functions ¶
func RegisterControllerServiceServer ¶
func RegisterControllerServiceServer(s *grpc.Server, srv ControllerServiceServer)
Types ¶
type BroadcastEndpointResponse ¶
type BroadcastEndpointResponse struct { IP []string `protobuf:"bytes,1,rep,name=IP,proto3" json:"IP,omitempty"` // contains filtered or unexported fields }
func (*BroadcastEndpointResponse) Descriptor
deprecated
func (*BroadcastEndpointResponse) Descriptor() ([]byte, []int)
Deprecated: Use BroadcastEndpointResponse.ProtoReflect.Descriptor instead.
func (*BroadcastEndpointResponse) GetIP ¶
func (x *BroadcastEndpointResponse) GetIP() []string
func (*BroadcastEndpointResponse) ProtoMessage ¶
func (*BroadcastEndpointResponse) ProtoMessage()
func (*BroadcastEndpointResponse) ProtoReflect ¶
func (x *BroadcastEndpointResponse) ProtoReflect() protoreflect.Message
func (*BroadcastEndpointResponse) Reset ¶
func (x *BroadcastEndpointResponse) Reset()
func (*BroadcastEndpointResponse) String ¶
func (x *BroadcastEndpointResponse) String() string
type ControllerServiceClient ¶
type ControllerServiceClient interface { RegisterMacIP(ctx context.Context, in *MACIPRequest, opts ...grpc.CallOption) (*MACIPResp, error) DeregisterMacIP(ctx context.Context, in *MACIPRequest, opts ...grpc.CallOption) (*MACIPResp, error) LookupIP(ctx context.Context, in *LookupRequest, opts ...grpc.CallOption) (*LookupResponse, error) LookupMac(ctx context.Context, in *LookupRequest, opts ...grpc.CallOption) (*LookupResponse, error) BroadcastEndpoints(ctx context.Context, in *VNIDRequest, opts ...grpc.CallOption) (*BroadcastEndpointResponse, error) RegisterEP(ctx context.Context, in *VNIDRequest, opts ...grpc.CallOption) (*RegResponse, error) DeregisterEP(ctx context.Context, in *VNIDRequest, opts ...grpc.CallOption) (*RegResponse, error) }
ControllerServiceClient is the client API for ControllerService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewControllerServiceClient ¶
func NewControllerServiceClient(cc grpc.ClientConnInterface) ControllerServiceClient
type ControllerServiceServer ¶
type ControllerServiceServer interface { RegisterMacIP(context.Context, *MACIPRequest) (*MACIPResp, error) DeregisterMacIP(context.Context, *MACIPRequest) (*MACIPResp, error) LookupIP(context.Context, *LookupRequest) (*LookupResponse, error) LookupMac(context.Context, *LookupRequest) (*LookupResponse, error) BroadcastEndpoints(context.Context, *VNIDRequest) (*BroadcastEndpointResponse, error) RegisterEP(context.Context, *VNIDRequest) (*RegResponse, error) DeregisterEP(context.Context, *VNIDRequest) (*RegResponse, error) // contains filtered or unexported methods }
ControllerServiceServer is the server API for ControllerService service. All implementations must embed UnimplementedControllerServiceServer for forward compatibility
type LookupRequest ¶
type LookupRequest struct { LookupType LookupType `protobuf:"varint,1,opt,name=LookupType,proto3,enum=vpc.l2Controller.LookupType" json:"LookupType,omitempty"` VNID uint32 `protobuf:"varint,2,opt,name=VNID,proto3" json:"VNID,omitempty"` VLAN uint32 `protobuf:"varint,3,opt,name=VLAN,proto3" json:"VLAN,omitempty"` MAC string `protobuf:"bytes,4,opt,name=MAC,proto3" json:"MAC,omitempty"` IP string `protobuf:"bytes,5,opt,name=IP,proto3" json:"IP,omitempty"` // contains filtered or unexported fields }
func (*LookupRequest) Descriptor
deprecated
func (*LookupRequest) Descriptor() ([]byte, []int)
Deprecated: Use LookupRequest.ProtoReflect.Descriptor instead.
func (*LookupRequest) GetIP ¶
func (x *LookupRequest) GetIP() string
func (*LookupRequest) GetLookupType ¶
func (x *LookupRequest) GetLookupType() LookupType
func (*LookupRequest) GetMAC ¶
func (x *LookupRequest) GetMAC() string
func (*LookupRequest) GetVLAN ¶
func (x *LookupRequest) GetVLAN() uint32
func (*LookupRequest) GetVNID ¶
func (x *LookupRequest) GetVNID() uint32
func (*LookupRequest) ProtoMessage ¶
func (*LookupRequest) ProtoMessage()
func (*LookupRequest) ProtoReflect ¶
func (x *LookupRequest) ProtoReflect() protoreflect.Message
func (*LookupRequest) Reset ¶
func (x *LookupRequest) Reset()
func (*LookupRequest) String ¶
func (x *LookupRequest) String() string
type LookupResponse ¶
type LookupResponse struct { MAC string `protobuf:"bytes,1,opt,name=MAC,proto3" json:"MAC,omitempty"` IP string `protobuf:"bytes,2,opt,name=IP,proto3" json:"IP,omitempty"` // contains filtered or unexported fields }
func (*LookupResponse) Descriptor
deprecated
func (*LookupResponse) Descriptor() ([]byte, []int)
Deprecated: Use LookupResponse.ProtoReflect.Descriptor instead.
func (*LookupResponse) GetIP ¶
func (x *LookupResponse) GetIP() string
func (*LookupResponse) GetMAC ¶
func (x *LookupResponse) GetMAC() string
func (*LookupResponse) ProtoMessage ¶
func (*LookupResponse) ProtoMessage()
func (*LookupResponse) ProtoReflect ¶
func (x *LookupResponse) ProtoReflect() protoreflect.Message
func (*LookupResponse) Reset ¶
func (x *LookupResponse) Reset()
func (*LookupResponse) String ¶
func (x *LookupResponse) String() string
type LookupType ¶
type LookupType int32
const ( LookupType_MAC LookupType = 0 LookupType_IP LookupType = 1 )
func (LookupType) Descriptor ¶
func (LookupType) Descriptor() protoreflect.EnumDescriptor
func (LookupType) Enum ¶
func (x LookupType) Enum() *LookupType
func (LookupType) EnumDescriptor
deprecated
func (LookupType) EnumDescriptor() ([]byte, []int)
Deprecated: Use LookupType.Descriptor instead.
func (LookupType) Number ¶
func (x LookupType) Number() protoreflect.EnumNumber
func (LookupType) String ¶
func (x LookupType) String() string
func (LookupType) Type ¶
func (LookupType) Type() protoreflect.EnumType
type MACIPRequest ¶
type MACIPRequest struct { VNID uint32 `protobuf:"varint,1,opt,name=VNID,proto3" json:"VNID,omitempty"` VLAN uint32 `protobuf:"varint,2,opt,name=VLAN,proto3" json:"VLAN,omitempty"` MAC string `protobuf:"bytes,3,opt,name=MAC,proto3" json:"MAC,omitempty"` IP string `protobuf:"bytes,4,opt,name=IP,proto3" json:"IP,omitempty"` // contains filtered or unexported fields }
func (*MACIPRequest) Descriptor
deprecated
func (*MACIPRequest) Descriptor() ([]byte, []int)
Deprecated: Use MACIPRequest.ProtoReflect.Descriptor instead.
func (*MACIPRequest) GetIP ¶
func (x *MACIPRequest) GetIP() string
func (*MACIPRequest) GetMAC ¶
func (x *MACIPRequest) GetMAC() string
func (*MACIPRequest) GetVLAN ¶
func (x *MACIPRequest) GetVLAN() uint32
func (*MACIPRequest) GetVNID ¶
func (x *MACIPRequest) GetVNID() uint32
func (*MACIPRequest) ProtoMessage ¶
func (*MACIPRequest) ProtoMessage()
func (*MACIPRequest) ProtoReflect ¶
func (x *MACIPRequest) ProtoReflect() protoreflect.Message
func (*MACIPRequest) Reset ¶
func (x *MACIPRequest) Reset()
func (*MACIPRequest) String ¶
func (x *MACIPRequest) String() string
type MACIPResp ¶
type MACIPResp struct {
// contains filtered or unexported fields
}
func (*MACIPResp) Descriptor
deprecated
func (*MACIPResp) ProtoMessage ¶
func (*MACIPResp) ProtoMessage()
func (*MACIPResp) ProtoReflect ¶
func (x *MACIPResp) ProtoReflect() protoreflect.Message
type RegResponse ¶
type RegResponse struct {
// contains filtered or unexported fields
}
func (*RegResponse) Descriptor
deprecated
func (*RegResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegResponse.ProtoReflect.Descriptor instead.
func (*RegResponse) ProtoMessage ¶
func (*RegResponse) ProtoMessage()
func (*RegResponse) ProtoReflect ¶
func (x *RegResponse) ProtoReflect() protoreflect.Message
func (*RegResponse) Reset ¶
func (x *RegResponse) Reset()
func (*RegResponse) String ¶
func (x *RegResponse) String() string
type UnimplementedControllerServiceServer ¶
type UnimplementedControllerServiceServer struct { }
UnimplementedControllerServiceServer must be embedded to have forward compatible implementations.
func (*UnimplementedControllerServiceServer) BroadcastEndpoints ¶
func (*UnimplementedControllerServiceServer) BroadcastEndpoints(context.Context, *VNIDRequest) (*BroadcastEndpointResponse, error)
func (*UnimplementedControllerServiceServer) DeregisterEP ¶
func (*UnimplementedControllerServiceServer) DeregisterEP(context.Context, *VNIDRequest) (*RegResponse, error)
func (*UnimplementedControllerServiceServer) DeregisterMacIP ¶
func (*UnimplementedControllerServiceServer) DeregisterMacIP(context.Context, *MACIPRequest) (*MACIPResp, error)
func (*UnimplementedControllerServiceServer) LookupIP ¶
func (*UnimplementedControllerServiceServer) LookupIP(context.Context, *LookupRequest) (*LookupResponse, error)
func (*UnimplementedControllerServiceServer) LookupMac ¶
func (*UnimplementedControllerServiceServer) LookupMac(context.Context, *LookupRequest) (*LookupResponse, error)
func (*UnimplementedControllerServiceServer) RegisterEP ¶
func (*UnimplementedControllerServiceServer) RegisterEP(context.Context, *VNIDRequest) (*RegResponse, error)
func (*UnimplementedControllerServiceServer) RegisterMacIP ¶
func (*UnimplementedControllerServiceServer) RegisterMacIP(context.Context, *MACIPRequest) (*MACIPResp, error)
type VNIDRequest ¶
type VNIDRequest struct { VNID uint32 `protobuf:"varint,1,opt,name=VNID,proto3" json:"VNID,omitempty"` // contains filtered or unexported fields }
func (*VNIDRequest) Descriptor
deprecated
func (*VNIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use VNIDRequest.ProtoReflect.Descriptor instead.
func (*VNIDRequest) GetVNID ¶
func (x *VNIDRequest) GetVNID() uint32
func (*VNIDRequest) ProtoMessage ¶
func (*VNIDRequest) ProtoMessage()
func (*VNIDRequest) ProtoReflect ¶
func (x *VNIDRequest) ProtoReflect() protoreflect.Message
func (*VNIDRequest) Reset ¶
func (x *VNIDRequest) Reset()
func (*VNIDRequest) String ¶
func (x *VNIDRequest) String() string