Documentation ¶
Overview ¶
Package rpc is a generated protocol buffer package.
It is generated from these files:
rpc.proto
It has these top-level messages:
AddNetworkRequest AddNetworkReply DelNetworkRequest DelNetworkReply
Index ¶
- func RegisterCNIBackendServer(s *grpc.Server, srv CNIBackendServer)
- type AddNetworkReply
- func (*AddNetworkReply) Descriptor() ([]byte, []int)
- func (m *AddNetworkReply) GetDeviceNumber() int32
- func (m *AddNetworkReply) GetIPv4Addr() string
- func (m *AddNetworkReply) GetIPv4Subnet() string
- func (m *AddNetworkReply) GetSuccess() bool
- func (*AddNetworkReply) ProtoMessage()
- func (m *AddNetworkReply) Reset()
- func (m *AddNetworkReply) String() string
- type AddNetworkRequest
- func (*AddNetworkRequest) Descriptor() ([]byte, []int)
- func (m *AddNetworkRequest) GetIfName() string
- func (m *AddNetworkRequest) GetK8S_POD_INFRA_CONTAINER_ID() string
- func (m *AddNetworkRequest) GetK8S_POD_NAME() string
- func (m *AddNetworkRequest) GetK8S_POD_NAMESPACE() string
- func (m *AddNetworkRequest) GetNetns() string
- func (*AddNetworkRequest) ProtoMessage()
- func (m *AddNetworkRequest) Reset()
- func (m *AddNetworkRequest) String() string
- type CNIBackendClient
- type CNIBackendServer
- type DelNetworkReply
- func (*DelNetworkReply) Descriptor() ([]byte, []int)
- func (m *DelNetworkReply) GetDeviceNumber() int32
- func (m *DelNetworkReply) GetIPv4Addr() string
- func (m *DelNetworkReply) GetSuccess() bool
- func (*DelNetworkReply) ProtoMessage()
- func (m *DelNetworkReply) Reset()
- func (m *DelNetworkReply) String() string
- type DelNetworkRequest
- func (*DelNetworkRequest) Descriptor() ([]byte, []int)
- func (m *DelNetworkRequest) GetIPv4Addr() string
- func (m *DelNetworkRequest) GetK8S_POD_INFRA_CONTAINER_ID() string
- func (m *DelNetworkRequest) GetK8S_POD_NAME() string
- func (m *DelNetworkRequest) GetK8S_POD_NAMESPACE() string
- func (m *DelNetworkRequest) GetReason() string
- func (*DelNetworkRequest) ProtoMessage()
- func (m *DelNetworkRequest) Reset()
- func (m *DelNetworkRequest) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCNIBackendServer ¶
func RegisterCNIBackendServer(s *grpc.Server, srv CNIBackendServer)
Types ¶
type AddNetworkReply ¶
type AddNetworkReply struct { Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"` IPv4Addr string `protobuf:"bytes,2,opt,name=IPv4Addr" json:"IPv4Addr,omitempty"` IPv4Subnet string `protobuf:"bytes,3,opt,name=IPv4Subnet" json:"IPv4Subnet,omitempty"` DeviceNumber int32 `protobuf:"varint,4,opt,name=DeviceNumber" json:"DeviceNumber,omitempty"` }
func (*AddNetworkReply) Descriptor ¶
func (*AddNetworkReply) Descriptor() ([]byte, []int)
func (*AddNetworkReply) GetDeviceNumber ¶
func (m *AddNetworkReply) GetDeviceNumber() int32
func (*AddNetworkReply) GetIPv4Addr ¶
func (m *AddNetworkReply) GetIPv4Addr() string
func (*AddNetworkReply) GetIPv4Subnet ¶
func (m *AddNetworkReply) GetIPv4Subnet() string
func (*AddNetworkReply) GetSuccess ¶
func (m *AddNetworkReply) GetSuccess() bool
func (*AddNetworkReply) ProtoMessage ¶
func (*AddNetworkReply) ProtoMessage()
func (*AddNetworkReply) Reset ¶
func (m *AddNetworkReply) Reset()
func (*AddNetworkReply) String ¶
func (m *AddNetworkReply) String() string
type AddNetworkRequest ¶
type AddNetworkRequest struct { K8S_POD_NAME string `protobuf:"bytes,1,opt,name=K8S_POD_NAME,json=K8SPODNAME" json:"K8S_POD_NAME,omitempty"` K8S_POD_NAMESPACE string `protobuf:"bytes,2,opt,name=K8S_POD_NAMESPACE,json=K8SPODNAMESPACE" json:"K8S_POD_NAMESPACE,omitempty"` K8S_POD_INFRA_CONTAINER_ID string `` /* 126-byte string literal not displayed */ Netns string `protobuf:"bytes,4,opt,name=Netns" json:"Netns,omitempty"` IfName string `protobuf:"bytes,5,opt,name=IfName" json:"IfName,omitempty"` }
func (*AddNetworkRequest) Descriptor ¶
func (*AddNetworkRequest) Descriptor() ([]byte, []int)
func (*AddNetworkRequest) GetIfName ¶
func (m *AddNetworkRequest) GetIfName() string
func (*AddNetworkRequest) GetK8S_POD_INFRA_CONTAINER_ID ¶
func (m *AddNetworkRequest) GetK8S_POD_INFRA_CONTAINER_ID() string
func (*AddNetworkRequest) GetK8S_POD_NAME ¶
func (m *AddNetworkRequest) GetK8S_POD_NAME() string
func (*AddNetworkRequest) GetK8S_POD_NAMESPACE ¶
func (m *AddNetworkRequest) GetK8S_POD_NAMESPACE() string
func (*AddNetworkRequest) GetNetns ¶
func (m *AddNetworkRequest) GetNetns() string
func (*AddNetworkRequest) ProtoMessage ¶
func (*AddNetworkRequest) ProtoMessage()
func (*AddNetworkRequest) Reset ¶
func (m *AddNetworkRequest) Reset()
func (*AddNetworkRequest) String ¶
func (m *AddNetworkRequest) String() string
type CNIBackendClient ¶
type CNIBackendClient interface { AddNetwork(ctx context.Context, in *AddNetworkRequest, opts ...grpc.CallOption) (*AddNetworkReply, error) DelNetwork(ctx context.Context, in *DelNetworkRequest, opts ...grpc.CallOption) (*DelNetworkReply, error) }
func NewCNIBackendClient ¶
func NewCNIBackendClient(cc *grpc.ClientConn) CNIBackendClient
type CNIBackendServer ¶
type CNIBackendServer interface { AddNetwork(context.Context, *AddNetworkRequest) (*AddNetworkReply, error) DelNetwork(context.Context, *DelNetworkRequest) (*DelNetworkReply, error) }
type DelNetworkReply ¶
type DelNetworkReply struct { Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"` IPv4Addr string `protobuf:"bytes,2,opt,name=IPv4Addr" json:"IPv4Addr,omitempty"` DeviceNumber int32 `protobuf:"varint,3,opt,name=DeviceNumber" json:"DeviceNumber,omitempty"` }
func (*DelNetworkReply) Descriptor ¶
func (*DelNetworkReply) Descriptor() ([]byte, []int)
func (*DelNetworkReply) GetDeviceNumber ¶
func (m *DelNetworkReply) GetDeviceNumber() int32
func (*DelNetworkReply) GetIPv4Addr ¶
func (m *DelNetworkReply) GetIPv4Addr() string
func (*DelNetworkReply) GetSuccess ¶
func (m *DelNetworkReply) GetSuccess() bool
func (*DelNetworkReply) ProtoMessage ¶
func (*DelNetworkReply) ProtoMessage()
func (*DelNetworkReply) Reset ¶
func (m *DelNetworkReply) Reset()
func (*DelNetworkReply) String ¶
func (m *DelNetworkReply) String() string
type DelNetworkRequest ¶
type DelNetworkRequest struct { K8S_POD_NAME string `protobuf:"bytes,1,opt,name=K8S_POD_NAME,json=K8SPODNAME" json:"K8S_POD_NAME,omitempty"` K8S_POD_NAMESPACE string `protobuf:"bytes,2,opt,name=K8S_POD_NAMESPACE,json=K8SPODNAMESPACE" json:"K8S_POD_NAMESPACE,omitempty"` K8S_POD_INFRA_CONTAINER_ID string `` /* 126-byte string literal not displayed */ IPv4Addr string `protobuf:"bytes,4,opt,name=IPv4Addr" json:"IPv4Addr,omitempty"` Reason string `protobuf:"bytes,5,opt,name=Reason" json:"Reason,omitempty"` }
func (*DelNetworkRequest) Descriptor ¶
func (*DelNetworkRequest) Descriptor() ([]byte, []int)
func (*DelNetworkRequest) GetIPv4Addr ¶
func (m *DelNetworkRequest) GetIPv4Addr() string
func (*DelNetworkRequest) GetK8S_POD_INFRA_CONTAINER_ID ¶
func (m *DelNetworkRequest) GetK8S_POD_INFRA_CONTAINER_ID() string
func (*DelNetworkRequest) GetK8S_POD_NAME ¶
func (m *DelNetworkRequest) GetK8S_POD_NAME() string
func (*DelNetworkRequest) GetK8S_POD_NAMESPACE ¶
func (m *DelNetworkRequest) GetK8S_POD_NAMESPACE() string
func (*DelNetworkRequest) GetReason ¶ added in v1.1.0
func (m *DelNetworkRequest) GetReason() string
func (*DelNetworkRequest) ProtoMessage ¶
func (*DelNetworkRequest) ProtoMessage()
func (*DelNetworkRequest) Reset ¶
func (m *DelNetworkRequest) Reset()
func (*DelNetworkRequest) String ¶
func (m *DelNetworkRequest) String() string
Click to show internal directories.
Click to hide internal directories.