v1alpha1

package
v0.0.0-...-e9f4c3e Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_pkg_apis_rpc_v1alpha1_cni_proto protoreflect.FileDescriptor
View Source
var File_pkg_apis_rpc_v1alpha1_collector_proto protoreflect.FileDescriptor
View Source
var File_pkg_apis_rpc_v1alpha1_rule_proto protoreflect.FileDescriptor

Functions

func RegisterCniServer

func RegisterCniServer(s *grpc.Server, srv CniServer)

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) Descriptor() ([]byte, []int)

Deprecated: Use Backend.ProtoReflect.Descriptor instead.

func (*Backend) GetIP

func (x *Backend) GetIP() string

func (*Backend) GetNode

func (x *Backend) GetNode() string

func (*Backend) GetPort

func (x *Backend) GetPort() int32

func (*Backend) GetProtocol

func (x *Backend) GetProtocol() string

func (*Backend) ProtoMessage

func (*Backend) ProtoMessage()

func (*Backend) ProtoReflect

func (x *Backend) ProtoReflect() protoreflect.Message

func (*Backend) Reset

func (x *Backend) Reset()

func (*Backend) String

func (x *Backend) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() ErrorCode

func (*Error) GetDetails

func (x *Error) GetDetails() string

func (*Error) GetMessage

func (x *Error) GetMessage() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

func (x *Error) ProtoReflect() protoreflect.Message

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

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) Enum

func (x ErrorCode) Enum() *ErrorCode

func (ErrorCode) EnumDescriptor deprecated

func (ErrorCode) EnumDescriptor() ([]byte, []int)

Deprecated: Use ErrorCode.Descriptor instead.

func (ErrorCode) Number

func (x ErrorCode) Number() protoreflect.EnumNumber

func (ErrorCode) String

func (x ErrorCode) String() string

func (ErrorCode) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use FlowEntry.ProtoReflect.Descriptor instead.

func (*FlowEntry) GetFlowID

func (x *FlowEntry) GetFlowID() uint64

func (*FlowEntry) GetPriority

func (x *FlowEntry) GetPriority() uint32

func (*FlowEntry) ProtoMessage

func (*FlowEntry) ProtoMessage()

func (*FlowEntry) ProtoReflect

func (x *FlowEntry) ProtoReflect() protoreflect.Message

func (*FlowEntry) Reset

func (x *FlowEntry) Reset()

func (*FlowEntry) String

func (x *FlowEntry) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use FlowIDs.ProtoReflect.Descriptor instead.

func (*FlowIDs) GetFlowIDs

func (x *FlowIDs) GetFlowIDs() []uint64

func (*FlowIDs) ProtoMessage

func (*FlowIDs) ProtoMessage()

func (*FlowIDs) ProtoReflect

func (x *FlowIDs) ProtoReflect() protoreflect.Message

func (*FlowIDs) Reset

func (x *FlowIDs) Reset()

func (*FlowIDs) String

func (x *FlowIDs) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use RuleEntry.ProtoReflect.Descriptor instead.

func (*RuleEntry) GetDirection

func (x *RuleEntry) GetDirection() uint32

func (*RuleEntry) GetEveroutePolicyRule

func (x *RuleEntry) GetEveroutePolicyRule() *PolicyRule

func (*RuleEntry) GetMode

func (x *RuleEntry) GetMode() string

func (*RuleEntry) GetPolicyRuleReference

func (x *RuleEntry) GetPolicyRuleReference() []*PolicyRuleReference

func (*RuleEntry) GetRuleFlowMap

func (x *RuleEntry) GetRuleFlowMap() map[string]*FlowEntry

func (*RuleEntry) GetTier

func (x *RuleEntry) GetTier() uint32

func (*RuleEntry) ProtoMessage

func (*RuleEntry) ProtoMessage()

func (*RuleEntry) ProtoReflect

func (x *RuleEntry) ProtoReflect() protoreflect.Message

func (*RuleEntry) Reset

func (x *RuleEntry) Reset()

func (*RuleEntry) String

func (x *RuleEntry) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use RuleIDs.ProtoReflect.Descriptor instead.

func (*RuleIDs) GetRuleIDs

func (x *RuleIDs) GetRuleIDs() []string

func (*RuleIDs) ProtoMessage

func (*RuleIDs) ProtoMessage()

func (*RuleIDs) ProtoReflect

func (x *RuleIDs) ProtoReflect() protoreflect.Message

func (*RuleIDs) Reset

func (x *RuleIDs) Reset()

func (*RuleIDs) String

func (x *RuleIDs) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use SvcCache.ProtoReflect.Descriptor instead.

func (*SvcCache) GetBackends

func (x *SvcCache) GetBackends() []*Backend

func (*SvcCache) GetSvcID

func (x *SvcCache) GetSvcID() string

func (*SvcCache) GetSvcLBs

func (x *SvcCache) GetSvcLBs() []*SvcLB

func (*SvcCache) GetSvcPortNames

func (x *SvcCache) GetSvcPortNames() []string

func (*SvcCache) ProtoMessage

func (*SvcCache) ProtoMessage()

func (*SvcCache) ProtoReflect

func (x *SvcCache) ProtoReflect() protoreflect.Message

func (*SvcCache) Reset

func (x *SvcCache) Reset()

func (*SvcCache) String

func (x *SvcCache) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use SvcFlow.ProtoReflect.Descriptor instead.

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

func (*SvcFlow) Reset

func (x *SvcFlow) Reset()

func (*SvcFlow) String

func (x *SvcFlow) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use SvcGroup.ProtoReflect.Descriptor instead.

func (*SvcGroup) GetGroupID

func (x *SvcGroup) GetGroupID() uint32

func (*SvcGroup) GetInfo

func (x *SvcGroup) GetInfo() string

func (*SvcGroup) GetPortName

func (x *SvcGroup) GetPortName() string

func (*SvcGroup) GetTrafficPolicy

func (x *SvcGroup) GetTrafficPolicy() string

func (*SvcGroup) ProtoMessage

func (*SvcGroup) ProtoMessage()

func (*SvcGroup) ProtoReflect

func (x *SvcGroup) ProtoReflect() protoreflect.Message

func (*SvcGroup) Reset

func (x *SvcGroup) Reset()

func (*SvcGroup) String

func (x *SvcGroup) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use SvcID.ProtoReflect.Descriptor instead.

func (*SvcID) GetID

func (x *SvcID) GetID() string

func (*SvcID) ProtoMessage

func (*SvcID) ProtoMessage()

func (*SvcID) ProtoReflect

func (x *SvcID) ProtoReflect() protoreflect.Message

func (*SvcID) Reset

func (x *SvcID) Reset()

func (*SvcID) String

func (x *SvcID) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use SvcInfo.ProtoReflect.Descriptor instead.

func (*SvcInfo) GetSvcCache

func (x *SvcInfo) GetSvcCache() *SvcCache

func (*SvcInfo) GetSvcFlow

func (x *SvcInfo) GetSvcFlow() *SvcFlow

func (*SvcInfo) GetSvcGroup

func (x *SvcInfo) GetSvcGroup() []*SvcGroup

func (*SvcInfo) ProtoMessage

func (*SvcInfo) ProtoMessage()

func (*SvcInfo) ProtoReflect

func (x *SvcInfo) ProtoReflect() protoreflect.Message

func (*SvcInfo) Reset

func (x *SvcInfo) Reset()

func (*SvcInfo) String

func (x *SvcInfo) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use SvcLB.ProtoReflect.Descriptor instead.

func (*SvcLB) GetIP

func (x *SvcLB) GetIP() string

func (*SvcLB) GetNodePort

func (x *SvcLB) GetNodePort() int32

func (*SvcLB) GetPort

func (x *SvcLB) GetPort() int32

func (*SvcLB) GetPortName

func (x *SvcLB) GetPortName() string

func (*SvcLB) GetProtocol

func (x *SvcLB) GetProtocol() string

func (*SvcLB) GetSessionAffinity

func (x *SvcLB) GetSessionAffinity() string

func (*SvcLB) GetSessionAffinityTimeout

func (x *SvcLB) GetSessionAffinityTimeout() int32

func (*SvcLB) GetTrafficPolicy

func (x *SvcLB) GetTrafficPolicy() string

func (*SvcLB) ProtoMessage

func (*SvcLB) ProtoMessage()

func (*SvcLB) ProtoReflect

func (x *SvcLB) ProtoReflect() protoreflect.Message

func (*SvcLB) Reset

func (x *SvcLB) Reset()

func (*SvcLB) String

func (x *SvcLB) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use SvcPort.ProtoReflect.Descriptor instead.

func (*SvcPort) GetName

func (x *SvcPort) GetName() string

func (*SvcPort) GetPort

func (x *SvcPort) GetPort() int32

func (*SvcPort) GetProtocol

func (x *SvcPort) GetProtocol() string

func (*SvcPort) ProtoMessage

func (*SvcPort) ProtoMessage()

func (*SvcPort) ProtoReflect

func (x *SvcPort) ProtoReflect() protoreflect.Message

func (*SvcPort) Reset

func (x *SvcPort) Reset()

func (*SvcPort) String

func (x *SvcPort) String() string

type UnimplementedCniServer

type UnimplementedCniServer struct {
}

UnimplementedCniServer can be embedded to have forward compatible implementations.

func (*UnimplementedCniServer) CmdAdd

func (*UnimplementedCniServer) CmdCheck

func (*UnimplementedCniServer) CmdDel

type UnimplementedCollectorServer

type UnimplementedCollectorServer struct {
}

UnimplementedCollectorServer can be embedded to have forward compatible implementations.

func (*UnimplementedCollectorServer) ArpStream

func (*UnimplementedCollectorServer) GetChainBridge

func (*UnimplementedCollectorServer) Policy

type UnimplementedGetterServer

type UnimplementedGetterServer struct {
}

UnimplementedGetterServer can be embedded to have forward compatible implementations.

func (*UnimplementedGetterServer) GetAllRules

func (*UnimplementedGetterServer) GetRulesByFlow

func (*UnimplementedGetterServer) GetRulesByName

func (*UnimplementedGetterServer) GetSvcInfoBySvcID

func (*UnimplementedGetterServer) GetSvcInfoBySvcID(context.Context, *SvcID) (*SvcInfo, error)

Jump to

Keyboard shortcuts

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