Documentation ¶
Index ¶
- Variables
- func RegisterCniServer(s *grpc.Server, srv CniServer)
- func RegisterCollectorServer(s *grpc.Server, srv CollectorServer)
- func RegisterGetterServer(s *grpc.Server, srv GetterServer)
- type ArpResponse
- func (*ArpResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ArpResponse) GetBrName() string
- func (x *ArpResponse) GetInPort() uint32
- func (x *ArpResponse) GetPkt() []byte
- func (*ArpResponse) ProtoMessage()
- func (x *ArpResponse) ProtoReflect() protoreflect.Message
- func (x *ArpResponse) Reset()
- func (x *ArpResponse) String() string
- type Backend
- func (*Backend) Descriptor() ([]byte, []int)deprecated
- func (x *Backend) GetIP() string
- func (x *Backend) GetNode() string
- func (x *Backend) GetPort() int32
- func (x *Backend) GetProtocol() string
- func (*Backend) ProtoMessage()
- func (x *Backend) ProtoReflect() protoreflect.Message
- func (x *Backend) Reset()
- func (x *Backend) String() string
- type ChainBridgeResp
- type CniClient
- type CniRequest
- func (*CniRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CniRequest) GetArgs() string
- func (x *CniRequest) GetContainerId() string
- func (x *CniRequest) GetIfname() string
- func (x *CniRequest) GetNetns() string
- func (x *CniRequest) GetPath() string
- func (x *CniRequest) GetStdin() []byte
- func (*CniRequest) ProtoMessage()
- func (x *CniRequest) ProtoReflect() protoreflect.Message
- func (x *CniRequest) Reset()
- func (x *CniRequest) String() string
- type CniResponse
- func (*CniResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CniResponse) GetError() *Error
- func (x *CniResponse) GetResult() []byte
- func (*CniResponse) ProtoMessage()
- func (x *CniResponse) ProtoReflect() protoreflect.Message
- func (x *CniResponse) Reset()
- func (x *CniResponse) String() string
- type CniServer
- type CollectorClient
- type CollectorServer
- type Collector_ArpStreamClient
- type Collector_ArpStreamServer
- type Error
- type ErrorCode
- type FlowEntry
- type FlowIDs
- type GetterClient
- type GetterServer
- type PolicyItem
- func (*PolicyItem) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyItem) GetName() string
- func (x *PolicyItem) GetNamespace() string
- func (x *PolicyItem) GetPolicyType() string
- func (*PolicyItem) ProtoMessage()
- func (x *PolicyItem) ProtoReflect() protoreflect.Message
- func (x *PolicyItem) Reset()
- func (x *PolicyItem) String() string
- type PolicyList
- func (*PolicyList) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyList) GetAction() string
- func (x *PolicyList) GetDir() uint32
- func (x *PolicyList) GetFlowID() uint64
- func (x *PolicyList) GetItems() []*PolicyItem
- func (x *PolicyList) GetMode() string
- func (x *PolicyList) GetPriority() int64
- func (x *PolicyList) GetTier() uint32
- func (*PolicyList) ProtoMessage()
- func (x *PolicyList) ProtoReflect() protoreflect.Message
- func (x *PolicyList) Reset()
- func (x *PolicyList) String() string
- type PolicyRequest
- type PolicyResponse
- type PolicyRule
- func (*PolicyRule) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyRule) GetAction() string
- func (x *PolicyRule) GetDstIPAddr() string
- func (x *PolicyRule) GetDstPort() uint32
- func (x *PolicyRule) GetDstPortMask() uint32
- func (x *PolicyRule) GetIPProtocol() uint32
- func (x *PolicyRule) GetPriority() int32
- func (x *PolicyRule) GetRuleID() string
- func (x *PolicyRule) GetSrcIPAddr() string
- func (x *PolicyRule) GetSrcPort() uint32
- func (x *PolicyRule) GetSrcPortMask() uint32
- func (*PolicyRule) ProtoMessage()
- func (x *PolicyRule) ProtoReflect() protoreflect.Message
- func (x *PolicyRule) Reset()
- func (x *PolicyRule) String() string
- type PolicyRuleReference
- func (*PolicyRuleReference) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyRuleReference) GetName() string
- func (x *PolicyRuleReference) GetNameSpace() string
- func (x *PolicyRuleReference) GetType() string
- func (*PolicyRuleReference) ProtoMessage()
- func (x *PolicyRuleReference) ProtoReflect() protoreflect.Message
- func (x *PolicyRuleReference) Reset()
- func (x *PolicyRuleReference) String() string
- type RuleEntries
- type RuleEntry
- func (*RuleEntry) Descriptor() ([]byte, []int)deprecated
- func (x *RuleEntry) GetDirection() uint32
- func (x *RuleEntry) GetEveroutePolicyRule() *PolicyRule
- func (x *RuleEntry) GetMode() string
- func (x *RuleEntry) GetPolicyRuleReference() []*PolicyRuleReference
- func (x *RuleEntry) GetRuleFlowMap() map[string]*FlowEntry
- func (x *RuleEntry) GetTier() uint32
- func (*RuleEntry) ProtoMessage()
- func (x *RuleEntry) ProtoReflect() protoreflect.Message
- func (x *RuleEntry) Reset()
- func (x *RuleEntry) String() string
- type RuleIDs
- type SvcCache
- func (*SvcCache) Descriptor() ([]byte, []int)deprecated
- func (x *SvcCache) GetBackends() []*Backend
- func (x *SvcCache) GetSvcID() string
- func (x *SvcCache) GetSvcLBs() []*SvcLB
- func (x *SvcCache) GetSvcPortNames() []string
- func (*SvcCache) ProtoMessage()
- func (x *SvcCache) ProtoReflect() protoreflect.Message
- func (x *SvcCache) Reset()
- func (x *SvcCache) String() string
- type SvcDnatFlowEntry
- func (*SvcDnatFlowEntry) Descriptor() ([]byte, []int)deprecated
- func (x *SvcDnatFlowEntry) GetBackend() *Backend
- func (x *SvcDnatFlowEntry) GetFlowID() uint64
- func (x *SvcDnatFlowEntry) GetInfo() string
- func (*SvcDnatFlowEntry) ProtoMessage()
- func (x *SvcDnatFlowEntry) ProtoReflect() protoreflect.Message
- func (x *SvcDnatFlowEntry) Reset()
- func (x *SvcDnatFlowEntry) String() string
- type SvcFlow
- func (*SvcFlow) Descriptor() ([]byte, []int)deprecated
- func (x *SvcFlow) GetDnatFlows() []*SvcDnatFlowEntry
- func (x *SvcFlow) GetLBFlows() []*SvcFlowEntry
- func (x *SvcFlow) GetSessionAffinityFlows() []*SvcFlowEntry
- func (*SvcFlow) ProtoMessage()
- func (x *SvcFlow) ProtoReflect() protoreflect.Message
- func (x *SvcFlow) Reset()
- func (x *SvcFlow) String() string
- type SvcFlowEntry
- func (*SvcFlowEntry) Descriptor() ([]byte, []int)deprecated
- func (x *SvcFlowEntry) GetFlowID() uint64
- func (x *SvcFlowEntry) GetIP() string
- func (x *SvcFlowEntry) GetInfo() string
- func (x *SvcFlowEntry) GetPortName() string
- func (*SvcFlowEntry) ProtoMessage()
- func (x *SvcFlowEntry) ProtoReflect() protoreflect.Message
- func (x *SvcFlowEntry) Reset()
- func (x *SvcFlowEntry) String() string
- type SvcGroup
- func (*SvcGroup) Descriptor() ([]byte, []int)deprecated
- func (x *SvcGroup) GetGroupID() uint32
- func (x *SvcGroup) GetInfo() string
- func (x *SvcGroup) GetPortName() string
- func (x *SvcGroup) GetTrafficPolicy() string
- func (*SvcGroup) ProtoMessage()
- func (x *SvcGroup) ProtoReflect() protoreflect.Message
- func (x *SvcGroup) Reset()
- func (x *SvcGroup) String() string
- type SvcID
- type SvcInfo
- func (*SvcInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SvcInfo) GetSvcCache() *SvcCache
- func (x *SvcInfo) GetSvcFlow() *SvcFlow
- func (x *SvcInfo) GetSvcGroup() []*SvcGroup
- func (*SvcInfo) ProtoMessage()
- func (x *SvcInfo) ProtoReflect() protoreflect.Message
- func (x *SvcInfo) Reset()
- func (x *SvcInfo) String() string
- type SvcLB
- func (*SvcLB) Descriptor() ([]byte, []int)deprecated
- func (x *SvcLB) GetIP() string
- func (x *SvcLB) GetNodePort() int32
- func (x *SvcLB) GetPort() int32
- func (x *SvcLB) GetPortName() string
- func (x *SvcLB) GetProtocol() string
- func (x *SvcLB) GetSessionAffinity() string
- func (x *SvcLB) GetSessionAffinityTimeout() int32
- func (x *SvcLB) GetTrafficPolicy() string
- func (*SvcLB) ProtoMessage()
- func (x *SvcLB) ProtoReflect() protoreflect.Message
- func (x *SvcLB) Reset()
- func (x *SvcLB) String() string
- type SvcPort
- func (*SvcPort) Descriptor() ([]byte, []int)deprecated
- func (x *SvcPort) GetName() string
- func (x *SvcPort) GetPort() int32
- func (x *SvcPort) GetProtocol() string
- func (*SvcPort) ProtoMessage()
- func (x *SvcPort) ProtoReflect() protoreflect.Message
- func (x *SvcPort) Reset()
- func (x *SvcPort) String() string
- type UnimplementedCniServer
- type UnimplementedCollectorServer
- func (*UnimplementedCollectorServer) ArpStream(*emptypb.Empty, Collector_ArpStreamServer) error
- func (*UnimplementedCollectorServer) GetChainBridge(context.Context, *emptypb.Empty) (*ChainBridgeResp, error)
- func (*UnimplementedCollectorServer) Policy(context.Context, *PolicyRequest) (*PolicyResponse, error)
- type UnimplementedGetterServer
- func (*UnimplementedGetterServer) GetAllRules(context.Context, *emptypb.Empty) (*RuleEntries, error)
- func (*UnimplementedGetterServer) GetRulesByFlow(context.Context, *FlowIDs) (*RuleEntries, error)
- func (*UnimplementedGetterServer) GetRulesByName(context.Context, *RuleIDs) (*RuleEntries, error)
- func (*UnimplementedGetterServer) GetSvcInfoBySvcID(context.Context, *SvcID) (*SvcInfo, error)
Constants ¶
This section is empty.
Variables ¶
var ( ErrorCode_name = map[int32]string{ 0: "UNKNOWN", 1: "INCOMPATIBLE_CNI_VERSION", 2: "UNSUPPORTED_FIELD", 3: "UNKNOWN_CONTAINER", 4: "INVALID_ENVIRONMENT_VARIABLES", 5: "IO_FAILURE", 6: "DECODING_FAILURE", 7: "INVALID_NETWORK_CONFIG", 11: "TRY_AGAIN_LATER", } ErrorCode_value = map[string]int32{ "UNKNOWN": 0, "INCOMPATIBLE_CNI_VERSION": 1, "UNSUPPORTED_FIELD": 2, "UNKNOWN_CONTAINER": 3, "INVALID_ENVIRONMENT_VARIABLES": 4, "IO_FAILURE": 5, "DECODING_FAILURE": 6, "INVALID_NETWORK_CONFIG": 7, "TRY_AGAIN_LATER": 11, } )
Enum value maps for ErrorCode.
var File_pkg_apis_rpc_v1alpha1_cni_proto protoreflect.FileDescriptor
var File_pkg_apis_rpc_v1alpha1_collector_proto protoreflect.FileDescriptor
var File_pkg_apis_rpc_v1alpha1_rule_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCniServer ¶
func RegisterCollectorServer ¶
func RegisterCollectorServer(s *grpc.Server, srv CollectorServer)
func RegisterGetterServer ¶
func RegisterGetterServer(s *grpc.Server, srv GetterServer)
Types ¶
type ArpResponse ¶
type ArpResponse struct { Pkt []byte `protobuf:"bytes,1,opt,name=pkt,proto3" json:"pkt,omitempty"` InPort uint32 `protobuf:"varint,2,opt,name=in_port,json=inPort,proto3" json:"in_port,omitempty"` BrName string `protobuf:"bytes,3,opt,name=br_name,json=brName,proto3" json:"br_name,omitempty"` // contains filtered or unexported fields }
func (*ArpResponse) Descriptor
deprecated
func (*ArpResponse) Descriptor() ([]byte, []int)
Deprecated: Use ArpResponse.ProtoReflect.Descriptor instead.
func (*ArpResponse) GetBrName ¶
func (x *ArpResponse) GetBrName() string
func (*ArpResponse) GetInPort ¶
func (x *ArpResponse) GetInPort() uint32
func (*ArpResponse) GetPkt ¶
func (x *ArpResponse) GetPkt() []byte
func (*ArpResponse) ProtoMessage ¶
func (*ArpResponse) ProtoMessage()
func (*ArpResponse) ProtoReflect ¶
func (x *ArpResponse) ProtoReflect() protoreflect.Message
func (*ArpResponse) Reset ¶
func (x *ArpResponse) Reset()
func (*ArpResponse) String ¶
func (x *ArpResponse) String() string
type Backend ¶
type Backend struct { IP string `protobuf:"bytes,1,opt,name=IP,proto3" json:"IP,omitempty"` Protocol string `protobuf:"bytes,2,opt,name=Protocol,proto3" json:"Protocol,omitempty"` Port int32 `protobuf:"varint,3,opt,name=Port,proto3" json:"Port,omitempty"` Node string `protobuf:"bytes,4,opt,name=Node,proto3" json:"Node,omitempty"` // contains filtered or unexported fields }
func (*Backend) Descriptor
deprecated
func (*Backend) GetProtocol ¶
func (*Backend) ProtoMessage ¶
func (*Backend) ProtoMessage()
func (*Backend) ProtoReflect ¶
func (x *Backend) ProtoReflect() protoreflect.Message
type ChainBridgeResp ¶
type ChainBridgeResp struct { Bridge []string `protobuf:"bytes,1,rep,name=bridge,proto3" json:"bridge,omitempty"` // contains filtered or unexported fields }
func (*ChainBridgeResp) Descriptor
deprecated
func (*ChainBridgeResp) Descriptor() ([]byte, []int)
Deprecated: Use ChainBridgeResp.ProtoReflect.Descriptor instead.
func (*ChainBridgeResp) GetBridge ¶
func (x *ChainBridgeResp) GetBridge() []string
func (*ChainBridgeResp) ProtoMessage ¶
func (*ChainBridgeResp) ProtoMessage()
func (*ChainBridgeResp) ProtoReflect ¶
func (x *ChainBridgeResp) ProtoReflect() protoreflect.Message
func (*ChainBridgeResp) Reset ¶
func (x *ChainBridgeResp) Reset()
func (*ChainBridgeResp) String ¶
func (x *ChainBridgeResp) String() string
type CniClient ¶
type CniClient interface { CmdAdd(ctx context.Context, in *CniRequest, opts ...grpc.CallOption) (*CniResponse, error) CmdCheck(ctx context.Context, in *CniRequest, opts ...grpc.CallOption) (*CniResponse, error) CmdDel(ctx context.Context, in *CniRequest, opts ...grpc.CallOption) (*CniResponse, error) }
CniClient is the client API for Cni service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCniClient ¶
func NewCniClient(cc grpc.ClientConnInterface) CniClient
type CniRequest ¶
type CniRequest struct { ContainerId string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` Netns string `protobuf:"bytes,2,opt,name=netns,proto3" json:"netns,omitempty"` Ifname string `protobuf:"bytes,3,opt,name=ifname,proto3" json:"ifname,omitempty"` Args string `protobuf:"bytes,4,opt,name=args,proto3" json:"args,omitempty"` Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` Stdin []byte `protobuf:"bytes,6,opt,name=stdin,proto3" json:"stdin,omitempty"` // contains filtered or unexported fields }
func (*CniRequest) Descriptor
deprecated
func (*CniRequest) Descriptor() ([]byte, []int)
Deprecated: Use CniRequest.ProtoReflect.Descriptor instead.
func (*CniRequest) GetArgs ¶
func (x *CniRequest) GetArgs() string
func (*CniRequest) GetContainerId ¶
func (x *CniRequest) GetContainerId() string
func (*CniRequest) GetIfname ¶
func (x *CniRequest) GetIfname() string
func (*CniRequest) GetNetns ¶
func (x *CniRequest) GetNetns() string
func (*CniRequest) GetPath ¶
func (x *CniRequest) GetPath() string
func (*CniRequest) GetStdin ¶
func (x *CniRequest) GetStdin() []byte
func (*CniRequest) ProtoMessage ¶
func (*CniRequest) ProtoMessage()
func (*CniRequest) ProtoReflect ¶
func (x *CniRequest) ProtoReflect() protoreflect.Message
func (*CniRequest) Reset ¶
func (x *CniRequest) Reset()
func (*CniRequest) String ¶
func (x *CniRequest) String() string
type CniResponse ¶
type CniResponse struct { Result []byte `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*CniResponse) Descriptor
deprecated
func (*CniResponse) Descriptor() ([]byte, []int)
Deprecated: Use CniResponse.ProtoReflect.Descriptor instead.
func (*CniResponse) GetError ¶
func (x *CniResponse) GetError() *Error
func (*CniResponse) GetResult ¶
func (x *CniResponse) GetResult() []byte
func (*CniResponse) ProtoMessage ¶
func (*CniResponse) ProtoMessage()
func (*CniResponse) ProtoReflect ¶
func (x *CniResponse) ProtoReflect() protoreflect.Message
func (*CniResponse) Reset ¶
func (x *CniResponse) Reset()
func (*CniResponse) String ¶
func (x *CniResponse) String() string
type CniServer ¶
type CniServer interface { CmdAdd(context.Context, *CniRequest) (*CniResponse, error) CmdCheck(context.Context, *CniRequest) (*CniResponse, error) CmdDel(context.Context, *CniRequest) (*CniResponse, error) }
CniServer is the server API for Cni service.
type CollectorClient ¶
type CollectorClient interface { ArpStream(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Collector_ArpStreamClient, error) Policy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*PolicyResponse, error) GetChainBridge(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ChainBridgeResp, error) }
CollectorClient is the client API for Collector service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCollectorClient ¶
func NewCollectorClient(cc grpc.ClientConnInterface) CollectorClient
type CollectorServer ¶
type CollectorServer interface { ArpStream(*emptypb.Empty, Collector_ArpStreamServer) error Policy(context.Context, *PolicyRequest) (*PolicyResponse, error) GetChainBridge(context.Context, *emptypb.Empty) (*ChainBridgeResp, error) }
CollectorServer is the server API for Collector service.
type Collector_ArpStreamClient ¶
type Collector_ArpStreamClient interface { Recv() (*ArpResponse, error) grpc.ClientStream }
type Collector_ArpStreamServer ¶
type Collector_ArpStreamServer interface { Send(*ArpResponse) error grpc.ServerStream }
type Error ¶
type Error struct { Code ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=everoute_io.pkg.apis.rpc.v1alpha1.ErrorCode" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Details string `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
func (*Error) Descriptor
deprecated
func (*Error) GetDetails ¶
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type ErrorCode ¶
type ErrorCode int32
const ( ErrorCode_UNKNOWN ErrorCode = 0 ErrorCode_INCOMPATIBLE_CNI_VERSION ErrorCode = 1 ErrorCode_UNSUPPORTED_FIELD ErrorCode = 2 ErrorCode_UNKNOWN_CONTAINER ErrorCode = 3 ErrorCode_INVALID_ENVIRONMENT_VARIABLES ErrorCode = 4 ErrorCode_IO_FAILURE ErrorCode = 5 ErrorCode_DECODING_FAILURE ErrorCode = 6 ErrorCode_INVALID_NETWORK_CONFIG ErrorCode = 7 ErrorCode_TRY_AGAIN_LATER ErrorCode = 11 )
func (ErrorCode) Descriptor ¶
func (ErrorCode) Descriptor() protoreflect.EnumDescriptor
func (ErrorCode) EnumDescriptor
deprecated
func (ErrorCode) Number ¶
func (x ErrorCode) Number() protoreflect.EnumNumber
func (ErrorCode) Type ¶
func (ErrorCode) Type() protoreflect.EnumType
type FlowEntry ¶
type FlowEntry struct { Priority uint32 `protobuf:"varint,1,opt,name=Priority,proto3" json:"Priority,omitempty"` FlowID uint64 `protobuf:"varint,2,opt,name=FlowID,proto3" json:"FlowID,omitempty"` // contains filtered or unexported fields }
func (*FlowEntry) Descriptor
deprecated
func (*FlowEntry) GetPriority ¶
func (*FlowEntry) ProtoMessage ¶
func (*FlowEntry) ProtoMessage()
func (*FlowEntry) ProtoReflect ¶
func (x *FlowEntry) ProtoReflect() protoreflect.Message
type FlowIDs ¶
type FlowIDs struct { FlowIDs []uint64 `protobuf:"varint,1,rep,packed,name=FlowIDs,proto3" json:"FlowIDs,omitempty"` // contains filtered or unexported fields }
func (*FlowIDs) Descriptor
deprecated
func (*FlowIDs) GetFlowIDs ¶
func (*FlowIDs) ProtoMessage ¶
func (*FlowIDs) ProtoMessage()
func (*FlowIDs) ProtoReflect ¶
func (x *FlowIDs) ProtoReflect() protoreflect.Message
type GetterClient ¶
type GetterClient interface { GetAllRules(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*RuleEntries, error) GetRulesByName(ctx context.Context, in *RuleIDs, opts ...grpc.CallOption) (*RuleEntries, error) GetRulesByFlow(ctx context.Context, in *FlowIDs, opts ...grpc.CallOption) (*RuleEntries, error) GetSvcInfoBySvcID(ctx context.Context, in *SvcID, opts ...grpc.CallOption) (*SvcInfo, error) }
GetterClient is the client API for Getter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGetterClient ¶
func NewGetterClient(cc grpc.ClientConnInterface) GetterClient
type GetterServer ¶
type GetterServer interface { GetAllRules(context.Context, *emptypb.Empty) (*RuleEntries, error) GetRulesByName(context.Context, *RuleIDs) (*RuleEntries, error) GetRulesByFlow(context.Context, *FlowIDs) (*RuleEntries, error) GetSvcInfoBySvcID(context.Context, *SvcID) (*SvcInfo, error) }
GetterServer is the server API for Getter service.
type PolicyItem ¶
type PolicyItem struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` PolicyType string `protobuf:"bytes,3,opt,name=policyType,proto3" json:"policyType,omitempty"` // contains filtered or unexported fields }
func (*PolicyItem) Descriptor
deprecated
func (*PolicyItem) Descriptor() ([]byte, []int)
Deprecated: Use PolicyItem.ProtoReflect.Descriptor instead.
func (*PolicyItem) GetName ¶
func (x *PolicyItem) GetName() string
func (*PolicyItem) GetNamespace ¶
func (x *PolicyItem) GetNamespace() string
func (*PolicyItem) GetPolicyType ¶
func (x *PolicyItem) GetPolicyType() string
func (*PolicyItem) ProtoMessage ¶
func (*PolicyItem) ProtoMessage()
func (*PolicyItem) ProtoReflect ¶
func (x *PolicyItem) ProtoReflect() protoreflect.Message
func (*PolicyItem) Reset ¶
func (x *PolicyItem) Reset()
func (*PolicyItem) String ¶
func (x *PolicyItem) String() string
type PolicyList ¶
type PolicyList struct { Dir uint32 `protobuf:"varint,1,opt,name=dir,proto3" json:"dir,omitempty"` Action string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"` Items []*PolicyItem `protobuf:"bytes,4,rep,name=items,proto3" json:"items,omitempty"` FlowID uint64 `protobuf:"varint,5,opt,name=flowID,proto3" json:"flowID,omitempty"` Tier uint32 `protobuf:"varint,6,opt,name=tier,proto3" json:"tier,omitempty"` Priority int64 `protobuf:"varint,7,opt,name=priority,proto3" json:"priority,omitempty"` // contains filtered or unexported fields }
func (*PolicyList) Descriptor
deprecated
func (*PolicyList) Descriptor() ([]byte, []int)
Deprecated: Use PolicyList.ProtoReflect.Descriptor instead.
func (*PolicyList) GetAction ¶
func (x *PolicyList) GetAction() string
func (*PolicyList) GetDir ¶
func (x *PolicyList) GetDir() uint32
func (*PolicyList) GetFlowID ¶
func (x *PolicyList) GetFlowID() uint64
func (*PolicyList) GetItems ¶
func (x *PolicyList) GetItems() []*PolicyItem
func (*PolicyList) GetMode ¶
func (x *PolicyList) GetMode() string
func (*PolicyList) GetPriority ¶
func (x *PolicyList) GetPriority() int64
func (*PolicyList) GetTier ¶
func (x *PolicyList) GetTier() uint32
func (*PolicyList) ProtoMessage ¶
func (*PolicyList) ProtoMessage()
func (*PolicyList) ProtoReflect ¶
func (x *PolicyList) ProtoReflect() protoreflect.Message
func (*PolicyList) Reset ¶
func (x *PolicyList) Reset()
func (*PolicyList) String ¶
func (x *PolicyList) String() string
type PolicyRequest ¶
type PolicyRequest struct { FlowIDs []uint64 `protobuf:"varint,1,rep,packed,name=flowIDs,proto3" json:"flowIDs,omitempty"` // contains filtered or unexported fields }
func (*PolicyRequest) Descriptor
deprecated
func (*PolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use PolicyRequest.ProtoReflect.Descriptor instead.
func (*PolicyRequest) GetFlowIDs ¶
func (x *PolicyRequest) GetFlowIDs() []uint64
func (*PolicyRequest) ProtoMessage ¶
func (*PolicyRequest) ProtoMessage()
func (*PolicyRequest) ProtoReflect ¶
func (x *PolicyRequest) ProtoReflect() protoreflect.Message
func (*PolicyRequest) Reset ¶
func (x *PolicyRequest) Reset()
func (*PolicyRequest) String ¶
func (x *PolicyRequest) String() string
type PolicyResponse ¶
type PolicyResponse struct { List []*PolicyList `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*PolicyResponse) Descriptor
deprecated
func (*PolicyResponse) Descriptor() ([]byte, []int)
Deprecated: Use PolicyResponse.ProtoReflect.Descriptor instead.
func (*PolicyResponse) GetList ¶
func (x *PolicyResponse) GetList() []*PolicyList
func (*PolicyResponse) ProtoMessage ¶
func (*PolicyResponse) ProtoMessage()
func (*PolicyResponse) ProtoReflect ¶
func (x *PolicyResponse) ProtoReflect() protoreflect.Message
func (*PolicyResponse) Reset ¶
func (x *PolicyResponse) Reset()
func (*PolicyResponse) String ¶
func (x *PolicyResponse) String() string
type PolicyRule ¶
type PolicyRule struct { RuleID string `protobuf:"bytes,1,opt,name=RuleID,proto3" json:"RuleID,omitempty"` Priority int32 `protobuf:"varint,2,opt,name=Priority,proto3" json:"Priority,omitempty"` SrcIPAddr string `protobuf:"bytes,3,opt,name=SrcIPAddr,proto3" json:"SrcIPAddr,omitempty"` DstIPAddr string `protobuf:"bytes,4,opt,name=DstIPAddr,proto3" json:"DstIPAddr,omitempty"` IPProtocol uint32 `protobuf:"varint,5,opt,name=IPProtocol,proto3" json:"IPProtocol,omitempty"` SrcPort uint32 `protobuf:"varint,6,opt,name=SrcPort,proto3" json:"SrcPort,omitempty"` SrcPortMask uint32 `protobuf:"varint,7,opt,name=SrcPortMask,proto3" json:"SrcPortMask,omitempty"` DstPort uint32 `protobuf:"varint,8,opt,name=DstPort,proto3" json:"DstPort,omitempty"` DstPortMask uint32 `protobuf:"varint,9,opt,name=DstPortMask,proto3" json:"DstPortMask,omitempty"` Action string `protobuf:"bytes,10,opt,name=Action,proto3" json:"Action,omitempty"` // contains filtered or unexported fields }
func (*PolicyRule) Descriptor
deprecated
func (*PolicyRule) Descriptor() ([]byte, []int)
Deprecated: Use PolicyRule.ProtoReflect.Descriptor instead.
func (*PolicyRule) GetAction ¶
func (x *PolicyRule) GetAction() string
func (*PolicyRule) GetDstIPAddr ¶
func (x *PolicyRule) GetDstIPAddr() string
func (*PolicyRule) GetDstPort ¶
func (x *PolicyRule) GetDstPort() uint32
func (*PolicyRule) GetDstPortMask ¶
func (x *PolicyRule) GetDstPortMask() uint32
func (*PolicyRule) GetIPProtocol ¶
func (x *PolicyRule) GetIPProtocol() uint32
func (*PolicyRule) GetPriority ¶
func (x *PolicyRule) GetPriority() int32
func (*PolicyRule) GetRuleID ¶
func (x *PolicyRule) GetRuleID() string
func (*PolicyRule) GetSrcIPAddr ¶
func (x *PolicyRule) GetSrcIPAddr() string
func (*PolicyRule) GetSrcPort ¶
func (x *PolicyRule) GetSrcPort() uint32
func (*PolicyRule) GetSrcPortMask ¶
func (x *PolicyRule) GetSrcPortMask() uint32
func (*PolicyRule) ProtoMessage ¶
func (*PolicyRule) ProtoMessage()
func (*PolicyRule) ProtoReflect ¶
func (x *PolicyRule) ProtoReflect() protoreflect.Message
func (*PolicyRule) Reset ¶
func (x *PolicyRule) Reset()
func (*PolicyRule) String ¶
func (x *PolicyRule) String() string
type PolicyRuleReference ¶
type PolicyRuleReference struct { NameSpace string `protobuf:"bytes,1,opt,name=NameSpace,proto3" json:"NameSpace,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Type string `protobuf:"bytes,3,opt,name=Type,proto3" json:"Type,omitempty"` // contains filtered or unexported fields }
func (*PolicyRuleReference) Descriptor
deprecated
func (*PolicyRuleReference) Descriptor() ([]byte, []int)
Deprecated: Use PolicyRuleReference.ProtoReflect.Descriptor instead.
func (*PolicyRuleReference) GetName ¶
func (x *PolicyRuleReference) GetName() string
func (*PolicyRuleReference) GetNameSpace ¶
func (x *PolicyRuleReference) GetNameSpace() string
func (*PolicyRuleReference) GetType ¶
func (x *PolicyRuleReference) GetType() string
func (*PolicyRuleReference) ProtoMessage ¶
func (*PolicyRuleReference) ProtoMessage()
func (*PolicyRuleReference) ProtoReflect ¶
func (x *PolicyRuleReference) ProtoReflect() protoreflect.Message
func (*PolicyRuleReference) Reset ¶
func (x *PolicyRuleReference) Reset()
func (*PolicyRuleReference) String ¶
func (x *PolicyRuleReference) String() string
type RuleEntries ¶
type RuleEntries struct { RuleEntries []*RuleEntry `protobuf:"bytes,1,rep,name=RuleEntries,proto3" json:"RuleEntries,omitempty"` // contains filtered or unexported fields }
func (*RuleEntries) Descriptor
deprecated
func (*RuleEntries) Descriptor() ([]byte, []int)
Deprecated: Use RuleEntries.ProtoReflect.Descriptor instead.
func (*RuleEntries) GetRuleEntries ¶
func (x *RuleEntries) GetRuleEntries() []*RuleEntry
func (*RuleEntries) ProtoMessage ¶
func (*RuleEntries) ProtoMessage()
func (*RuleEntries) ProtoReflect ¶
func (x *RuleEntries) ProtoReflect() protoreflect.Message
func (*RuleEntries) Reset ¶
func (x *RuleEntries) Reset()
func (*RuleEntries) String ¶
func (x *RuleEntries) String() string
type RuleEntry ¶
type RuleEntry struct { EveroutePolicyRule *PolicyRule `protobuf:"bytes,1,opt,name=EveroutePolicyRule,proto3" json:"EveroutePolicyRule,omitempty"` Direction uint32 `protobuf:"varint,2,opt,name=Direction,proto3" json:"Direction,omitempty"` Tier uint32 `protobuf:"varint,3,opt,name=Tier,proto3" json:"Tier,omitempty"` Mode string `protobuf:"bytes,4,opt,name=Mode,proto3" json:"Mode,omitempty"` RuleFlowMap map[string]*FlowEntry `` /* 163-byte string literal not displayed */ PolicyRuleReference []*PolicyRuleReference `protobuf:"bytes,6,rep,name=PolicyRuleReference,proto3" json:"PolicyRuleReference,omitempty"` // contains filtered or unexported fields }
func (*RuleEntry) Descriptor
deprecated
func (*RuleEntry) GetDirection ¶
func (*RuleEntry) GetEveroutePolicyRule ¶
func (x *RuleEntry) GetEveroutePolicyRule() *PolicyRule
func (*RuleEntry) GetPolicyRuleReference ¶
func (x *RuleEntry) GetPolicyRuleReference() []*PolicyRuleReference
func (*RuleEntry) GetRuleFlowMap ¶
func (*RuleEntry) ProtoMessage ¶
func (*RuleEntry) ProtoMessage()
func (*RuleEntry) ProtoReflect ¶
func (x *RuleEntry) ProtoReflect() protoreflect.Message
type RuleIDs ¶
type RuleIDs struct { RuleIDs []string `protobuf:"bytes,1,rep,name=RuleIDs,proto3" json:"RuleIDs,omitempty"` // contains filtered or unexported fields }
func (*RuleIDs) Descriptor
deprecated
func (*RuleIDs) GetRuleIDs ¶
func (*RuleIDs) ProtoMessage ¶
func (*RuleIDs) ProtoMessage()
func (*RuleIDs) ProtoReflect ¶
func (x *RuleIDs) ProtoReflect() protoreflect.Message
type SvcCache ¶
type SvcCache struct { SvcID string `protobuf:"bytes,1,opt,name=SvcID,proto3" json:"SvcID,omitempty"` SvcLBs []*SvcLB `protobuf:"bytes,2,rep,name=SvcLBs,proto3" json:"SvcLBs,omitempty"` Backends []*Backend `protobuf:"bytes,3,rep,name=Backends,proto3" json:"Backends,omitempty"` SvcPortNames []string `protobuf:"bytes,4,rep,name=SvcPortNames,proto3" json:"SvcPortNames,omitempty"` // contains filtered or unexported fields }
func (*SvcCache) Descriptor
deprecated
func (*SvcCache) GetBackends ¶
func (*SvcCache) GetSvcPortNames ¶
func (*SvcCache) ProtoMessage ¶
func (*SvcCache) ProtoMessage()
func (*SvcCache) ProtoReflect ¶
func (x *SvcCache) ProtoReflect() protoreflect.Message
type SvcDnatFlowEntry ¶
type SvcDnatFlowEntry struct { Backend *Backend `protobuf:"bytes,1,opt,name=Backend,proto3" json:"Backend,omitempty"` FlowID uint64 `protobuf:"varint,2,opt,name=FlowID,proto3" json:"FlowID,omitempty"` Info string `protobuf:"bytes,3,opt,name=Info,proto3" json:"Info,omitempty"` // contains filtered or unexported fields }
func (*SvcDnatFlowEntry) Descriptor
deprecated
func (*SvcDnatFlowEntry) Descriptor() ([]byte, []int)
Deprecated: Use SvcDnatFlowEntry.ProtoReflect.Descriptor instead.
func (*SvcDnatFlowEntry) GetBackend ¶
func (x *SvcDnatFlowEntry) GetBackend() *Backend
func (*SvcDnatFlowEntry) GetFlowID ¶
func (x *SvcDnatFlowEntry) GetFlowID() uint64
func (*SvcDnatFlowEntry) GetInfo ¶
func (x *SvcDnatFlowEntry) GetInfo() string
func (*SvcDnatFlowEntry) ProtoMessage ¶
func (*SvcDnatFlowEntry) ProtoMessage()
func (*SvcDnatFlowEntry) ProtoReflect ¶
func (x *SvcDnatFlowEntry) ProtoReflect() protoreflect.Message
func (*SvcDnatFlowEntry) Reset ¶
func (x *SvcDnatFlowEntry) Reset()
func (*SvcDnatFlowEntry) String ¶
func (x *SvcDnatFlowEntry) String() string
type SvcFlow ¶
type SvcFlow struct { LBFlows []*SvcFlowEntry `protobuf:"bytes,1,rep,name=LBFlows,proto3" json:"LBFlows,omitempty"` SessionAffinityFlows []*SvcFlowEntry `protobuf:"bytes,2,rep,name=SessionAffinityFlows,proto3" json:"SessionAffinityFlows,omitempty"` DnatFlows []*SvcDnatFlowEntry `protobuf:"bytes,3,rep,name=DnatFlows,proto3" json:"DnatFlows,omitempty"` // contains filtered or unexported fields }
func (*SvcFlow) Descriptor
deprecated
func (*SvcFlow) GetDnatFlows ¶
func (x *SvcFlow) GetDnatFlows() []*SvcDnatFlowEntry
func (*SvcFlow) GetLBFlows ¶
func (x *SvcFlow) GetLBFlows() []*SvcFlowEntry
func (*SvcFlow) GetSessionAffinityFlows ¶
func (x *SvcFlow) GetSessionAffinityFlows() []*SvcFlowEntry
func (*SvcFlow) ProtoMessage ¶
func (*SvcFlow) ProtoMessage()
func (*SvcFlow) ProtoReflect ¶
func (x *SvcFlow) ProtoReflect() protoreflect.Message
type SvcFlowEntry ¶
type SvcFlowEntry struct { IP string `protobuf:"bytes,1,opt,name=IP,proto3" json:"IP,omitempty"` PortName string `protobuf:"bytes,2,opt,name=PortName,proto3" json:"PortName,omitempty"` FlowID uint64 `protobuf:"varint,3,opt,name=FlowID,proto3" json:"FlowID,omitempty"` Info string `protobuf:"bytes,4,opt,name=Info,proto3" json:"Info,omitempty"` // contains filtered or unexported fields }
func (*SvcFlowEntry) Descriptor
deprecated
func (*SvcFlowEntry) Descriptor() ([]byte, []int)
Deprecated: Use SvcFlowEntry.ProtoReflect.Descriptor instead.
func (*SvcFlowEntry) GetFlowID ¶
func (x *SvcFlowEntry) GetFlowID() uint64
func (*SvcFlowEntry) GetIP ¶
func (x *SvcFlowEntry) GetIP() string
func (*SvcFlowEntry) GetInfo ¶
func (x *SvcFlowEntry) GetInfo() string
func (*SvcFlowEntry) GetPortName ¶
func (x *SvcFlowEntry) GetPortName() string
func (*SvcFlowEntry) ProtoMessage ¶
func (*SvcFlowEntry) ProtoMessage()
func (*SvcFlowEntry) ProtoReflect ¶
func (x *SvcFlowEntry) ProtoReflect() protoreflect.Message
func (*SvcFlowEntry) Reset ¶
func (x *SvcFlowEntry) Reset()
func (*SvcFlowEntry) String ¶
func (x *SvcFlowEntry) String() string
type SvcGroup ¶
type SvcGroup struct { PortName string `protobuf:"bytes,1,opt,name=PortName,proto3" json:"PortName,omitempty"` TrafficPolicy string `protobuf:"bytes,2,opt,name=TrafficPolicy,proto3" json:"TrafficPolicy,omitempty"` GroupID uint32 `protobuf:"varint,3,opt,name=GroupID,proto3" json:"GroupID,omitempty"` Info string `protobuf:"bytes,4,opt,name=Info,proto3" json:"Info,omitempty"` // contains filtered or unexported fields }
func (*SvcGroup) Descriptor
deprecated
func (*SvcGroup) GetGroupID ¶
func (*SvcGroup) GetPortName ¶
func (*SvcGroup) GetTrafficPolicy ¶
func (*SvcGroup) ProtoMessage ¶
func (*SvcGroup) ProtoMessage()
func (*SvcGroup) ProtoReflect ¶
func (x *SvcGroup) ProtoReflect() protoreflect.Message
type SvcID ¶
type SvcID struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*SvcID) Descriptor
deprecated
func (*SvcID) ProtoMessage ¶
func (*SvcID) ProtoMessage()
func (*SvcID) ProtoReflect ¶
func (x *SvcID) ProtoReflect() protoreflect.Message
type SvcInfo ¶
type SvcInfo struct { SvcCache *SvcCache `protobuf:"bytes,1,opt,name=SvcCache,proto3" json:"SvcCache,omitempty"` SvcFlow *SvcFlow `protobuf:"bytes,2,opt,name=SvcFlow,proto3" json:"SvcFlow,omitempty"` SvcGroup []*SvcGroup `protobuf:"bytes,3,rep,name=SvcGroup,proto3" json:"SvcGroup,omitempty"` // contains filtered or unexported fields }
func (*SvcInfo) Descriptor
deprecated
func (*SvcInfo) GetSvcCache ¶
func (*SvcInfo) GetSvcFlow ¶
func (*SvcInfo) GetSvcGroup ¶
func (*SvcInfo) ProtoMessage ¶
func (*SvcInfo) ProtoMessage()
func (*SvcInfo) ProtoReflect ¶
func (x *SvcInfo) ProtoReflect() protoreflect.Message
type SvcLB ¶
type SvcLB struct { IP string `protobuf:"bytes,1,opt,name=IP,proto3" json:"IP,omitempty"` PortName string `protobuf:"bytes,2,opt,name=PortName,proto3" json:"PortName,omitempty"` Port int32 `protobuf:"varint,3,opt,name=Port,proto3" json:"Port,omitempty"` NodePort int32 `protobuf:"varint,4,opt,name=NodePort,proto3" json:"NodePort,omitempty"` Protocol string `protobuf:"bytes,5,opt,name=Protocol,proto3" json:"Protocol,omitempty"` SessionAffinity string `protobuf:"bytes,6,opt,name=SessionAffinity,proto3" json:"SessionAffinity,omitempty"` SessionAffinityTimeout int32 `protobuf:"varint,7,opt,name=SessionAffinityTimeout,proto3" json:"SessionAffinityTimeout,omitempty"` TrafficPolicy string `protobuf:"bytes,8,opt,name=TrafficPolicy,proto3" json:"TrafficPolicy,omitempty"` // contains filtered or unexported fields }
func (*SvcLB) Descriptor
deprecated
func (*SvcLB) GetNodePort ¶
func (*SvcLB) GetPortName ¶
func (*SvcLB) GetProtocol ¶
func (*SvcLB) GetSessionAffinity ¶
func (*SvcLB) GetSessionAffinityTimeout ¶
func (*SvcLB) GetTrafficPolicy ¶
func (*SvcLB) ProtoMessage ¶
func (*SvcLB) ProtoMessage()
func (*SvcLB) ProtoReflect ¶
func (x *SvcLB) ProtoReflect() protoreflect.Message
type SvcPort ¶
type SvcPort struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Port int32 `protobuf:"varint,2,opt,name=Port,proto3" json:"Port,omitempty"` Protocol string `protobuf:"bytes,3,opt,name=Protocol,proto3" json:"Protocol,omitempty"` // contains filtered or unexported fields }
func (*SvcPort) Descriptor
deprecated
func (*SvcPort) GetProtocol ¶
func (*SvcPort) ProtoMessage ¶
func (*SvcPort) ProtoMessage()
func (*SvcPort) ProtoReflect ¶
func (x *SvcPort) ProtoReflect() protoreflect.Message
type UnimplementedCniServer ¶
type UnimplementedCniServer struct { }
UnimplementedCniServer can be embedded to have forward compatible implementations.
func (*UnimplementedCniServer) CmdAdd ¶
func (*UnimplementedCniServer) CmdAdd(context.Context, *CniRequest) (*CniResponse, error)
func (*UnimplementedCniServer) CmdCheck ¶
func (*UnimplementedCniServer) CmdCheck(context.Context, *CniRequest) (*CniResponse, error)
func (*UnimplementedCniServer) CmdDel ¶
func (*UnimplementedCniServer) CmdDel(context.Context, *CniRequest) (*CniResponse, error)
type UnimplementedCollectorServer ¶
type UnimplementedCollectorServer struct { }
UnimplementedCollectorServer can be embedded to have forward compatible implementations.
func (*UnimplementedCollectorServer) ArpStream ¶
func (*UnimplementedCollectorServer) ArpStream(*emptypb.Empty, Collector_ArpStreamServer) error
func (*UnimplementedCollectorServer) GetChainBridge ¶
func (*UnimplementedCollectorServer) GetChainBridge(context.Context, *emptypb.Empty) (*ChainBridgeResp, error)
func (*UnimplementedCollectorServer) Policy ¶
func (*UnimplementedCollectorServer) Policy(context.Context, *PolicyRequest) (*PolicyResponse, error)
type UnimplementedGetterServer ¶
type UnimplementedGetterServer struct { }
UnimplementedGetterServer can be embedded to have forward compatible implementations.
func (*UnimplementedGetterServer) GetAllRules ¶
func (*UnimplementedGetterServer) GetAllRules(context.Context, *emptypb.Empty) (*RuleEntries, error)
func (*UnimplementedGetterServer) GetRulesByFlow ¶
func (*UnimplementedGetterServer) GetRulesByFlow(context.Context, *FlowIDs) (*RuleEntries, error)
func (*UnimplementedGetterServer) GetRulesByName ¶
func (*UnimplementedGetterServer) GetRulesByName(context.Context, *RuleIDs) (*RuleEntries, error)