rpc

package
Version: v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IPType_name = map[int32]string{
	0: "TypeVPCIP",
	1: "TypeVPCENI",
	2: "TypeManagedK8S",
	3: "TypeENIMultiIP",
}
View Source
var IPType_value = map[string]int32{
	"TypeVPCIP":      0,
	"TypeVPCENI":     1,
	"TypeManagedK8S": 2,
	"TypeENIMultiIP": 3,
}

Functions

func RegisterTerwayBackendServer

func RegisterTerwayBackendServer(s *grpc.Server, srv TerwayBackendServer)

Types

type AllocIPReply

type AllocIPReply struct {
	Success bool   `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"`
	IPType  IPType `protobuf:"varint,2,opt,name=IPType,proto3,enum=rpc.IPType" json:"IPType,omitempty"`
	// Types that are valid to be assigned to NetworkInfo:
	//	*AllocIPReply_VpcIp
	//	*AllocIPReply_VpcEni
	//	*AllocIPReply_ManagedK8S
	//	*AllocIPReply_ENIMultiIP
	NetworkInfo          isAllocIPReply_NetworkInfo `protobuf_oneof:"NetworkInfo"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

func (*AllocIPReply) Descriptor

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

func (*AllocIPReply) GetENIMultiIP

func (m *AllocIPReply) GetENIMultiIP() *ENIMultiIP

func (*AllocIPReply) GetIPType

func (m *AllocIPReply) GetIPType() IPType

func (*AllocIPReply) GetManagedK8S

func (m *AllocIPReply) GetManagedK8S() *ManagedK8SENI

func (*AllocIPReply) GetNetworkInfo

func (m *AllocIPReply) GetNetworkInfo() isAllocIPReply_NetworkInfo

func (*AllocIPReply) GetSuccess

func (m *AllocIPReply) GetSuccess() bool

func (*AllocIPReply) GetVpcEni

func (m *AllocIPReply) GetVpcEni() *VPCENI

func (*AllocIPReply) GetVpcIp

func (m *AllocIPReply) GetVpcIp() *VPCIP

func (*AllocIPReply) ProtoMessage

func (*AllocIPReply) ProtoMessage()

func (*AllocIPReply) Reset

func (m *AllocIPReply) Reset()

func (*AllocIPReply) String

func (m *AllocIPReply) String() string

func (*AllocIPReply) XXX_DiscardUnknown

func (m *AllocIPReply) XXX_DiscardUnknown()

func (*AllocIPReply) XXX_Marshal

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

func (*AllocIPReply) XXX_Merge

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

func (*AllocIPReply) XXX_OneofFuncs

func (*AllocIPReply) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*AllocIPReply) XXX_Size

func (m *AllocIPReply) XXX_Size() int

func (*AllocIPReply) XXX_Unmarshal

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

type AllocIPReply_ENIMultiIP

type AllocIPReply_ENIMultiIP struct {
	ENIMultiIP *ENIMultiIP `protobuf:"bytes,6,opt,name=ENIMultiIP,proto3,oneof"`
}

type AllocIPReply_ManagedK8S

type AllocIPReply_ManagedK8S struct {
	ManagedK8S *ManagedK8SENI `protobuf:"bytes,5,opt,name=ManagedK8S,proto3,oneof"`
}

type AllocIPReply_VpcEni

type AllocIPReply_VpcEni struct {
	VpcEni *VPCENI `protobuf:"bytes,4,opt,name=VpcEni,proto3,oneof"`
}

type AllocIPReply_VpcIp

type AllocIPReply_VpcIp struct {
	VpcIp *VPCIP `protobuf:"bytes,3,opt,name=VpcIp,proto3,oneof"`
}

type AllocIPRequest

type AllocIPRequest 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"`
	XXX_NoUnkeyedLiteral   struct{} `json:"-"`
	XXX_unrecognized       []byte   `json:"-"`
	XXX_sizecache          int32    `json:"-"`
}

func (*AllocIPRequest) Descriptor

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

func (*AllocIPRequest) GetIfName

func (m *AllocIPRequest) GetIfName() string

func (*AllocIPRequest) GetK8SPodInfraContainerId

func (m *AllocIPRequest) GetK8SPodInfraContainerId() string

func (*AllocIPRequest) GetK8SPodName

func (m *AllocIPRequest) GetK8SPodName() string

func (*AllocIPRequest) GetK8SPodNamespace

func (m *AllocIPRequest) GetK8SPodNamespace() string

func (*AllocIPRequest) GetNetns

func (m *AllocIPRequest) GetNetns() string

func (*AllocIPRequest) ProtoMessage

func (*AllocIPRequest) ProtoMessage()

func (*AllocIPRequest) Reset

func (m *AllocIPRequest) Reset()

func (*AllocIPRequest) String

func (m *AllocIPRequest) String() string

func (*AllocIPRequest) XXX_DiscardUnknown

func (m *AllocIPRequest) XXX_DiscardUnknown()

func (*AllocIPRequest) XXX_Marshal

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

func (*AllocIPRequest) XXX_Merge

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

func (*AllocIPRequest) XXX_Size

func (m *AllocIPRequest) XXX_Size() int

func (*AllocIPRequest) XXX_Unmarshal

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

type ENI

type ENI struct {
	IPv4Addr             string   `protobuf:"bytes,1,opt,name=IPv4Addr,proto3" json:"IPv4Addr,omitempty"`
	IPv4Subnet           string   `protobuf:"bytes,2,opt,name=IPv4Subnet,proto3" json:"IPv4Subnet,omitempty"`
	MacAddr              string   `protobuf:"bytes,3,opt,name=MacAddr,proto3" json:"MacAddr,omitempty"`
	Gateway              string   `protobuf:"bytes,4,opt,name=Gateway,proto3" json:"Gateway,omitempty"`
	DeviceNumber         int32    `protobuf:"varint,5,opt,name=DeviceNumber,proto3" json:"DeviceNumber,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ENI Basic

func (*ENI) Descriptor

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

func (*ENI) GetDeviceNumber

func (m *ENI) GetDeviceNumber() int32

func (*ENI) GetGateway

func (m *ENI) GetGateway() string

func (*ENI) GetIPv4Addr

func (m *ENI) GetIPv4Addr() string

func (*ENI) GetIPv4Subnet

func (m *ENI) GetIPv4Subnet() string

func (*ENI) GetMacAddr

func (m *ENI) GetMacAddr() string

func (*ENI) ProtoMessage

func (*ENI) ProtoMessage()

func (*ENI) Reset

func (m *ENI) Reset()

func (*ENI) String

func (m *ENI) String() string

func (*ENI) XXX_DiscardUnknown

func (m *ENI) XXX_DiscardUnknown()

func (*ENI) XXX_Marshal

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

func (*ENI) XXX_Merge

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

func (*ENI) XXX_Size

func (m *ENI) XXX_Size() int

func (*ENI) XXX_Unmarshal

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

type ENIMultiIP

type ENIMultiIP struct {
	EniConfig            *ENI     `protobuf:"bytes,1,opt,name=EniConfig,proto3" json:"EniConfig,omitempty"`
	PodConfig            *Pod     `protobuf:"bytes,2,opt,name=PodConfig,proto3" json:"PodConfig,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ENI Multiple IP

func (*ENIMultiIP) Descriptor

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

func (*ENIMultiIP) GetEniConfig

func (m *ENIMultiIP) GetEniConfig() *ENI

func (*ENIMultiIP) GetPodConfig

func (m *ENIMultiIP) GetPodConfig() *Pod

func (*ENIMultiIP) ProtoMessage

func (*ENIMultiIP) ProtoMessage()

func (*ENIMultiIP) Reset

func (m *ENIMultiIP) Reset()

func (*ENIMultiIP) String

func (m *ENIMultiIP) String() string

func (*ENIMultiIP) XXX_DiscardUnknown

func (m *ENIMultiIP) XXX_DiscardUnknown()

func (*ENIMultiIP) XXX_Marshal

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

func (*ENIMultiIP) XXX_Merge

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

func (*ENIMultiIP) XXX_Size

func (m *ENIMultiIP) XXX_Size() int

func (*ENIMultiIP) XXX_Unmarshal

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

type GetInfoReply

type GetInfoReply struct {
	IPType               IPType   `protobuf:"varint,1,opt,name=IPType,proto3,enum=rpc.IPType" json:"IPType,omitempty"`
	PodConfig            *Pod     `protobuf:"bytes,2,opt,name=PodConfig,proto3" json:"PodConfig,omitempty"`
	NodeCidr             string   `protobuf:"bytes,3,opt,name=NodeCidr,proto3" json:"NodeCidr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetInfoReply) Descriptor

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

func (*GetInfoReply) GetIPType

func (m *GetInfoReply) GetIPType() IPType

func (*GetInfoReply) GetNodeCidr

func (m *GetInfoReply) GetNodeCidr() string

func (*GetInfoReply) GetPodConfig

func (m *GetInfoReply) GetPodConfig() *Pod

func (*GetInfoReply) ProtoMessage

func (*GetInfoReply) ProtoMessage()

func (*GetInfoReply) Reset

func (m *GetInfoReply) Reset()

func (*GetInfoReply) String

func (m *GetInfoReply) String() string

func (*GetInfoReply) XXX_DiscardUnknown

func (m *GetInfoReply) XXX_DiscardUnknown()

func (*GetInfoReply) XXX_Marshal

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

func (*GetInfoReply) XXX_Merge

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

func (*GetInfoReply) XXX_Size

func (m *GetInfoReply) XXX_Size() int

func (*GetInfoReply) XXX_Unmarshal

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

type GetInfoRequest

type GetInfoRequest 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"`
	XXX_NoUnkeyedLiteral   struct{} `json:"-"`
	XXX_unrecognized       []byte   `json:"-"`
	XXX_sizecache          int32    `json:"-"`
}

func (*GetInfoRequest) Descriptor

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

func (*GetInfoRequest) GetK8SPodInfraContainerId

func (m *GetInfoRequest) GetK8SPodInfraContainerId() string

func (*GetInfoRequest) GetK8SPodName

func (m *GetInfoRequest) GetK8SPodName() string

func (*GetInfoRequest) GetK8SPodNamespace

func (m *GetInfoRequest) GetK8SPodNamespace() string

func (*GetInfoRequest) ProtoMessage

func (*GetInfoRequest) ProtoMessage()

func (*GetInfoRequest) Reset

func (m *GetInfoRequest) Reset()

func (*GetInfoRequest) String

func (m *GetInfoRequest) String() string

func (*GetInfoRequest) XXX_DiscardUnknown

func (m *GetInfoRequest) XXX_DiscardUnknown()

func (*GetInfoRequest) XXX_Marshal

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

func (*GetInfoRequest) XXX_Merge

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

func (*GetInfoRequest) XXX_Size

func (m *GetInfoRequest) XXX_Size() int

func (*GetInfoRequest) XXX_Unmarshal

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

type IPType

type IPType int32
const (
	IPType_TypeVPCIP      IPType = 0
	IPType_TypeVPCENI     IPType = 1
	IPType_TypeManagedK8S IPType = 2
	IPType_TypeENIMultiIP IPType = 3
)

func (IPType) EnumDescriptor

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

func (IPType) String

func (x IPType) String() string

type ManagedK8SENI

type ManagedK8SENI struct {
	EniConfig            *ENI     `protobuf:"bytes,1,opt,name=EniConfig,proto3" json:"EniConfig,omitempty"`
	PodConfig            *Pod     `protobuf:"bytes,2,opt,name=PodConfig,proto3" json:"PodConfig,omitempty"`
	PodCidr              string   `protobuf:"bytes,3,opt,name=PodCidr,proto3" json:"PodCidr,omitempty"`
	VpcCidr              string   `protobuf:"bytes,4,opt,name=VpcCidr,proto3" json:"VpcCidr,omitempty"`
	NodeCidr             string   `protobuf:"bytes,5,opt,name=NodeCidr,proto3" json:"NodeCidr,omitempty"`
	ServiceCidr          string   `protobuf:"bytes,6,opt,name=ServiceCidr,proto3" json:"ServiceCidr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Managed k8s ENI

func (*ManagedK8SENI) Descriptor

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

func (*ManagedK8SENI) GetEniConfig

func (m *ManagedK8SENI) GetEniConfig() *ENI

func (*ManagedK8SENI) GetNodeCidr

func (m *ManagedK8SENI) GetNodeCidr() string

func (*ManagedK8SENI) GetPodCidr

func (m *ManagedK8SENI) GetPodCidr() string

func (*ManagedK8SENI) GetPodConfig

func (m *ManagedK8SENI) GetPodConfig() *Pod

func (*ManagedK8SENI) GetServiceCidr

func (m *ManagedK8SENI) GetServiceCidr() string

func (*ManagedK8SENI) GetVpcCidr

func (m *ManagedK8SENI) GetVpcCidr() string

func (*ManagedK8SENI) ProtoMessage

func (*ManagedK8SENI) ProtoMessage()

func (*ManagedK8SENI) Reset

func (m *ManagedK8SENI) Reset()

func (*ManagedK8SENI) String

func (m *ManagedK8SENI) String() string

func (*ManagedK8SENI) XXX_DiscardUnknown

func (m *ManagedK8SENI) XXX_DiscardUnknown()

func (*ManagedK8SENI) XXX_Marshal

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

func (*ManagedK8SENI) XXX_Merge

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

func (*ManagedK8SENI) XXX_Size

func (m *ManagedK8SENI) XXX_Size() int

func (*ManagedK8SENI) XXX_Unmarshal

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

type Pod

type Pod struct {
	Ingress              uint64   `protobuf:"varint,1,opt,name=Ingress,proto3" json:"Ingress,omitempty"`
	Egress               uint64   `protobuf:"varint,2,opt,name=Egress,proto3" json:"Egress,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

VETH Basic

func (*Pod) Descriptor

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

func (*Pod) GetEgress

func (m *Pod) GetEgress() uint64

func (*Pod) GetIngress

func (m *Pod) GetIngress() uint64

func (*Pod) ProtoMessage

func (*Pod) ProtoMessage()

func (*Pod) Reset

func (m *Pod) Reset()

func (*Pod) String

func (m *Pod) String() string

func (*Pod) XXX_DiscardUnknown

func (m *Pod) XXX_DiscardUnknown()

func (*Pod) XXX_Marshal

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

func (*Pod) XXX_Merge

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

func (*Pod) XXX_Size

func (m *Pod) XXX_Size() int

func (*Pod) XXX_Unmarshal

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

type ReleaseIPReply

type ReleaseIPReply struct {
	Success              bool     `protobuf:"varint,1,opt,name=Success,proto3" json:"Success,omitempty"`
	IPv4Addr             string   `protobuf:"bytes,2,opt,name=IPv4Addr,proto3" json:"IPv4Addr,omitempty"`
	DeviceNumber         int32    `protobuf:"varint,3,opt,name=DeviceNumber,proto3" json:"DeviceNumber,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReleaseIPReply) Descriptor

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

func (*ReleaseIPReply) GetDeviceNumber

func (m *ReleaseIPReply) GetDeviceNumber() int32

func (*ReleaseIPReply) GetIPv4Addr

func (m *ReleaseIPReply) GetIPv4Addr() string

func (*ReleaseIPReply) GetSuccess

func (m *ReleaseIPReply) GetSuccess() bool

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_Size

func (m *ReleaseIPReply) XXX_Size() int

func (*ReleaseIPReply) XXX_Unmarshal

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

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"`
	IPType                 IPType   `protobuf:"varint,4,opt,name=IPType,proto3,enum=rpc.IPType" json:"IPType,omitempty"`
	IPv4Addr               string   `protobuf:"bytes,5,opt,name=IPv4Addr,proto3" json:"IPv4Addr,omitempty"`
	MacAddr                string   `protobuf:"bytes,6,opt,name=MacAddr,proto3" json:"MacAddr,omitempty"`
	Reason                 string   `protobuf:"bytes,7,opt,name=Reason,proto3" json:"Reason,omitempty"`
	XXX_NoUnkeyedLiteral   struct{} `json:"-"`
	XXX_unrecognized       []byte   `json:"-"`
	XXX_sizecache          int32    `json:"-"`
}

func (*ReleaseIPRequest) Descriptor

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

func (*ReleaseIPRequest) GetIPType

func (m *ReleaseIPRequest) GetIPType() IPType

func (*ReleaseIPRequest) GetIPv4Addr

func (m *ReleaseIPRequest) GetIPv4Addr() 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) GetMacAddr

func (m *ReleaseIPRequest) GetMacAddr() string

func (*ReleaseIPRequest) GetReason

func (m *ReleaseIPRequest) GetReason() string

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_Size

func (m *ReleaseIPRequest) XXX_Size() int

func (*ReleaseIPRequest) XXX_Unmarshal

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

type TerwayBackendClient

type TerwayBackendClient interface {
	AllocIP(ctx context.Context, in *AllocIPRequest, opts ...grpc.CallOption) (*AllocIPReply, error)
	ReleaseIP(ctx context.Context, in *ReleaseIPRequest, opts ...grpc.CallOption) (*ReleaseIPReply, error)
	GetIPInfo(ctx context.Context, in *GetInfoRequest, opts ...grpc.CallOption) (*GetInfoReply, error)
}

TerwayBackendClient is the client API for TerwayBackend service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTerwayBackendClient

func NewTerwayBackendClient(cc *grpc.ClientConn) TerwayBackendClient

type TerwayBackendServer

type TerwayBackendServer interface {
	AllocIP(context.Context, *AllocIPRequest) (*AllocIPReply, error)
	ReleaseIP(context.Context, *ReleaseIPRequest) (*ReleaseIPReply, error)
	GetIPInfo(context.Context, *GetInfoRequest) (*GetInfoReply, error)
}

TerwayBackendServer is the server API for TerwayBackend service.

type VPCENI

type VPCENI struct {
	EniConfig            *ENI     `protobuf:"bytes,1,opt,name=EniConfig,proto3" json:"EniConfig,omitempty"`
	PodConfig            *Pod     `protobuf:"bytes,2,opt,name=PodConfig,proto3" json:"PodConfig,omitempty"`
	ServiceCidr          string   `protobuf:"bytes,3,opt,name=ServiceCidr,proto3" json:"ServiceCidr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Dedicated ENI

func (*VPCENI) Descriptor

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

func (*VPCENI) GetEniConfig

func (m *VPCENI) GetEniConfig() *ENI

func (*VPCENI) GetPodConfig

func (m *VPCENI) GetPodConfig() *Pod

func (*VPCENI) GetServiceCidr

func (m *VPCENI) GetServiceCidr() string

func (*VPCENI) ProtoMessage

func (*VPCENI) ProtoMessage()

func (*VPCENI) Reset

func (m *VPCENI) Reset()

func (*VPCENI) String

func (m *VPCENI) String() string

func (*VPCENI) XXX_DiscardUnknown

func (m *VPCENI) XXX_DiscardUnknown()

func (*VPCENI) XXX_Marshal

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

func (*VPCENI) XXX_Merge

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

func (*VPCENI) XXX_Size

func (m *VPCENI) XXX_Size() int

func (*VPCENI) XXX_Unmarshal

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

type VPCIP

type VPCIP struct {
	PodConfig            *Pod     `protobuf:"bytes,1,opt,name=PodConfig,proto3" json:"PodConfig,omitempty"`
	NodeCidr             string   `protobuf:"bytes,2,opt,name=NodeCidr,proto3" json:"NodeCidr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

VPC route veth

func (*VPCIP) Descriptor

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

func (*VPCIP) GetNodeCidr

func (m *VPCIP) GetNodeCidr() string

func (*VPCIP) GetPodConfig

func (m *VPCIP) GetPodConfig() *Pod

func (*VPCIP) ProtoMessage

func (*VPCIP) ProtoMessage()

func (*VPCIP) Reset

func (m *VPCIP) Reset()

func (*VPCIP) String

func (m *VPCIP) String() string

func (*VPCIP) XXX_DiscardUnknown

func (m *VPCIP) XXX_DiscardUnknown()

func (*VPCIP) XXX_Marshal

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

func (*VPCIP) XXX_Merge

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

func (*VPCIP) XXX_Size

func (m *VPCIP) XXX_Size() int

func (*VPCIP) XXX_Unmarshal

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

Source Files

Jump to

Keyboard shortcuts

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