rpc

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: Apache-2.0 Imports: 5 Imported by: 76

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

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"`
	UseExternalSNAT bool     `protobuf:"varint,5,opt,name=UseExternalSNAT" json:"UseExternalSNAT,omitempty"`
	VPCcidrs        []string `protobuf:"bytes,6,rep,name=VPCcidrs" json:"VPCcidrs,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) GetUseExternalSNAT added in v1.3.0

func (m *AddNetworkReply) GetUseExternalSNAT() bool

func (*AddNetworkReply) GetVPCcidrs added in v1.3.0

func (m *AddNetworkReply) GetVPCcidrs() []string

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

Directories

Path Synopsis
Package mock_rpc is a generated GoMock package.
Package mock_rpc is a generated GoMock package.

Jump to

Keyboard shortcuts

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