rpc

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

func (*HostNic) GetHardwareAddr

func (m *HostNic) GetHardwareAddr() string

func (*HostNic) GetID

func (m *HostNic) GetID() string

func (*HostNic) GetIsPrimary

func (m *HostNic) GetIsPrimary() bool

func (*HostNic) GetPhase

func (m *HostNic) GetPhase() Phase

func (*HostNic) GetPrimaryAddress

func (m *HostNic) GetPrimaryAddress() string

func (*HostNic) GetReserved

func (m *HostNic) GetReserved() bool

func (*HostNic) GetRouteTableNum

func (m *HostNic) GetRouteTableNum() int32

func (*HostNic) GetStatus

func (m *HostNic) GetStatus() Status

func (*HostNic) GetUsing

func (m *HostNic) GetUsing() bool

func (*HostNic) GetVxNet

func (m *HostNic) GetVxNet() *VxNet

func (*HostNic) Marshal

func (m *HostNic) Marshal() (dAtA []byte, err error)

func (*HostNic) MarshalTo

func (m *HostNic) MarshalTo(dAtA []byte) (int, error)

func (*HostNic) MarshalToSizedBuffer

func (m *HostNic) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HostNic) ProtoMessage

func (*HostNic) ProtoMessage()

func (*HostNic) Reset

func (m *HostNic) Reset()

func (*HostNic) Size

func (m *HostNic) Size() (n int)

func (*HostNic) String

func (m *HostNic) String() string

func (*HostNic) Unmarshal

func (m *HostNic) Unmarshal(dAtA []byte) error

func (*HostNic) XXX_DiscardUnknown

func (m *HostNic) XXX_DiscardUnknown()

func (*HostNic) XXX_Marshal

func (m *HostNic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HostNic) XXX_Merge

func (m *HostNic) XXX_Merge(src proto.Message)

func (*HostNic) XXX_Size

func (m *HostNic) XXX_Size() int

func (*HostNic) XXX_Unmarshal

func (m *HostNic) XXX_Unmarshal(b []byte) error

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

func (m *IPAMMessage) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*NicInfo) GetId

func (m *NicInfo) GetId() string

func (*NicInfo) GetPhase

func (m *NicInfo) GetPhase() string

func (*NicInfo) GetPods

func (m *NicInfo) GetPods() int32

func (*NicInfo) GetStatus

func (m *NicInfo) GetStatus() string

func (*NicInfo) GetVxnet

func (m *NicInfo) GetVxnet() string

func (*NicInfo) Marshal

func (m *NicInfo) Marshal() (dAtA []byte, err error)

func (*NicInfo) MarshalTo

func (m *NicInfo) MarshalTo(dAtA []byte) (int, error)

func (*NicInfo) MarshalToSizedBuffer

func (m *NicInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NicInfo) ProtoMessage

func (*NicInfo) ProtoMessage()

func (*NicInfo) Reset

func (m *NicInfo) Reset()

func (*NicInfo) Size

func (m *NicInfo) Size() (n int)

func (*NicInfo) String

func (m *NicInfo) String() string

func (*NicInfo) Unmarshal

func (m *NicInfo) Unmarshal(dAtA []byte) error

func (*NicInfo) XXX_DiscardUnknown

func (m *NicInfo) XXX_DiscardUnknown()

func (*NicInfo) XXX_Marshal

func (m *NicInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NicInfo) XXX_Merge

func (m *NicInfo) XXX_Merge(src proto.Message)

func (*NicInfo) XXX_Size

func (m *NicInfo) XXX_Size() int

func (*NicInfo) XXX_Unmarshal

func (m *NicInfo) XXX_Unmarshal(b []byte) error

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

func (m *NicInfoList) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Node) GetClusterID

func (m *Node) GetClusterID() string

func (*Node) GetHostMachine

func (m *Node) GetHostMachine() string

func (*Node) GetInstanceID

func (m *Node) GetInstanceID() string

func (*Node) GetNodeID

func (m *Node) GetNodeID() string

func (*Node) GetPrivateIP

func (m *Node) GetPrivateIP() string

func (*Node) GetStatus

func (m *Node) GetStatus() string

func (*Node) Marshal

func (m *Node) Marshal() (dAtA []byte, err error)

func (*Node) MarshalTo

func (m *Node) MarshalTo(dAtA []byte) (int, error)

func (*Node) MarshalToSizedBuffer

func (m *Node) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (m *Node) Reset()

func (*Node) Size

func (m *Node) Size() (n int)

func (*Node) String

func (m *Node) String() string

func (*Node) Unmarshal

func (m *Node) Unmarshal(dAtA []byte) error

func (*Node) XXX_DiscardUnknown

func (m *Node) XXX_DiscardUnknown()

func (*Node) XXX_Marshal

func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Node) XXX_Merge

func (m *Node) XXX_Merge(src proto.Message)

func (*Node) XXX_Size

func (m *Node) XXX_Size() int

func (*Node) XXX_Unmarshal

func (m *Node) XXX_Unmarshal(b []byte) error

type Nothing

type Nothing struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Nothing) Descriptor

func (*Nothing) Descriptor() ([]byte, []int)

func (*Nothing) Marshal

func (m *Nothing) Marshal() (dAtA []byte, err error)

func (*Nothing) MarshalTo

func (m *Nothing) MarshalTo(dAtA []byte) (int, error)

func (*Nothing) MarshalToSizedBuffer

func (m *Nothing) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Nothing) ProtoMessage

func (*Nothing) ProtoMessage()

func (*Nothing) Reset

func (m *Nothing) Reset()

func (*Nothing) Size

func (m *Nothing) Size() (n int)

func (*Nothing) String

func (m *Nothing) String() string

func (*Nothing) Unmarshal

func (m *Nothing) Unmarshal(dAtA []byte) error

func (*Nothing) XXX_DiscardUnknown

func (m *Nothing) XXX_DiscardUnknown()

func (*Nothing) XXX_Marshal

func (m *Nothing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Nothing) XXX_Merge

func (m *Nothing) XXX_Merge(src proto.Message)

func (*Nothing) XXX_Size

func (m *Nothing) XXX_Size() int

func (*Nothing) XXX_Unmarshal

func (m *Nothing) XXX_Unmarshal(b []byte) error

type Phase

type Phase int32
const (
	Phase_Init            Phase = 0
	Phase_CreateAndAttach Phase = 1
	Phase_JoinBridge      Phase = 2
	Phase_SetRouteTable   Phase = 3
	Phase_Succeeded       Phase = 4
)

func (Phase) EnumDescriptor

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

func (Phase) String

func (x Phase) String() string

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

func (*PodInfo) GetContainter

func (m *PodInfo) GetContainter() string

func (*PodInfo) GetHostNic

func (m *PodInfo) GetHostNic() string

func (*PodInfo) GetIfName

func (m *PodInfo) GetIfName() string

func (*PodInfo) GetName

func (m *PodInfo) GetName() string

func (*PodInfo) GetNamespace

func (m *PodInfo) GetNamespace() string

func (*PodInfo) GetNetns

func (m *PodInfo) GetNetns() string

func (*PodInfo) GetNicType

func (m *PodInfo) GetNicType() string

func (*PodInfo) GetPodIP

func (m *PodInfo) GetPodIP() string

func (*PodInfo) GetVxNet

func (m *PodInfo) GetVxNet() string

func (*PodInfo) Marshal

func (m *PodInfo) Marshal() (dAtA []byte, err error)

func (*PodInfo) MarshalTo

func (m *PodInfo) MarshalTo(dAtA []byte) (int, error)

func (*PodInfo) MarshalToSizedBuffer

func (m *PodInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PodInfo) ProtoMessage

func (*PodInfo) ProtoMessage()

func (*PodInfo) Reset

func (m *PodInfo) Reset()

func (*PodInfo) Size

func (m *PodInfo) Size() (n int)

func (*PodInfo) String

func (m *PodInfo) String() string

func (*PodInfo) Unmarshal

func (m *PodInfo) Unmarshal(dAtA []byte) error

func (*PodInfo) XXX_DiscardUnknown

func (m *PodInfo) XXX_DiscardUnknown()

func (*PodInfo) XXX_Marshal

func (m *PodInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PodInfo) XXX_Merge

func (m *PodInfo) XXX_Merge(src proto.Message)

func (*PodInfo) XXX_Size

func (m *PodInfo) XXX_Size() int

func (*PodInfo) XXX_Unmarshal

func (m *PodInfo) XXX_Unmarshal(b []byte) error

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 Status

type Status int32
const (
	Status_FREE     Status = 0
	Status_USING    Status = 1
	Status_DELETING Status = 2
	Status_ERROR    Status = 3
	Status_DELETED  Status = 4
)

func (Status) EnumDescriptor

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

func (Status) String

func (x Status) String() string

type UnimplementedCNIBackendServer

type UnimplementedCNIBackendServer struct {
}

UnimplementedCNIBackendServer can be embedded to have forward compatible implementations.

func (*UnimplementedCNIBackendServer) AddNetwork

func (*UnimplementedCNIBackendServer) ClearNics

func (*UnimplementedCNIBackendServer) DelNetwork

func (*UnimplementedCNIBackendServer) ShowNics

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

func (*VIP) GetAddr

func (m *VIP) GetAddr() string

func (*VIP) GetID

func (m *VIP) GetID() string

func (*VIP) GetName

func (m *VIP) GetName() string

func (*VIP) GetVxNetID

func (m *VIP) GetVxNetID() string

func (*VIP) Marshal

func (m *VIP) Marshal() (dAtA []byte, err error)

func (*VIP) MarshalTo

func (m *VIP) MarshalTo(dAtA []byte) (int, error)

func (*VIP) MarshalToSizedBuffer

func (m *VIP) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VIP) ProtoMessage

func (*VIP) ProtoMessage()

func (*VIP) Reset

func (m *VIP) Reset()

func (*VIP) Size

func (m *VIP) Size() (n int)

func (*VIP) String

func (m *VIP) String() string

func (*VIP) Unmarshal

func (m *VIP) Unmarshal(dAtA []byte) error

func (*VIP) XXX_DiscardUnknown

func (m *VIP) XXX_DiscardUnknown()

func (*VIP) XXX_Marshal

func (m *VIP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VIP) XXX_Merge

func (m *VIP) XXX_Merge(src proto.Message)

func (*VIP) XXX_Size

func (m *VIP) XXX_Size() int

func (*VIP) XXX_Unmarshal

func (m *VIP) XXX_Unmarshal(b []byte) error

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

func (*VxNet) GetGateway

func (m *VxNet) GetGateway() string

func (*VxNet) GetID

func (m *VxNet) GetID() string

func (*VxNet) GetIPEnd

func (m *VxNet) GetIPEnd() string

func (*VxNet) GetIPStart

func (m *VxNet) GetIPStart() string

func (*VxNet) GetNetwork

func (m *VxNet) GetNetwork() string

func (*VxNet) GetRouterID

func (m *VxNet) GetRouterID() string

func (*VxNet) Marshal

func (m *VxNet) Marshal() (dAtA []byte, err error)

func (*VxNet) MarshalTo

func (m *VxNet) MarshalTo(dAtA []byte) (int, error)

func (*VxNet) MarshalToSizedBuffer

func (m *VxNet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VxNet) ProtoMessage

func (*VxNet) ProtoMessage()

func (*VxNet) Reset

func (m *VxNet) Reset()

func (*VxNet) Size

func (m *VxNet) Size() (n int)

func (*VxNet) String

func (m *VxNet) String() string

func (*VxNet) Unmarshal

func (m *VxNet) Unmarshal(dAtA []byte) error

func (*VxNet) XXX_DiscardUnknown

func (m *VxNet) XXX_DiscardUnknown()

func (*VxNet) XXX_Marshal

func (m *VxNet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VxNet) XXX_Merge

func (m *VxNet) XXX_Merge(src proto.Message)

func (*VxNet) XXX_Size

func (m *VxNet) XXX_Size() int

func (*VxNet) XXX_Unmarshal

func (m *VxNet) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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