Documentation ¶
Index ¶
- Variables
- func RegisterCNIBackendServer(s *grpc.Server, srv CNIBackendServer)
- type AllocateIPReply
- func (*AllocateIPReply) Descriptor() ([]byte, []int)
- func (m *AllocateIPReply) GetCrossVPCENI() *CrossVPCENIReply
- func (m *AllocateIPReply) GetENIMultiIP() *ENIMultiIPReply
- func (m *AllocateIPReply) GetErrMsg() string
- func (m *AllocateIPReply) GetIPType() IPType
- func (m *AllocateIPReply) GetIsSuccess() bool
- func (m *AllocateIPReply) GetNetworkInfo() isAllocateIPReply_NetworkInfo
- func (*AllocateIPReply) ProtoMessage()
- func (m *AllocateIPReply) Reset()
- func (m *AllocateIPReply) String() string
- func (m *AllocateIPReply) XXX_DiscardUnknown()
- func (m *AllocateIPReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AllocateIPReply) XXX_Merge(src proto.Message)
- func (*AllocateIPReply) XXX_OneofWrappers() []interface{}
- func (m *AllocateIPReply) XXX_Size() int
- func (m *AllocateIPReply) XXX_Unmarshal(b []byte) error
- type AllocateIPReply_CrossVPCENI
- type AllocateIPReply_ENIMultiIP
- type AllocateIPRequest
- func (*AllocateIPRequest) Descriptor() ([]byte, []int)
- func (m *AllocateIPRequest) GetCrossVPCENI() *CrossVPCENIRequest
- func (m *AllocateIPRequest) GetENIMultiIP() *ENIMultiIPRequest
- func (m *AllocateIPRequest) GetIPType() IPType
- func (m *AllocateIPRequest) GetIfName() string
- func (m *AllocateIPRequest) GetK8SNodeName() string
- func (m *AllocateIPRequest) GetK8SPodInfraContainerID() string
- func (m *AllocateIPRequest) GetK8SPodName() string
- func (m *AllocateIPRequest) GetK8SPodNamespace() string
- func (m *AllocateIPRequest) GetNetns() string
- func (m *AllocateIPRequest) GetNetworkInfo() isAllocateIPRequest_NetworkInfo
- func (*AllocateIPRequest) ProtoMessage()
- func (m *AllocateIPRequest) Reset()
- func (m *AllocateIPRequest) String() string
- func (m *AllocateIPRequest) XXX_DiscardUnknown()
- func (m *AllocateIPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AllocateIPRequest) XXX_Merge(src proto.Message)
- func (*AllocateIPRequest) XXX_OneofWrappers() []interface{}
- func (m *AllocateIPRequest) XXX_Size() int
- func (m *AllocateIPRequest) XXX_Unmarshal(b []byte) error
- type AllocateIPRequest_CrossVPCENI
- type AllocateIPRequest_ENIMultiIP
- type CNIBackendClient
- type CNIBackendServer
- type CheckIPReply
- func (*CheckIPReply) Descriptor() ([]byte, []int)
- func (m *CheckIPReply) GetCrossVPCENI() *CrossVPCENIReply
- func (m *CheckIPReply) GetENIMultiIP() *ENIMultiIPReply
- func (m *CheckIPReply) GetErrMsg() string
- func (m *CheckIPReply) GetIPType() IPType
- func (m *CheckIPReply) GetIsSuccess() bool
- func (m *CheckIPReply) GetNetworkInfo() isCheckIPReply_NetworkInfo
- func (*CheckIPReply) ProtoMessage()
- func (m *CheckIPReply) Reset()
- func (m *CheckIPReply) String() string
- func (m *CheckIPReply) XXX_DiscardUnknown()
- func (m *CheckIPReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CheckIPReply) XXX_Merge(src proto.Message)
- func (*CheckIPReply) XXX_OneofWrappers() []interface{}
- func (m *CheckIPReply) XXX_Size() int
- func (m *CheckIPReply) XXX_Unmarshal(b []byte) error
- type CheckIPReply_CrossVPCENI
- type CheckIPReply_ENIMultiIP
- type CheckIPRequest
- func (*CheckIPRequest) Descriptor() ([]byte, []int)
- func (m *CheckIPRequest) GetCrossVPCENI() *CrossVPCENIRequest
- func (m *CheckIPRequest) GetENIMultiIP() *ENIMultiIPRequest
- func (m *CheckIPRequest) GetIfName() string
- func (m *CheckIPRequest) GetK8SNodeName() string
- func (m *CheckIPRequest) GetK8SPodInfraContainerID() string
- func (m *CheckIPRequest) GetK8SPodName() string
- func (m *CheckIPRequest) GetK8SPodNamespace() string
- func (m *CheckIPRequest) GetNetns() string
- func (m *CheckIPRequest) GetNetworkInfo() isCheckIPRequest_NetworkInfo
- func (*CheckIPRequest) ProtoMessage()
- func (m *CheckIPRequest) Reset()
- func (m *CheckIPRequest) String() string
- func (m *CheckIPRequest) XXX_DiscardUnknown()
- func (m *CheckIPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CheckIPRequest) XXX_Merge(src proto.Message)
- func (*CheckIPRequest) XXX_OneofWrappers() []interface{}
- func (m *CheckIPRequest) XXX_Size() int
- func (m *CheckIPRequest) XXX_Unmarshal(b []byte) error
- type CheckIPRequest_CrossVPCENI
- type CheckIPRequest_ENIMultiIP
- type CrossVPCENIReply
- func (*CrossVPCENIReply) Descriptor() ([]byte, []int)
- func (m *CrossVPCENIReply) GetDefaultRouteExcludedCidrs() []string
- func (m *CrossVPCENIReply) GetDefaultRouteInterfaceDelegation() string
- func (m *CrossVPCENIReply) GetIP() string
- func (m *CrossVPCENIReply) GetMac() string
- func (m *CrossVPCENIReply) GetVPCCIDR() string
- func (*CrossVPCENIReply) ProtoMessage()
- func (m *CrossVPCENIReply) Reset()
- func (m *CrossVPCENIReply) String() string
- func (m *CrossVPCENIReply) XXX_DiscardUnknown()
- func (m *CrossVPCENIReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CrossVPCENIReply) XXX_Merge(src proto.Message)
- func (m *CrossVPCENIReply) XXX_Size() int
- func (m *CrossVPCENIReply) XXX_Unmarshal(b []byte) error
- type CrossVPCENIRequest
- func (*CrossVPCENIRequest) Descriptor() ([]byte, []int)
- func (*CrossVPCENIRequest) ProtoMessage()
- func (m *CrossVPCENIRequest) Reset()
- func (m *CrossVPCENIRequest) String() string
- func (m *CrossVPCENIRequest) XXX_DiscardUnknown()
- func (m *CrossVPCENIRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CrossVPCENIRequest) XXX_Merge(src proto.Message)
- func (m *CrossVPCENIRequest) XXX_Size() int
- func (m *CrossVPCENIRequest) XXX_Unmarshal(b []byte) error
- type ENIMultiIPReply
- func (*ENIMultiIPReply) Descriptor() ([]byte, []int)
- func (m *ENIMultiIPReply) GetENIID() string
- func (m *ENIMultiIPReply) GetEnableFixIP() string
- func (m *ENIMultiIPReply) GetFixIPDeletePolicy() string
- func (m *ENIMultiIPReply) GetGw() string
- func (m *ENIMultiIPReply) GetIP() string
- func (m *ENIMultiIPReply) GetMac() string
- func (m *ENIMultiIPReply) GetNode() string
- func (m *ENIMultiIPReply) GetSubnetID() string
- func (m *ENIMultiIPReply) GetType() string
- func (*ENIMultiIPReply) ProtoMessage()
- func (m *ENIMultiIPReply) Reset()
- func (m *ENIMultiIPReply) String() string
- func (m *ENIMultiIPReply) XXX_DiscardUnknown()
- func (m *ENIMultiIPReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ENIMultiIPReply) XXX_Merge(src proto.Message)
- func (m *ENIMultiIPReply) XXX_Size() int
- func (m *ENIMultiIPReply) XXX_Unmarshal(b []byte) error
- type ENIMultiIPRequest
- func (*ENIMultiIPRequest) Descriptor() ([]byte, []int)
- func (m *ENIMultiIPRequest) GetMac() string
- func (*ENIMultiIPRequest) ProtoMessage()
- func (m *ENIMultiIPRequest) Reset()
- func (m *ENIMultiIPRequest) String() string
- func (m *ENIMultiIPRequest) XXX_DiscardUnknown()
- func (m *ENIMultiIPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ENIMultiIPRequest) XXX_Merge(src proto.Message)
- func (m *ENIMultiIPRequest) XXX_Size() int
- func (m *ENIMultiIPRequest) XXX_Unmarshal(b []byte) error
- type IPType
- type ReleaseIPReply
- func (*ReleaseIPReply) Descriptor() ([]byte, []int)
- func (m *ReleaseIPReply) GetCrossVPCENI() *CrossVPCENIReply
- func (m *ReleaseIPReply) GetENIMultiIP() *ENIMultiIPReply
- func (m *ReleaseIPReply) GetErrMsg() string
- func (m *ReleaseIPReply) GetIPType() IPType
- func (m *ReleaseIPReply) GetIsSuccess() bool
- func (m *ReleaseIPReply) GetNetworkInfo() isReleaseIPReply_NetworkInfo
- func (*ReleaseIPReply) ProtoMessage()
- func (m *ReleaseIPReply) Reset()
- func (m *ReleaseIPReply) String() string
- func (m *ReleaseIPReply) XXX_DiscardUnknown()
- func (m *ReleaseIPReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReleaseIPReply) XXX_Merge(src proto.Message)
- func (*ReleaseIPReply) XXX_OneofWrappers() []interface{}
- func (m *ReleaseIPReply) XXX_Size() int
- func (m *ReleaseIPReply) XXX_Unmarshal(b []byte) error
- type ReleaseIPReply_CrossVPCENI
- type ReleaseIPReply_ENIMultiIP
- type ReleaseIPRequest
- func (*ReleaseIPRequest) Descriptor() ([]byte, []int)
- func (m *ReleaseIPRequest) GetCrossVPCENI() *CrossVPCENIRequest
- func (m *ReleaseIPRequest) GetENIMultiIP() *ENIMultiIPRequest
- func (m *ReleaseIPRequest) GetIPType() IPType
- func (m *ReleaseIPRequest) GetIfName() string
- func (m *ReleaseIPRequest) GetK8SNodeName() string
- func (m *ReleaseIPRequest) GetK8SPodInfraContainerID() string
- func (m *ReleaseIPRequest) GetK8SPodName() string
- func (m *ReleaseIPRequest) GetK8SPodNamespace() string
- func (m *ReleaseIPRequest) GetNetns() string
- func (m *ReleaseIPRequest) GetNetworkInfo() isReleaseIPRequest_NetworkInfo
- func (*ReleaseIPRequest) ProtoMessage()
- func (m *ReleaseIPRequest) Reset()
- func (m *ReleaseIPRequest) String() string
- func (m *ReleaseIPRequest) XXX_DiscardUnknown()
- func (m *ReleaseIPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReleaseIPRequest) XXX_Merge(src proto.Message)
- func (*ReleaseIPRequest) XXX_OneofWrappers() []interface{}
- func (m *ReleaseIPRequest) XXX_Size() int
- func (m *ReleaseIPRequest) XXX_Unmarshal(b []byte) error
- type ReleaseIPRequest_CrossVPCENI
- type ReleaseIPRequest_ENIMultiIP
- type UnimplementedCNIBackendServer
- func (*UnimplementedCNIBackendServer) AllocateIP(ctx context.Context, req *AllocateIPRequest) (*AllocateIPReply, error)
- func (*UnimplementedCNIBackendServer) CheckIP(ctx context.Context, req *CheckIPRequest) (*CheckIPReply, error)
- func (*UnimplementedCNIBackendServer) ReleaseIP(ctx context.Context, req *ReleaseIPRequest) (*ReleaseIPReply, error)
Constants ¶
This section is empty.
Variables ¶
var IPType_name = map[int32]string{
0: "BCCMultiENIMultiIPType",
1: "BBCPrimaryENIMultiIPType",
2: "CrossVPCENIIPType",
3: "RoceENIMultiIPType",
4: "ERIENIMultiIPType",
}
var IPType_value = map[string]int32{
"BCCMultiENIMultiIPType": 0,
"BBCPrimaryENIMultiIPType": 1,
"CrossVPCENIIPType": 2,
"RoceENIMultiIPType": 3,
"ERIENIMultiIPType": 4,
}
Functions ¶
func RegisterCNIBackendServer ¶
func RegisterCNIBackendServer(s *grpc.Server, srv CNIBackendServer)
Types ¶
type AllocateIPReply ¶
type AllocateIPReply struct { IsSuccess bool `protobuf:"varint,1,opt,name=IsSuccess,proto3" json:"IsSuccess,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=ErrMsg,proto3" json:"ErrMsg,omitempty"` IPType IPType `protobuf:"varint,3,opt,name=IPType,proto3,enum=rpc.IPType" json:"IPType,omitempty"` // Types that are valid to be assigned to NetworkInfo: // *AllocateIPReply_ENIMultiIP // *AllocateIPReply_CrossVPCENI NetworkInfo isAllocateIPReply_NetworkInfo `protobuf_oneof:"NetworkInfo"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AllocateIPReply) Descriptor ¶
func (*AllocateIPReply) Descriptor() ([]byte, []int)
func (*AllocateIPReply) GetCrossVPCENI ¶
func (m *AllocateIPReply) GetCrossVPCENI() *CrossVPCENIReply
func (*AllocateIPReply) GetENIMultiIP ¶
func (m *AllocateIPReply) GetENIMultiIP() *ENIMultiIPReply
func (*AllocateIPReply) GetErrMsg ¶
func (m *AllocateIPReply) GetErrMsg() string
func (*AllocateIPReply) GetIPType ¶
func (m *AllocateIPReply) GetIPType() IPType
func (*AllocateIPReply) GetIsSuccess ¶
func (m *AllocateIPReply) GetIsSuccess() bool
func (*AllocateIPReply) GetNetworkInfo ¶
func (m *AllocateIPReply) GetNetworkInfo() isAllocateIPReply_NetworkInfo
func (*AllocateIPReply) ProtoMessage ¶
func (*AllocateIPReply) ProtoMessage()
func (*AllocateIPReply) Reset ¶
func (m *AllocateIPReply) Reset()
func (*AllocateIPReply) String ¶
func (m *AllocateIPReply) String() string
func (*AllocateIPReply) XXX_DiscardUnknown ¶
func (m *AllocateIPReply) XXX_DiscardUnknown()
func (*AllocateIPReply) XXX_Marshal ¶
func (m *AllocateIPReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AllocateIPReply) XXX_Merge ¶
func (m *AllocateIPReply) XXX_Merge(src proto.Message)
func (*AllocateIPReply) XXX_OneofWrappers ¶
func (*AllocateIPReply) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*AllocateIPReply) XXX_Size ¶
func (m *AllocateIPReply) XXX_Size() int
func (*AllocateIPReply) XXX_Unmarshal ¶
func (m *AllocateIPReply) XXX_Unmarshal(b []byte) error
type AllocateIPReply_CrossVPCENI ¶
type AllocateIPReply_CrossVPCENI struct {
CrossVPCENI *CrossVPCENIReply `protobuf:"bytes,5,opt,name=CrossVPCENI,proto3,oneof"`
}
type AllocateIPReply_ENIMultiIP ¶
type AllocateIPReply_ENIMultiIP struct {
ENIMultiIP *ENIMultiIPReply `protobuf:"bytes,4,opt,name=ENIMultiIP,proto3,oneof"`
}
type AllocateIPRequest ¶
type AllocateIPRequest struct { K8SPodName string `protobuf:"bytes,1,opt,name=K8sPodName,proto3" json:"K8sPodName,omitempty"` K8SPodNamespace string `protobuf:"bytes,2,opt,name=K8sPodNamespace,proto3" json:"K8sPodNamespace,omitempty"` K8SPodInfraContainerID string `protobuf:"bytes,3,opt,name=K8sPodInfraContainerID,proto3" json:"K8sPodInfraContainerID,omitempty"` Netns string `protobuf:"bytes,4,opt,name=Netns,proto3" json:"Netns,omitempty"` IfName string `protobuf:"bytes,5,opt,name=IfName,proto3" json:"IfName,omitempty"` K8SNodeName string `protobuf:"bytes,6,opt,name=K8sNodeName,proto3" json:"K8sNodeName,omitempty"` IPType IPType `protobuf:"varint,7,opt,name=IPType,proto3,enum=rpc.IPType" json:"IPType,omitempty"` // Types that are valid to be assigned to NetworkInfo: // *AllocateIPRequest_ENIMultiIP // *AllocateIPRequest_CrossVPCENI NetworkInfo isAllocateIPRequest_NetworkInfo `protobuf_oneof:"NetworkInfo"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AllocateIPRequest) Descriptor ¶
func (*AllocateIPRequest) Descriptor() ([]byte, []int)
func (*AllocateIPRequest) GetCrossVPCENI ¶
func (m *AllocateIPRequest) GetCrossVPCENI() *CrossVPCENIRequest
func (*AllocateIPRequest) GetENIMultiIP ¶
func (m *AllocateIPRequest) GetENIMultiIP() *ENIMultiIPRequest
func (*AllocateIPRequest) GetIPType ¶
func (m *AllocateIPRequest) GetIPType() IPType
func (*AllocateIPRequest) GetIfName ¶
func (m *AllocateIPRequest) GetIfName() string
func (*AllocateIPRequest) GetK8SNodeName ¶
func (m *AllocateIPRequest) GetK8SNodeName() string
func (*AllocateIPRequest) GetK8SPodInfraContainerID ¶
func (m *AllocateIPRequest) GetK8SPodInfraContainerID() string
func (*AllocateIPRequest) GetK8SPodName ¶
func (m *AllocateIPRequest) GetK8SPodName() string
func (*AllocateIPRequest) GetK8SPodNamespace ¶
func (m *AllocateIPRequest) GetK8SPodNamespace() string
func (*AllocateIPRequest) GetNetns ¶
func (m *AllocateIPRequest) GetNetns() string
func (*AllocateIPRequest) GetNetworkInfo ¶
func (m *AllocateIPRequest) GetNetworkInfo() isAllocateIPRequest_NetworkInfo
func (*AllocateIPRequest) ProtoMessage ¶
func (*AllocateIPRequest) ProtoMessage()
func (*AllocateIPRequest) Reset ¶
func (m *AllocateIPRequest) Reset()
func (*AllocateIPRequest) String ¶
func (m *AllocateIPRequest) String() string
func (*AllocateIPRequest) XXX_DiscardUnknown ¶
func (m *AllocateIPRequest) XXX_DiscardUnknown()
func (*AllocateIPRequest) XXX_Marshal ¶
func (m *AllocateIPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AllocateIPRequest) XXX_Merge ¶
func (m *AllocateIPRequest) XXX_Merge(src proto.Message)
func (*AllocateIPRequest) XXX_OneofWrappers ¶
func (*AllocateIPRequest) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*AllocateIPRequest) XXX_Size ¶
func (m *AllocateIPRequest) XXX_Size() int
func (*AllocateIPRequest) XXX_Unmarshal ¶
func (m *AllocateIPRequest) XXX_Unmarshal(b []byte) error
type AllocateIPRequest_CrossVPCENI ¶
type AllocateIPRequest_CrossVPCENI struct {
CrossVPCENI *CrossVPCENIRequest `protobuf:"bytes,9,opt,name=CrossVPCENI,proto3,oneof"`
}
type AllocateIPRequest_ENIMultiIP ¶
type AllocateIPRequest_ENIMultiIP struct {
ENIMultiIP *ENIMultiIPRequest `protobuf:"bytes,8,opt,name=ENIMultiIP,proto3,oneof"`
}
type CNIBackendClient ¶
type CNIBackendClient interface { AllocateIP(ctx context.Context, in *AllocateIPRequest, opts ...grpc.CallOption) (*AllocateIPReply, error) ReleaseIP(ctx context.Context, in *ReleaseIPRequest, opts ...grpc.CallOption) (*ReleaseIPReply, error) CheckIP(ctx context.Context, in *CheckIPRequest, opts ...grpc.CallOption) (*CheckIPReply, error) }
CNIBackendClient is the client API for CNIBackend service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCNIBackendClient ¶
func NewCNIBackendClient(cc *grpc.ClientConn) CNIBackendClient
type CNIBackendServer ¶
type CNIBackendServer interface { AllocateIP(context.Context, *AllocateIPRequest) (*AllocateIPReply, error) ReleaseIP(context.Context, *ReleaseIPRequest) (*ReleaseIPReply, error) CheckIP(context.Context, *CheckIPRequest) (*CheckIPReply, error) }
CNIBackendServer is the server API for CNIBackend service.
type CheckIPReply ¶
type CheckIPReply struct { IsSuccess bool `protobuf:"varint,1,opt,name=IsSuccess,proto3" json:"IsSuccess,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=ErrMsg,proto3" json:"ErrMsg,omitempty"` IPType IPType `protobuf:"varint,3,opt,name=IPType,proto3,enum=rpc.IPType" json:"IPType,omitempty"` // Types that are valid to be assigned to NetworkInfo: // *CheckIPReply_ENIMultiIP // *CheckIPReply_CrossVPCENI NetworkInfo isCheckIPReply_NetworkInfo `protobuf_oneof:"NetworkInfo"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CheckIPReply) Descriptor ¶
func (*CheckIPReply) Descriptor() ([]byte, []int)
func (*CheckIPReply) GetCrossVPCENI ¶
func (m *CheckIPReply) GetCrossVPCENI() *CrossVPCENIReply
func (*CheckIPReply) GetENIMultiIP ¶
func (m *CheckIPReply) GetENIMultiIP() *ENIMultiIPReply
func (*CheckIPReply) GetErrMsg ¶
func (m *CheckIPReply) GetErrMsg() string
func (*CheckIPReply) GetIPType ¶
func (m *CheckIPReply) GetIPType() IPType
func (*CheckIPReply) GetIsSuccess ¶
func (m *CheckIPReply) GetIsSuccess() bool
func (*CheckIPReply) GetNetworkInfo ¶
func (m *CheckIPReply) GetNetworkInfo() isCheckIPReply_NetworkInfo
func (*CheckIPReply) ProtoMessage ¶
func (*CheckIPReply) ProtoMessage()
func (*CheckIPReply) Reset ¶
func (m *CheckIPReply) Reset()
func (*CheckIPReply) String ¶
func (m *CheckIPReply) String() string
func (*CheckIPReply) XXX_DiscardUnknown ¶
func (m *CheckIPReply) XXX_DiscardUnknown()
func (*CheckIPReply) XXX_Marshal ¶
func (m *CheckIPReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CheckIPReply) XXX_Merge ¶
func (m *CheckIPReply) XXX_Merge(src proto.Message)
func (*CheckIPReply) XXX_OneofWrappers ¶
func (*CheckIPReply) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*CheckIPReply) XXX_Size ¶
func (m *CheckIPReply) XXX_Size() int
func (*CheckIPReply) XXX_Unmarshal ¶
func (m *CheckIPReply) XXX_Unmarshal(b []byte) error
type CheckIPReply_CrossVPCENI ¶
type CheckIPReply_CrossVPCENI struct {
CrossVPCENI *CrossVPCENIReply `protobuf:"bytes,5,opt,name=CrossVPCENI,proto3,oneof"`
}
type CheckIPReply_ENIMultiIP ¶
type CheckIPReply_ENIMultiIP struct {
ENIMultiIP *ENIMultiIPReply `protobuf:"bytes,4,opt,name=ENIMultiIP,proto3,oneof"`
}
type CheckIPRequest ¶
type CheckIPRequest struct { K8SPodName string `protobuf:"bytes,1,opt,name=K8sPodName,proto3" json:"K8sPodName,omitempty"` K8SPodNamespace string `protobuf:"bytes,2,opt,name=K8sPodNamespace,proto3" json:"K8sPodNamespace,omitempty"` K8SPodInfraContainerID string `protobuf:"bytes,3,opt,name=K8sPodInfraContainerID,proto3" json:"K8sPodInfraContainerID,omitempty"` Netns string `protobuf:"bytes,4,opt,name=Netns,proto3" json:"Netns,omitempty"` IfName string `protobuf:"bytes,5,opt,name=IfName,proto3" json:"IfName,omitempty"` K8SNodeName string `protobuf:"bytes,6,opt,name=K8sNodeName,proto3" json:"K8sNodeName,omitempty"` // Types that are valid to be assigned to NetworkInfo: // *CheckIPRequest_ENIMultiIP // *CheckIPRequest_CrossVPCENI NetworkInfo isCheckIPRequest_NetworkInfo `protobuf_oneof:"NetworkInfo"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CheckIPRequest) Descriptor ¶
func (*CheckIPRequest) Descriptor() ([]byte, []int)
func (*CheckIPRequest) GetCrossVPCENI ¶
func (m *CheckIPRequest) GetCrossVPCENI() *CrossVPCENIRequest
func (*CheckIPRequest) GetENIMultiIP ¶
func (m *CheckIPRequest) GetENIMultiIP() *ENIMultiIPRequest
func (*CheckIPRequest) GetIfName ¶
func (m *CheckIPRequest) GetIfName() string
func (*CheckIPRequest) GetK8SNodeName ¶
func (m *CheckIPRequest) GetK8SNodeName() string
func (*CheckIPRequest) GetK8SPodInfraContainerID ¶
func (m *CheckIPRequest) GetK8SPodInfraContainerID() string
func (*CheckIPRequest) GetK8SPodName ¶
func (m *CheckIPRequest) GetK8SPodName() string
func (*CheckIPRequest) GetK8SPodNamespace ¶
func (m *CheckIPRequest) GetK8SPodNamespace() string
func (*CheckIPRequest) GetNetns ¶
func (m *CheckIPRequest) GetNetns() string
func (*CheckIPRequest) GetNetworkInfo ¶
func (m *CheckIPRequest) GetNetworkInfo() isCheckIPRequest_NetworkInfo
func (*CheckIPRequest) ProtoMessage ¶
func (*CheckIPRequest) ProtoMessage()
func (*CheckIPRequest) Reset ¶
func (m *CheckIPRequest) Reset()
func (*CheckIPRequest) String ¶
func (m *CheckIPRequest) String() string
func (*CheckIPRequest) XXX_DiscardUnknown ¶
func (m *CheckIPRequest) XXX_DiscardUnknown()
func (*CheckIPRequest) XXX_Marshal ¶
func (m *CheckIPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CheckIPRequest) XXX_Merge ¶
func (m *CheckIPRequest) XXX_Merge(src proto.Message)
func (*CheckIPRequest) XXX_OneofWrappers ¶
func (*CheckIPRequest) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*CheckIPRequest) XXX_Size ¶
func (m *CheckIPRequest) XXX_Size() int
func (*CheckIPRequest) XXX_Unmarshal ¶
func (m *CheckIPRequest) XXX_Unmarshal(b []byte) error
type CheckIPRequest_CrossVPCENI ¶
type CheckIPRequest_CrossVPCENI struct {
CrossVPCENI *CrossVPCENIRequest `protobuf:"bytes,8,opt,name=CrossVPCENI,proto3,oneof"`
}
type CheckIPRequest_ENIMultiIP ¶
type CheckIPRequest_ENIMultiIP struct {
ENIMultiIP *ENIMultiIPRequest `protobuf:"bytes,7,opt,name=ENIMultiIP,proto3,oneof"`
}
type CrossVPCENIReply ¶
type CrossVPCENIReply struct { IP string `protobuf:"bytes,1,opt,name=IP,proto3" json:"IP,omitempty"` Mac string `protobuf:"bytes,2,opt,name=Mac,proto3" json:"Mac,omitempty"` VPCCIDR string `protobuf:"bytes,3,opt,name=VPCCIDR,proto3" json:"VPCCIDR,omitempty"` DefaultRouteInterfaceDelegation string `protobuf:"bytes,4,opt,name=DefaultRouteInterfaceDelegation,proto3" json:"DefaultRouteInterfaceDelegation,omitempty"` DefaultRouteExcludedCidrs []string `protobuf:"bytes,5,rep,name=DefaultRouteExcludedCidrs,proto3" json:"DefaultRouteExcludedCidrs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CrossVPCENIReply) Descriptor ¶
func (*CrossVPCENIReply) Descriptor() ([]byte, []int)
func (*CrossVPCENIReply) GetDefaultRouteExcludedCidrs ¶ added in v1.5.4
func (m *CrossVPCENIReply) GetDefaultRouteExcludedCidrs() []string
func (*CrossVPCENIReply) GetDefaultRouteInterfaceDelegation ¶ added in v1.5.4
func (m *CrossVPCENIReply) GetDefaultRouteInterfaceDelegation() string
func (*CrossVPCENIReply) GetIP ¶
func (m *CrossVPCENIReply) GetIP() string
func (*CrossVPCENIReply) GetMac ¶
func (m *CrossVPCENIReply) GetMac() string
func (*CrossVPCENIReply) GetVPCCIDR ¶
func (m *CrossVPCENIReply) GetVPCCIDR() string
func (*CrossVPCENIReply) ProtoMessage ¶
func (*CrossVPCENIReply) ProtoMessage()
func (*CrossVPCENIReply) Reset ¶
func (m *CrossVPCENIReply) Reset()
func (*CrossVPCENIReply) String ¶
func (m *CrossVPCENIReply) String() string
func (*CrossVPCENIReply) XXX_DiscardUnknown ¶
func (m *CrossVPCENIReply) XXX_DiscardUnknown()
func (*CrossVPCENIReply) XXX_Marshal ¶
func (m *CrossVPCENIReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CrossVPCENIReply) XXX_Merge ¶
func (m *CrossVPCENIReply) XXX_Merge(src proto.Message)
func (*CrossVPCENIReply) XXX_Size ¶
func (m *CrossVPCENIReply) XXX_Size() int
func (*CrossVPCENIReply) XXX_Unmarshal ¶
func (m *CrossVPCENIReply) XXX_Unmarshal(b []byte) error
type CrossVPCENIRequest ¶
type CrossVPCENIRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CrossVPCENIRequest) Descriptor ¶
func (*CrossVPCENIRequest) Descriptor() ([]byte, []int)
func (*CrossVPCENIRequest) ProtoMessage ¶
func (*CrossVPCENIRequest) ProtoMessage()
func (*CrossVPCENIRequest) Reset ¶
func (m *CrossVPCENIRequest) Reset()
func (*CrossVPCENIRequest) String ¶
func (m *CrossVPCENIRequest) String() string
func (*CrossVPCENIRequest) XXX_DiscardUnknown ¶
func (m *CrossVPCENIRequest) XXX_DiscardUnknown()
func (*CrossVPCENIRequest) XXX_Marshal ¶
func (m *CrossVPCENIRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CrossVPCENIRequest) XXX_Merge ¶
func (m *CrossVPCENIRequest) XXX_Merge(src proto.Message)
func (*CrossVPCENIRequest) XXX_Size ¶
func (m *CrossVPCENIRequest) XXX_Size() int
func (*CrossVPCENIRequest) XXX_Unmarshal ¶
func (m *CrossVPCENIRequest) XXX_Unmarshal(b []byte) error
type ENIMultiIPReply ¶
type ENIMultiIPReply struct { IP string `protobuf:"bytes,1,opt,name=IP,proto3" json:"IP,omitempty"` Type string `protobuf:"bytes,2,opt,name=Type,proto3" json:"Type,omitempty"` Mac string `protobuf:"bytes,3,opt,name=Mac,proto3" json:"Mac,omitempty"` Gw string `protobuf:"bytes,4,opt,name=Gw,proto3" json:"Gw,omitempty"` ENIID string `protobuf:"bytes,5,opt,name=ENIID,proto3" json:"ENIID,omitempty"` Node string `protobuf:"bytes,6,opt,name=Node,proto3" json:"Node,omitempty"` SubnetID string `protobuf:"bytes,7,opt,name=SubnetID,proto3" json:"SubnetID,omitempty"` EnableFixIP string `protobuf:"bytes,8,opt,name=EnableFixIP,proto3" json:"EnableFixIP,omitempty"` FixIPDeletePolicy string `protobuf:"bytes,9,opt,name=FixIPDeletePolicy,proto3" json:"FixIPDeletePolicy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ENIMultiIPReply) Descriptor ¶
func (*ENIMultiIPReply) Descriptor() ([]byte, []int)
func (*ENIMultiIPReply) GetENIID ¶
func (m *ENIMultiIPReply) GetENIID() string
func (*ENIMultiIPReply) GetEnableFixIP ¶
func (m *ENIMultiIPReply) GetEnableFixIP() string
func (*ENIMultiIPReply) GetFixIPDeletePolicy ¶
func (m *ENIMultiIPReply) GetFixIPDeletePolicy() string
func (*ENIMultiIPReply) GetGw ¶
func (m *ENIMultiIPReply) GetGw() string
func (*ENIMultiIPReply) GetIP ¶
func (m *ENIMultiIPReply) GetIP() string
func (*ENIMultiIPReply) GetMac ¶
func (m *ENIMultiIPReply) GetMac() string
func (*ENIMultiIPReply) GetNode ¶
func (m *ENIMultiIPReply) GetNode() string
func (*ENIMultiIPReply) GetSubnetID ¶
func (m *ENIMultiIPReply) GetSubnetID() string
func (*ENIMultiIPReply) GetType ¶
func (m *ENIMultiIPReply) GetType() string
func (*ENIMultiIPReply) ProtoMessage ¶
func (*ENIMultiIPReply) ProtoMessage()
func (*ENIMultiIPReply) Reset ¶
func (m *ENIMultiIPReply) Reset()
func (*ENIMultiIPReply) String ¶
func (m *ENIMultiIPReply) String() string
func (*ENIMultiIPReply) XXX_DiscardUnknown ¶
func (m *ENIMultiIPReply) XXX_DiscardUnknown()
func (*ENIMultiIPReply) XXX_Marshal ¶
func (m *ENIMultiIPReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ENIMultiIPReply) XXX_Merge ¶
func (m *ENIMultiIPReply) XXX_Merge(src proto.Message)
func (*ENIMultiIPReply) XXX_Size ¶
func (m *ENIMultiIPReply) XXX_Size() int
func (*ENIMultiIPReply) XXX_Unmarshal ¶
func (m *ENIMultiIPReply) XXX_Unmarshal(b []byte) error
type ENIMultiIPRequest ¶
type ENIMultiIPRequest struct { Mac string `protobuf:"bytes,1,opt,name=Mac,proto3" json:"Mac,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ENIMultiIPRequest) Descriptor ¶
func (*ENIMultiIPRequest) Descriptor() ([]byte, []int)
func (*ENIMultiIPRequest) GetMac ¶ added in v1.5.4
func (m *ENIMultiIPRequest) GetMac() string
func (*ENIMultiIPRequest) ProtoMessage ¶
func (*ENIMultiIPRequest) ProtoMessage()
func (*ENIMultiIPRequest) Reset ¶
func (m *ENIMultiIPRequest) Reset()
func (*ENIMultiIPRequest) String ¶
func (m *ENIMultiIPRequest) String() string
func (*ENIMultiIPRequest) XXX_DiscardUnknown ¶
func (m *ENIMultiIPRequest) XXX_DiscardUnknown()
func (*ENIMultiIPRequest) XXX_Marshal ¶
func (m *ENIMultiIPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ENIMultiIPRequest) XXX_Merge ¶
func (m *ENIMultiIPRequest) XXX_Merge(src proto.Message)
func (*ENIMultiIPRequest) XXX_Size ¶
func (m *ENIMultiIPRequest) XXX_Size() int
func (*ENIMultiIPRequest) XXX_Unmarshal ¶
func (m *ENIMultiIPRequest) XXX_Unmarshal(b []byte) error
type ReleaseIPReply ¶
type ReleaseIPReply struct { IsSuccess bool `protobuf:"varint,1,opt,name=IsSuccess,proto3" json:"IsSuccess,omitempty"` ErrMsg string `protobuf:"bytes,2,opt,name=ErrMsg,proto3" json:"ErrMsg,omitempty"` IPType IPType `protobuf:"varint,3,opt,name=IPType,proto3,enum=rpc.IPType" json:"IPType,omitempty"` // Types that are valid to be assigned to NetworkInfo: // *ReleaseIPReply_ENIMultiIP // *ReleaseIPReply_CrossVPCENI NetworkInfo isReleaseIPReply_NetworkInfo `protobuf_oneof:"NetworkInfo"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReleaseIPReply) Descriptor ¶
func (*ReleaseIPReply) Descriptor() ([]byte, []int)
func (*ReleaseIPReply) GetCrossVPCENI ¶
func (m *ReleaseIPReply) GetCrossVPCENI() *CrossVPCENIReply
func (*ReleaseIPReply) GetENIMultiIP ¶
func (m *ReleaseIPReply) GetENIMultiIP() *ENIMultiIPReply
func (*ReleaseIPReply) GetErrMsg ¶
func (m *ReleaseIPReply) GetErrMsg() string
func (*ReleaseIPReply) GetIPType ¶
func (m *ReleaseIPReply) GetIPType() IPType
func (*ReleaseIPReply) GetIsSuccess ¶
func (m *ReleaseIPReply) GetIsSuccess() bool
func (*ReleaseIPReply) GetNetworkInfo ¶
func (m *ReleaseIPReply) GetNetworkInfo() isReleaseIPReply_NetworkInfo
func (*ReleaseIPReply) ProtoMessage ¶
func (*ReleaseIPReply) ProtoMessage()
func (*ReleaseIPReply) Reset ¶
func (m *ReleaseIPReply) Reset()
func (*ReleaseIPReply) String ¶
func (m *ReleaseIPReply) String() string
func (*ReleaseIPReply) XXX_DiscardUnknown ¶
func (m *ReleaseIPReply) XXX_DiscardUnknown()
func (*ReleaseIPReply) XXX_Marshal ¶
func (m *ReleaseIPReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReleaseIPReply) XXX_Merge ¶
func (m *ReleaseIPReply) XXX_Merge(src proto.Message)
func (*ReleaseIPReply) XXX_OneofWrappers ¶
func (*ReleaseIPReply) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*ReleaseIPReply) XXX_Size ¶
func (m *ReleaseIPReply) XXX_Size() int
func (*ReleaseIPReply) XXX_Unmarshal ¶
func (m *ReleaseIPReply) XXX_Unmarshal(b []byte) error
type ReleaseIPReply_CrossVPCENI ¶
type ReleaseIPReply_CrossVPCENI struct {
CrossVPCENI *CrossVPCENIReply `protobuf:"bytes,5,opt,name=CrossVPCENI,proto3,oneof"`
}
type ReleaseIPReply_ENIMultiIP ¶
type ReleaseIPReply_ENIMultiIP struct {
ENIMultiIP *ENIMultiIPReply `protobuf:"bytes,4,opt,name=ENIMultiIP,proto3,oneof"`
}
type ReleaseIPRequest ¶
type ReleaseIPRequest struct { K8SPodName string `protobuf:"bytes,1,opt,name=K8sPodName,proto3" json:"K8sPodName,omitempty"` K8SPodNamespace string `protobuf:"bytes,2,opt,name=K8sPodNamespace,proto3" json:"K8sPodNamespace,omitempty"` K8SPodInfraContainerID string `protobuf:"bytes,3,opt,name=K8sPodInfraContainerID,proto3" json:"K8sPodInfraContainerID,omitempty"` Netns string `protobuf:"bytes,4,opt,name=Netns,proto3" json:"Netns,omitempty"` IfName string `protobuf:"bytes,5,opt,name=IfName,proto3" json:"IfName,omitempty"` K8SNodeName string `protobuf:"bytes,6,opt,name=K8sNodeName,proto3" json:"K8sNodeName,omitempty"` IPType IPType `protobuf:"varint,7,opt,name=IPType,proto3,enum=rpc.IPType" json:"IPType,omitempty"` // Types that are valid to be assigned to NetworkInfo: // *ReleaseIPRequest_ENIMultiIP // *ReleaseIPRequest_CrossVPCENI NetworkInfo isReleaseIPRequest_NetworkInfo `protobuf_oneof:"NetworkInfo"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReleaseIPRequest) Descriptor ¶
func (*ReleaseIPRequest) Descriptor() ([]byte, []int)
func (*ReleaseIPRequest) GetCrossVPCENI ¶
func (m *ReleaseIPRequest) GetCrossVPCENI() *CrossVPCENIRequest
func (*ReleaseIPRequest) GetENIMultiIP ¶
func (m *ReleaseIPRequest) GetENIMultiIP() *ENIMultiIPRequest
func (*ReleaseIPRequest) GetIPType ¶
func (m *ReleaseIPRequest) GetIPType() IPType
func (*ReleaseIPRequest) GetIfName ¶
func (m *ReleaseIPRequest) GetIfName() string
func (*ReleaseIPRequest) GetK8SNodeName ¶
func (m *ReleaseIPRequest) GetK8SNodeName() string
func (*ReleaseIPRequest) GetK8SPodInfraContainerID ¶
func (m *ReleaseIPRequest) GetK8SPodInfraContainerID() string
func (*ReleaseIPRequest) GetK8SPodName ¶
func (m *ReleaseIPRequest) GetK8SPodName() string
func (*ReleaseIPRequest) GetK8SPodNamespace ¶
func (m *ReleaseIPRequest) GetK8SPodNamespace() string
func (*ReleaseIPRequest) GetNetns ¶
func (m *ReleaseIPRequest) GetNetns() string
func (*ReleaseIPRequest) GetNetworkInfo ¶
func (m *ReleaseIPRequest) GetNetworkInfo() isReleaseIPRequest_NetworkInfo
func (*ReleaseIPRequest) ProtoMessage ¶
func (*ReleaseIPRequest) ProtoMessage()
func (*ReleaseIPRequest) Reset ¶
func (m *ReleaseIPRequest) Reset()
func (*ReleaseIPRequest) String ¶
func (m *ReleaseIPRequest) String() string
func (*ReleaseIPRequest) XXX_DiscardUnknown ¶
func (m *ReleaseIPRequest) XXX_DiscardUnknown()
func (*ReleaseIPRequest) XXX_Marshal ¶
func (m *ReleaseIPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReleaseIPRequest) XXX_Merge ¶
func (m *ReleaseIPRequest) XXX_Merge(src proto.Message)
func (*ReleaseIPRequest) XXX_OneofWrappers ¶
func (*ReleaseIPRequest) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*ReleaseIPRequest) XXX_Size ¶
func (m *ReleaseIPRequest) XXX_Size() int
func (*ReleaseIPRequest) XXX_Unmarshal ¶
func (m *ReleaseIPRequest) XXX_Unmarshal(b []byte) error
type ReleaseIPRequest_CrossVPCENI ¶
type ReleaseIPRequest_CrossVPCENI struct {
CrossVPCENI *CrossVPCENIRequest `protobuf:"bytes,9,opt,name=CrossVPCENI,proto3,oneof"`
}
type ReleaseIPRequest_ENIMultiIP ¶
type ReleaseIPRequest_ENIMultiIP struct {
ENIMultiIP *ENIMultiIPRequest `protobuf:"bytes,8,opt,name=ENIMultiIP,proto3,oneof"`
}
type UnimplementedCNIBackendServer ¶
type UnimplementedCNIBackendServer struct { }
UnimplementedCNIBackendServer can be embedded to have forward compatible implementations.
func (*UnimplementedCNIBackendServer) AllocateIP ¶
func (*UnimplementedCNIBackendServer) AllocateIP(ctx context.Context, req *AllocateIPRequest) (*AllocateIPReply, error)
func (*UnimplementedCNIBackendServer) CheckIP ¶
func (*UnimplementedCNIBackendServer) CheckIP(ctx context.Context, req *CheckIPRequest) (*CheckIPReply, error)
func (*UnimplementedCNIBackendServer) ReleaseIP ¶
func (*UnimplementedCNIBackendServer) ReleaseIP(ctx context.Context, req *ReleaseIPRequest) (*ReleaseIPReply, error)