Documentation
¶
Index ¶
- Variables
- func RegisterCNIBackendServer(s *grpc.Server, srv CNIBackendServer)
- type CNIBackendClient
- type CNIBackendServer
- type HostNic
- func (*HostNic) Descriptor() ([]byte, []int)
- func (m *HostNic) GetHardwareAddr() string
- func (m *HostNic) GetID() string
- func (m *HostNic) GetIsPrimary() bool
- func (m *HostNic) GetPhase() Phase
- func (m *HostNic) GetPrimaryAddress() string
- func (m *HostNic) GetReserved() bool
- func (m *HostNic) GetRouteTableNum() int32
- func (m *HostNic) GetStatus() Status
- func (m *HostNic) GetUsing() bool
- func (m *HostNic) GetVxNet() *VxNet
- func (m *HostNic) Marshal() (dAtA []byte, err error)
- func (m *HostNic) MarshalTo(dAtA []byte) (int, error)
- func (m *HostNic) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HostNic) ProtoMessage()
- func (m *HostNic) Reset()
- func (m *HostNic) Size() (n int)
- func (m *HostNic) String() string
- func (m *HostNic) Unmarshal(dAtA []byte) error
- func (m *HostNic) XXX_DiscardUnknown()
- func (m *HostNic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HostNic) XXX_Merge(src proto.Message)
- func (m *HostNic) XXX_Size() int
- func (m *HostNic) XXX_Unmarshal(b []byte) error
- type IPAMMessage
- func (*IPAMMessage) Descriptor() ([]byte, []int)
- func (m *IPAMMessage) GetArgs() *PodInfo
- func (m *IPAMMessage) GetDelete() bool
- func (m *IPAMMessage) GetIP() string
- func (m *IPAMMessage) GetNic() *HostNic
- func (m *IPAMMessage) GetPeek() bool
- func (m *IPAMMessage) Marshal() (dAtA []byte, err error)
- func (m *IPAMMessage) MarshalTo(dAtA []byte) (int, error)
- func (m *IPAMMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IPAMMessage) ProtoMessage()
- func (m *IPAMMessage) Reset()
- func (m *IPAMMessage) Size() (n int)
- func (m *IPAMMessage) String() string
- func (m *IPAMMessage) Unmarshal(dAtA []byte) error
- func (m *IPAMMessage) XXX_DiscardUnknown()
- func (m *IPAMMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IPAMMessage) XXX_Merge(src proto.Message)
- func (m *IPAMMessage) XXX_Size() int
- func (m *IPAMMessage) XXX_Unmarshal(b []byte) error
- type NicInfo
- func (*NicInfo) Descriptor() ([]byte, []int)
- func (m *NicInfo) GetId() string
- func (m *NicInfo) GetPhase() string
- func (m *NicInfo) GetPods() int32
- func (m *NicInfo) GetStatus() string
- func (m *NicInfo) GetVxnet() string
- func (m *NicInfo) Marshal() (dAtA []byte, err error)
- func (m *NicInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *NicInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NicInfo) ProtoMessage()
- func (m *NicInfo) Reset()
- func (m *NicInfo) Size() (n int)
- func (m *NicInfo) String() string
- func (m *NicInfo) Unmarshal(dAtA []byte) error
- func (m *NicInfo) XXX_DiscardUnknown()
- func (m *NicInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NicInfo) XXX_Merge(src proto.Message)
- func (m *NicInfo) XXX_Size() int
- func (m *NicInfo) XXX_Unmarshal(b []byte) error
- type NicInfoList
- func (*NicInfoList) Descriptor() ([]byte, []int)
- func (m *NicInfoList) GetItems() []*NicInfo
- func (m *NicInfoList) Marshal() (dAtA []byte, err error)
- func (m *NicInfoList) MarshalTo(dAtA []byte) (int, error)
- func (m *NicInfoList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NicInfoList) ProtoMessage()
- func (m *NicInfoList) Reset()
- func (m *NicInfoList) Size() (n int)
- func (m *NicInfoList) String() string
- func (m *NicInfoList) Unmarshal(dAtA []byte) error
- func (m *NicInfoList) XXX_DiscardUnknown()
- func (m *NicInfoList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NicInfoList) XXX_Merge(src proto.Message)
- func (m *NicInfoList) XXX_Size() int
- func (m *NicInfoList) XXX_Unmarshal(b []byte) error
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (m *Node) GetClusterID() string
- func (m *Node) GetHostMachine() string
- func (m *Node) GetInstanceID() string
- func (m *Node) GetNodeID() string
- func (m *Node) GetPrivateIP() string
- func (m *Node) GetStatus() string
- func (m *Node) Marshal() (dAtA []byte, err error)
- func (m *Node) MarshalTo(dAtA []byte) (int, error)
- func (m *Node) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Node) ProtoMessage()
- func (m *Node) Reset()
- func (m *Node) Size() (n int)
- func (m *Node) String() string
- func (m *Node) Unmarshal(dAtA []byte) error
- func (m *Node) XXX_DiscardUnknown()
- func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Node) XXX_Merge(src proto.Message)
- func (m *Node) XXX_Size() int
- func (m *Node) XXX_Unmarshal(b []byte) error
- type Nothing
- func (*Nothing) Descriptor() ([]byte, []int)
- func (m *Nothing) Marshal() (dAtA []byte, err error)
- func (m *Nothing) MarshalTo(dAtA []byte) (int, error)
- func (m *Nothing) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Nothing) ProtoMessage()
- func (m *Nothing) Reset()
- func (m *Nothing) Size() (n int)
- func (m *Nothing) String() string
- func (m *Nothing) Unmarshal(dAtA []byte) error
- func (m *Nothing) XXX_DiscardUnknown()
- func (m *Nothing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Nothing) XXX_Merge(src proto.Message)
- func (m *Nothing) XXX_Size() int
- func (m *Nothing) XXX_Unmarshal(b []byte) error
- type Phase
- type PodInfo
- func (*PodInfo) Descriptor() ([]byte, []int)
- func (m *PodInfo) GetContainter() string
- func (m *PodInfo) GetHostNic() string
- func (m *PodInfo) GetIfName() string
- func (m *PodInfo) GetName() string
- func (m *PodInfo) GetNamespace() string
- func (m *PodInfo) GetNetns() string
- func (m *PodInfo) GetNicType() string
- func (m *PodInfo) GetPodIP() string
- func (m *PodInfo) GetVxNet() string
- func (m *PodInfo) Marshal() (dAtA []byte, err error)
- func (m *PodInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *PodInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PodInfo) ProtoMessage()
- func (m *PodInfo) Reset()
- func (m *PodInfo) Size() (n int)
- func (m *PodInfo) String() string
- func (m *PodInfo) Unmarshal(dAtA []byte) error
- func (m *PodInfo) XXX_DiscardUnknown()
- func (m *PodInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PodInfo) XXX_Merge(src proto.Message)
- func (m *PodInfo) XXX_Size() int
- func (m *PodInfo) XXX_Unmarshal(b []byte) error
- type SecurityGroupRule
- func (*SecurityGroupRule) Descriptor() ([]byte, []int)
- func (m *SecurityGroupRule) GetAction() string
- func (m *SecurityGroupRule) GetDirection() int32
- func (m *SecurityGroupRule) GetID() string
- func (m *SecurityGroupRule) GetName() string
- func (m *SecurityGroupRule) GetPriority() int32
- func (m *SecurityGroupRule) GetProtocol() string
- func (m *SecurityGroupRule) GetSecurityGroupID() string
- func (m *SecurityGroupRule) GetVal3() string
- func (m *SecurityGroupRule) Marshal() (dAtA []byte, err error)
- func (m *SecurityGroupRule) MarshalTo(dAtA []byte) (int, error)
- func (m *SecurityGroupRule) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SecurityGroupRule) ProtoMessage()
- func (m *SecurityGroupRule) Reset()
- func (m *SecurityGroupRule) Size() (n int)
- func (m *SecurityGroupRule) String() string
- func (m *SecurityGroupRule) Unmarshal(dAtA []byte) error
- func (m *SecurityGroupRule) XXX_DiscardUnknown()
- func (m *SecurityGroupRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SecurityGroupRule) XXX_Merge(src proto.Message)
- func (m *SecurityGroupRule) XXX_Size() int
- func (m *SecurityGroupRule) XXX_Unmarshal(b []byte) error
- type Status
- type UnimplementedCNIBackendServer
- func (*UnimplementedCNIBackendServer) AddNetwork(ctx context.Context, req *IPAMMessage) (*IPAMMessage, error)
- func (*UnimplementedCNIBackendServer) ClearNics(ctx context.Context, req *Nothing) (*Nothing, error)
- func (*UnimplementedCNIBackendServer) DelNetwork(ctx context.Context, req *IPAMMessage) (*IPAMMessage, error)
- func (*UnimplementedCNIBackendServer) ShowNics(ctx context.Context, req *Nothing) (*NicInfoList, error)
- type VIP
- func (*VIP) Descriptor() ([]byte, []int)
- func (m *VIP) GetAddr() string
- func (m *VIP) GetID() string
- func (m *VIP) GetName() string
- func (m *VIP) GetVxNetID() string
- func (m *VIP) Marshal() (dAtA []byte, err error)
- func (m *VIP) MarshalTo(dAtA []byte) (int, error)
- func (m *VIP) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VIP) ProtoMessage()
- func (m *VIP) Reset()
- func (m *VIP) Size() (n int)
- func (m *VIP) String() string
- func (m *VIP) Unmarshal(dAtA []byte) error
- func (m *VIP) XXX_DiscardUnknown()
- func (m *VIP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VIP) XXX_Merge(src proto.Message)
- func (m *VIP) XXX_Size() int
- func (m *VIP) XXX_Unmarshal(b []byte) error
- type VxNet
- func (*VxNet) Descriptor() ([]byte, []int)
- func (m *VxNet) GetGateway() string
- func (m *VxNet) GetID() string
- func (m *VxNet) GetIPEnd() string
- func (m *VxNet) GetIPStart() string
- func (m *VxNet) GetNetwork() string
- func (m *VxNet) GetRouterID() string
- func (m *VxNet) Marshal() (dAtA []byte, err error)
- func (m *VxNet) MarshalTo(dAtA []byte) (int, error)
- func (m *VxNet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VxNet) ProtoMessage()
- func (m *VxNet) Reset()
- func (m *VxNet) Size() (n int)
- func (m *VxNet) String() string
- func (m *VxNet) Unmarshal(dAtA []byte) error
- func (m *VxNet) XXX_DiscardUnknown()
- func (m *VxNet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VxNet) XXX_Merge(src proto.Message)
- func (m *VxNet) XXX_Size() int
- func (m *VxNet) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthMessage = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMessage = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMessage = fmt.Errorf("proto: unexpected end of group") )
View Source
var Phase_name = map[int32]string{
0: "Init",
1: "CreateAndAttach",
2: "JoinBridge",
3: "SetRouteTable",
4: "Succeeded",
}
View Source
var Phase_value = map[string]int32{
"Init": 0,
"CreateAndAttach": 1,
"JoinBridge": 2,
"SetRouteTable": 3,
"Succeeded": 4,
}
View Source
var Status_name = map[int32]string{
0: "FREE",
1: "USING",
2: "DELETING",
3: "ERROR",
4: "DELETED",
}
View Source
var Status_value = map[string]int32{
"FREE": 0,
"USING": 1,
"DELETING": 2,
"ERROR": 3,
"DELETED": 4,
}
Functions ¶
func RegisterCNIBackendServer ¶
func RegisterCNIBackendServer(s *grpc.Server, srv CNIBackendServer)
Types ¶
type CNIBackendClient ¶
type CNIBackendClient interface {
AddNetwork(ctx context.Context, in *IPAMMessage, opts ...grpc.CallOption) (*IPAMMessage, error)
DelNetwork(ctx context.Context, in *IPAMMessage, opts ...grpc.CallOption) (*IPAMMessage, error)
ShowNics(ctx context.Context, in *Nothing, opts ...grpc.CallOption) (*NicInfoList, error)
ClearNics(ctx context.Context, in *Nothing, opts ...grpc.CallOption) (*Nothing, 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 {
AddNetwork(context.Context, *IPAMMessage) (*IPAMMessage, error)
DelNetwork(context.Context, *IPAMMessage) (*IPAMMessage, error)
ShowNics(context.Context, *Nothing) (*NicInfoList, error)
ClearNics(context.Context, *Nothing) (*Nothing, error)
}
CNIBackendServer is the server API for CNIBackend service.
type HostNic ¶
type HostNic struct {
VxNet *VxNet `protobuf:"bytes,1,opt,name=VxNet,proto3" json:"VxNet,omitempty"`
ID string `protobuf:"bytes,2,opt,name=ID,proto3" json:"ID,omitempty"`
HardwareAddr string `protobuf:"bytes,3,opt,name=HardwareAddr,proto3" json:"HardwareAddr,omitempty"`
PrimaryAddress string `protobuf:"bytes,4,opt,name=PrimaryAddress,proto3" json:"PrimaryAddress,omitempty"`
IsPrimary bool `protobuf:"varint,5,opt,name=IsPrimary,proto3" json:"IsPrimary,omitempty"`
Using bool `protobuf:"varint,6,opt,name=Using,proto3" json:"Using,omitempty"`
Reserved bool `protobuf:"varint,7,opt,name=Reserved,proto3" json:"Reserved,omitempty"`
RouteTableNum int32 `protobuf:"varint,8,opt,name=RouteTableNum,proto3" json:"RouteTableNum,omitempty"`
Status Status `protobuf:"varint,9,opt,name=Status,proto3,enum=rpc.Status" json:"Status,omitempty"`
Phase Phase `protobuf:"varint,10,opt,name=Phase,proto3,enum=rpc.Phase" json:"Phase,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*HostNic) Descriptor ¶
func (*HostNic) GetHardwareAddr ¶
func (*HostNic) GetIsPrimary ¶
func (*HostNic) GetPrimaryAddress ¶
func (*HostNic) GetReserved ¶
func (*HostNic) GetRouteTableNum ¶
func (*HostNic) MarshalToSizedBuffer ¶
func (*HostNic) ProtoMessage ¶
func (*HostNic) ProtoMessage()
func (*HostNic) XXX_DiscardUnknown ¶
func (m *HostNic) XXX_DiscardUnknown()
func (*HostNic) XXX_Marshal ¶
func (*HostNic) XXX_Unmarshal ¶
type IPAMMessage ¶
type IPAMMessage struct {
Args *PodInfo `protobuf:"bytes,1,opt,name=Args,proto3" json:"Args,omitempty"`
Nic *HostNic `protobuf:"bytes,2,opt,name=Nic,proto3" json:"Nic,omitempty"`
Peek bool `protobuf:"varint,3,opt,name=Peek,proto3" json:"Peek,omitempty"`
Delete bool `protobuf:"varint,4,opt,name=Delete,proto3" json:"Delete,omitempty"`
IP string `protobuf:"bytes,5,opt,name=IP,proto3" json:"IP,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*IPAMMessage) Descriptor ¶
func (*IPAMMessage) Descriptor() ([]byte, []int)
func (*IPAMMessage) GetArgs ¶
func (m *IPAMMessage) GetArgs() *PodInfo
func (*IPAMMessage) GetDelete ¶
func (m *IPAMMessage) GetDelete() bool
func (*IPAMMessage) GetIP ¶
func (m *IPAMMessage) GetIP() string
func (*IPAMMessage) GetNic ¶
func (m *IPAMMessage) GetNic() *HostNic
func (*IPAMMessage) GetPeek ¶
func (m *IPAMMessage) GetPeek() bool
func (*IPAMMessage) Marshal ¶
func (m *IPAMMessage) Marshal() (dAtA []byte, err error)
func (*IPAMMessage) MarshalToSizedBuffer ¶
func (m *IPAMMessage) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IPAMMessage) ProtoMessage ¶
func (*IPAMMessage) ProtoMessage()
func (*IPAMMessage) Reset ¶
func (m *IPAMMessage) Reset()
func (*IPAMMessage) Size ¶
func (m *IPAMMessage) Size() (n int)
func (*IPAMMessage) String ¶
func (m *IPAMMessage) String() string
func (*IPAMMessage) Unmarshal ¶
func (m *IPAMMessage) Unmarshal(dAtA []byte) error
func (*IPAMMessage) XXX_DiscardUnknown ¶
func (m *IPAMMessage) XXX_DiscardUnknown()
func (*IPAMMessage) XXX_Marshal ¶
func (m *IPAMMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IPAMMessage) XXX_Merge ¶
func (m *IPAMMessage) XXX_Merge(src proto.Message)
func (*IPAMMessage) XXX_Size ¶
func (m *IPAMMessage) XXX_Size() int
func (*IPAMMessage) XXX_Unmarshal ¶
func (m *IPAMMessage) XXX_Unmarshal(b []byte) error
type NicInfo ¶
type NicInfo struct {
Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
Vxnet string `protobuf:"bytes,2,opt,name=Vxnet,proto3" json:"Vxnet,omitempty"`
Phase string `protobuf:"bytes,3,opt,name=Phase,proto3" json:"Phase,omitempty"`
Status string `protobuf:"bytes,4,opt,name=Status,proto3" json:"Status,omitempty"`
Pods int32 `protobuf:"varint,5,opt,name=Pods,proto3" json:"Pods,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*NicInfo) Descriptor ¶
func (*NicInfo) MarshalToSizedBuffer ¶
func (*NicInfo) ProtoMessage ¶
func (*NicInfo) ProtoMessage()
func (*NicInfo) XXX_DiscardUnknown ¶
func (m *NicInfo) XXX_DiscardUnknown()
func (*NicInfo) XXX_Marshal ¶
func (*NicInfo) XXX_Unmarshal ¶
type NicInfoList ¶
type NicInfoList struct {
Items []*NicInfo `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*NicInfoList) Descriptor ¶
func (*NicInfoList) Descriptor() ([]byte, []int)
func (*NicInfoList) GetItems ¶
func (m *NicInfoList) GetItems() []*NicInfo
func (*NicInfoList) Marshal ¶
func (m *NicInfoList) Marshal() (dAtA []byte, err error)
func (*NicInfoList) MarshalToSizedBuffer ¶
func (m *NicInfoList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*NicInfoList) ProtoMessage ¶
func (*NicInfoList) ProtoMessage()
func (*NicInfoList) Reset ¶
func (m *NicInfoList) Reset()
func (*NicInfoList) Size ¶
func (m *NicInfoList) Size() (n int)
func (*NicInfoList) String ¶
func (m *NicInfoList) String() string
func (*NicInfoList) Unmarshal ¶
func (m *NicInfoList) Unmarshal(dAtA []byte) error
func (*NicInfoList) XXX_DiscardUnknown ¶
func (m *NicInfoList) XXX_DiscardUnknown()
func (*NicInfoList) XXX_Marshal ¶
func (m *NicInfoList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NicInfoList) XXX_Merge ¶
func (m *NicInfoList) XXX_Merge(src proto.Message)
func (*NicInfoList) XXX_Size ¶
func (m *NicInfoList) XXX_Size() int
func (*NicInfoList) XXX_Unmarshal ¶
func (m *NicInfoList) XXX_Unmarshal(b []byte) error
type Node ¶
type Node struct {
InstanceID string `protobuf:"bytes,1,opt,name=InstanceID,proto3" json:"InstanceID,omitempty"`
NodeID string `protobuf:"bytes,2,opt,name=NodeID,proto3" json:"NodeID,omitempty"`
HostMachine string `protobuf:"bytes,3,opt,name=HostMachine,proto3" json:"HostMachine,omitempty"`
PrivateIP string `protobuf:"bytes,4,opt,name=PrivateIP,proto3" json:"PrivateIP,omitempty"`
ClusterID string `protobuf:"bytes,5,opt,name=ClusterID,proto3" json:"ClusterID,omitempty"`
Status string `protobuf:"bytes,6,opt,name=Status,proto3" json:"Status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Node) Descriptor ¶
func (*Node) GetClusterID ¶
func (*Node) GetHostMachine ¶
func (*Node) GetInstanceID ¶
func (*Node) GetPrivateIP ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) XXX_DiscardUnknown ¶
func (m *Node) XXX_DiscardUnknown()
func (*Node) XXX_Unmarshal ¶
type Nothing ¶
type Nothing struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Nothing) Descriptor ¶
func (*Nothing) MarshalToSizedBuffer ¶
func (*Nothing) ProtoMessage ¶
func (*Nothing) ProtoMessage()
func (*Nothing) XXX_DiscardUnknown ¶
func (m *Nothing) XXX_DiscardUnknown()
func (*Nothing) XXX_Marshal ¶
func (*Nothing) XXX_Unmarshal ¶
type PodInfo ¶
type PodInfo 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"`
Containter string `protobuf:"bytes,3,opt,name=Containter,proto3" json:"Containter,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"`
NicType string `protobuf:"bytes,6,opt,name=NicType,proto3" json:"NicType,omitempty"`
PodIP string `protobuf:"bytes,7,opt,name=PodIP,proto3" json:"PodIP,omitempty"`
HostNic string `protobuf:"bytes,8,opt,name=HostNic,proto3" json:"HostNic,omitempty"`
VxNet string `protobuf:"bytes,9,opt,name=VxNet,proto3" json:"VxNet,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*PodInfo) Descriptor ¶
func (*PodInfo) GetContainter ¶
func (*PodInfo) GetHostNic ¶
func (*PodInfo) GetNamespace ¶
func (*PodInfo) GetNicType ¶
func (*PodInfo) MarshalToSizedBuffer ¶
func (*PodInfo) ProtoMessage ¶
func (*PodInfo) ProtoMessage()
func (*PodInfo) XXX_DiscardUnknown ¶
func (m *PodInfo) XXX_DiscardUnknown()
func (*PodInfo) XXX_Marshal ¶
func (*PodInfo) XXX_Unmarshal ¶
type SecurityGroupRule ¶
type SecurityGroupRule struct {
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
SecurityGroupID string `protobuf:"bytes,3,opt,name=SecurityGroupID,proto3" json:"SecurityGroupID,omitempty"`
Action string `protobuf:"bytes,4,opt,name=Action,proto3" json:"Action,omitempty"`
Protocol string `protobuf:"bytes,7,opt,name=Protocol,proto3" json:"Protocol,omitempty"`
Val3 string `protobuf:"bytes,8,opt,name=Val3,proto3" json:"Val3,omitempty"`
Direction int32 `protobuf:"varint,5,opt,name=Direction,proto3" json:"Direction,omitempty"`
Priority int32 `protobuf:"varint,6,opt,name=Priority,proto3" json:"Priority,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*SecurityGroupRule) Descriptor ¶
func (*SecurityGroupRule) Descriptor() ([]byte, []int)
func (*SecurityGroupRule) GetAction ¶
func (m *SecurityGroupRule) GetAction() string
func (*SecurityGroupRule) GetDirection ¶
func (m *SecurityGroupRule) GetDirection() int32
func (*SecurityGroupRule) GetID ¶
func (m *SecurityGroupRule) GetID() string
func (*SecurityGroupRule) GetName ¶
func (m *SecurityGroupRule) GetName() string
func (*SecurityGroupRule) GetPriority ¶
func (m *SecurityGroupRule) GetPriority() int32
func (*SecurityGroupRule) GetProtocol ¶
func (m *SecurityGroupRule) GetProtocol() string
func (*SecurityGroupRule) GetSecurityGroupID ¶
func (m *SecurityGroupRule) GetSecurityGroupID() string
func (*SecurityGroupRule) GetVal3 ¶
func (m *SecurityGroupRule) GetVal3() string
func (*SecurityGroupRule) Marshal ¶
func (m *SecurityGroupRule) Marshal() (dAtA []byte, err error)
func (*SecurityGroupRule) MarshalTo ¶
func (m *SecurityGroupRule) MarshalTo(dAtA []byte) (int, error)
func (*SecurityGroupRule) MarshalToSizedBuffer ¶
func (m *SecurityGroupRule) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SecurityGroupRule) ProtoMessage ¶
func (*SecurityGroupRule) ProtoMessage()
func (*SecurityGroupRule) Reset ¶
func (m *SecurityGroupRule) Reset()
func (*SecurityGroupRule) Size ¶
func (m *SecurityGroupRule) Size() (n int)
func (*SecurityGroupRule) String ¶
func (m *SecurityGroupRule) String() string
func (*SecurityGroupRule) Unmarshal ¶
func (m *SecurityGroupRule) Unmarshal(dAtA []byte) error
func (*SecurityGroupRule) XXX_DiscardUnknown ¶
func (m *SecurityGroupRule) XXX_DiscardUnknown()
func (*SecurityGroupRule) XXX_Marshal ¶
func (m *SecurityGroupRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SecurityGroupRule) XXX_Merge ¶
func (m *SecurityGroupRule) XXX_Merge(src proto.Message)
func (*SecurityGroupRule) XXX_Size ¶
func (m *SecurityGroupRule) XXX_Size() int
func (*SecurityGroupRule) XXX_Unmarshal ¶
func (m *SecurityGroupRule) XXX_Unmarshal(b []byte) error
type UnimplementedCNIBackendServer ¶
type UnimplementedCNIBackendServer struct {
}
UnimplementedCNIBackendServer can be embedded to have forward compatible implementations.
func (*UnimplementedCNIBackendServer) AddNetwork ¶
func (*UnimplementedCNIBackendServer) AddNetwork(ctx context.Context, req *IPAMMessage) (*IPAMMessage, error)
func (*UnimplementedCNIBackendServer) DelNetwork ¶
func (*UnimplementedCNIBackendServer) DelNetwork(ctx context.Context, req *IPAMMessage) (*IPAMMessage, error)
func (*UnimplementedCNIBackendServer) ShowNics ¶
func (*UnimplementedCNIBackendServer) ShowNics(ctx context.Context, req *Nothing) (*NicInfoList, error)
type VIP ¶
type VIP struct {
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
Addr string `protobuf:"bytes,3,opt,name=Addr,proto3" json:"Addr,omitempty"`
VxNetID string `protobuf:"bytes,4,opt,name=VxNetID,proto3" json:"VxNetID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*VIP) Descriptor ¶
func (*VIP) GetVxNetID ¶
func (*VIP) ProtoMessage ¶
func (*VIP) ProtoMessage()
func (*VIP) XXX_DiscardUnknown ¶
func (m *VIP) XXX_DiscardUnknown()
func (*VIP) XXX_Unmarshal ¶
type VxNet ¶
type VxNet struct {
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
Gateway string `protobuf:"bytes,2,opt,name=Gateway,proto3" json:"Gateway,omitempty"`
Network string `protobuf:"bytes,3,opt,name=Network,proto3" json:"Network,omitempty"`
RouterID string `protobuf:"bytes,4,opt,name=RouterID,proto3" json:"RouterID,omitempty"`
IPStart string `protobuf:"bytes,5,opt,name=IPStart,proto3" json:"IPStart,omitempty"`
IPEnd string `protobuf:"bytes,6,opt,name=IPEnd,proto3" json:"IPEnd,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*VxNet) Descriptor ¶
func (*VxNet) GetGateway ¶
func (*VxNet) GetIPStart ¶
func (*VxNet) GetNetwork ¶
func (*VxNet) GetRouterID ¶
func (*VxNet) ProtoMessage ¶
func (*VxNet) ProtoMessage()
func (*VxNet) XXX_DiscardUnknown ¶
func (m *VxNet) XXX_DiscardUnknown()
func (*VxNet) XXX_Marshal ¶
func (*VxNet) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.