network

package
v0.10.19-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VirtualNetworkInterface_NetworkInterfaceType_name = map[int32]string{
	0: "Local",
	1: "Remote",
}
View Source
var VirtualNetworkInterface_NetworkInterfaceType_value = map[string]int32{
	"Local":  0,
	"Remote": 1,
}
View Source
var VirtualNetworkType_name = map[int32]string{
	0: "NAT",
	1: "Transparent",
	2: "L2Bridge",
	3: "L2Tunnel",
	4: "ICS",
	5: "Private",
	6: "Overlay",
	7: "Internal",
	8: "Mirrored",
}
View Source
var VirtualNetworkType_value = map[string]int32{
	"NAT":         0,
	"Transparent": 1,
	"L2Bridge":    2,
	"L2Tunnel":    3,
	"ICS":         4,
	"Private":     5,
	"Overlay":     6,
	"Internal":    7,
	"Mirrored":    8,
}

Functions

func RegisterLoadBalancerAgentServer

func RegisterLoadBalancerAgentServer(s *grpc.Server, srv LoadBalancerAgentServer)

func RegisterVirtualNetworkAgentServer

func RegisterVirtualNetworkAgentServer(s *grpc.Server, srv VirtualNetworkAgentServer)

func RegisterVirtualNetworkInterfaceAgentServer

func RegisterVirtualNetworkInterfaceAgentServer(s *grpc.Server, srv VirtualNetworkInterfaceAgentServer)

Types

type IpConfiguration

type IpConfiguration struct {
	Ipaddress            string                    `protobuf:"bytes,1,opt,name=ipaddress,proto3" json:"ipaddress,omitempty"`
	Prefixlength         string                    `protobuf:"bytes,2,opt,name=prefixlength,proto3" json:"prefixlength,omitempty"`
	Subnetid             string                    `protobuf:"bytes,3,opt,name=subnetid,proto3" json:"subnetid,omitempty"`
	Primary              bool                      `protobuf:"varint,4,opt,name=primary,proto3" json:"primary,omitempty"`
	Gateway              string                    `protobuf:"bytes,5,opt,name=gateway,proto3" json:"gateway,omitempty"`
	Allocation           common.IPAllocationMethod `protobuf:"varint,6,opt,name=allocation,proto3,enum=moc.IPAllocationMethod" json:"allocation,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

func (*IpConfiguration) Descriptor

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

func (*IpConfiguration) GetAllocation

func (m *IpConfiguration) GetAllocation() common.IPAllocationMethod

func (*IpConfiguration) GetGateway

func (m *IpConfiguration) GetGateway() string

func (*IpConfiguration) GetIpaddress

func (m *IpConfiguration) GetIpaddress() string

func (*IpConfiguration) GetPrefixlength

func (m *IpConfiguration) GetPrefixlength() string

func (*IpConfiguration) GetPrimary

func (m *IpConfiguration) GetPrimary() bool

func (*IpConfiguration) GetSubnetid

func (m *IpConfiguration) GetSubnetid() string

func (*IpConfiguration) ProtoMessage

func (*IpConfiguration) ProtoMessage()

func (*IpConfiguration) Reset

func (m *IpConfiguration) Reset()

func (*IpConfiguration) String

func (m *IpConfiguration) String() string

func (*IpConfiguration) XXX_DiscardUnknown

func (m *IpConfiguration) XXX_DiscardUnknown()

func (*IpConfiguration) XXX_Marshal

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

func (*IpConfiguration) XXX_Merge

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

func (*IpConfiguration) XXX_Size

func (m *IpConfiguration) XXX_Size() int

func (*IpConfiguration) XXX_Unmarshal

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

type Ipam

type Ipam struct {
	Type                 string    `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Subnets              []*Subnet `protobuf:"bytes,2,rep,name=subnets,proto3" json:"subnets,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*Ipam) Descriptor

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

func (*Ipam) GetSubnets

func (m *Ipam) GetSubnets() []*Subnet

func (*Ipam) GetType

func (m *Ipam) GetType() string

func (*Ipam) ProtoMessage

func (*Ipam) ProtoMessage()

func (*Ipam) Reset

func (m *Ipam) Reset()

func (*Ipam) String

func (m *Ipam) String() string

func (*Ipam) XXX_DiscardUnknown

func (m *Ipam) XXX_DiscardUnknown()

func (*Ipam) XXX_Marshal

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

func (*Ipam) XXX_Merge

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

func (*Ipam) XXX_Size

func (m *Ipam) XXX_Size() int

func (*Ipam) XXX_Unmarshal

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

type LoadBalancer

type LoadBalancer struct {
	Name                 string         `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Id                   string         `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Frontendip           string         `protobuf:"bytes,4,opt,name=frontendip,proto3" json:"frontendip,omitempty"`
	Backendpoolname      string         `protobuf:"bytes,5,opt,name=backendpoolname,proto3" json:"backendpoolname,omitempty"`
	Networkid            string         `protobuf:"bytes,6,opt,name=networkid,proto3" json:"networkid,omitempty"`
	Status               *common.Status `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"`
	Entity               *common.Entity `protobuf:"bytes,9,opt,name=entity,proto3" json:"entity,omitempty"`
	Tags                 *common.Tags   `protobuf:"bytes,10,opt,name=tags,proto3" json:"tags,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*LoadBalancer) Descriptor

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

func (*LoadBalancer) GetBackendpoolname

func (m *LoadBalancer) GetBackendpoolname() string

func (*LoadBalancer) GetEntity

func (m *LoadBalancer) GetEntity() *common.Entity

func (*LoadBalancer) GetFrontendip

func (m *LoadBalancer) GetFrontendip() string

func (*LoadBalancer) GetId

func (m *LoadBalancer) GetId() string

func (*LoadBalancer) GetName

func (m *LoadBalancer) GetName() string

func (*LoadBalancer) GetNetworkid

func (m *LoadBalancer) GetNetworkid() string

func (*LoadBalancer) GetStatus

func (m *LoadBalancer) GetStatus() *common.Status

func (*LoadBalancer) GetTags added in v0.10.5

func (m *LoadBalancer) GetTags() *common.Tags

func (*LoadBalancer) ProtoMessage

func (*LoadBalancer) ProtoMessage()

func (*LoadBalancer) Reset

func (m *LoadBalancer) Reset()

func (*LoadBalancer) String

func (m *LoadBalancer) String() string

func (*LoadBalancer) XXX_DiscardUnknown

func (m *LoadBalancer) XXX_DiscardUnknown()

func (*LoadBalancer) XXX_Marshal

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

func (*LoadBalancer) XXX_Merge

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

func (*LoadBalancer) XXX_Size

func (m *LoadBalancer) XXX_Size() int

func (*LoadBalancer) XXX_Unmarshal

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

type LoadBalancerAgentClient

type LoadBalancerAgentClient interface {
	Invoke(ctx context.Context, in *LoadBalancerRequest, opts ...grpc.CallOption) (*LoadBalancerResponse, error)
}

LoadBalancerAgentClient is the client API for LoadBalancerAgent service.

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

func NewLoadBalancerAgentClient

func NewLoadBalancerAgentClient(cc *grpc.ClientConn) LoadBalancerAgentClient

type LoadBalancerAgentServer

type LoadBalancerAgentServer interface {
	Invoke(context.Context, *LoadBalancerRequest) (*LoadBalancerResponse, error)
}

LoadBalancerAgentServer is the server API for LoadBalancerAgent service.

type LoadBalancerRequest

type LoadBalancerRequest struct {
	LoadBalancers        []*LoadBalancer  `protobuf:"bytes,1,rep,name=LoadBalancers,proto3" json:"LoadBalancers,omitempty"`
	OperationType        common.Operation `protobuf:"varint,2,opt,name=OperationType,proto3,enum=moc.Operation" json:"OperationType,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*LoadBalancerRequest) Descriptor

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

func (*LoadBalancerRequest) GetLoadBalancers

func (m *LoadBalancerRequest) GetLoadBalancers() []*LoadBalancer

func (*LoadBalancerRequest) GetOperationType

func (m *LoadBalancerRequest) GetOperationType() common.Operation

func (*LoadBalancerRequest) ProtoMessage

func (*LoadBalancerRequest) ProtoMessage()

func (*LoadBalancerRequest) Reset

func (m *LoadBalancerRequest) Reset()

func (*LoadBalancerRequest) String

func (m *LoadBalancerRequest) String() string

func (*LoadBalancerRequest) XXX_DiscardUnknown

func (m *LoadBalancerRequest) XXX_DiscardUnknown()

func (*LoadBalancerRequest) XXX_Marshal

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

func (*LoadBalancerRequest) XXX_Merge

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

func (*LoadBalancerRequest) XXX_Size

func (m *LoadBalancerRequest) XXX_Size() int

func (*LoadBalancerRequest) XXX_Unmarshal

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

type LoadBalancerResponse

type LoadBalancerResponse struct {
	LoadBalancers        []*LoadBalancer     `protobuf:"bytes,1,rep,name=LoadBalancers,proto3" json:"LoadBalancers,omitempty"`
	Result               *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"`
	Error                string              `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*LoadBalancerResponse) Descriptor

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

func (*LoadBalancerResponse) GetError

func (m *LoadBalancerResponse) GetError() string

func (*LoadBalancerResponse) GetLoadBalancers

func (m *LoadBalancerResponse) GetLoadBalancers() []*LoadBalancer

func (*LoadBalancerResponse) GetResult

func (m *LoadBalancerResponse) GetResult() *wrappers.BoolValue

func (*LoadBalancerResponse) ProtoMessage

func (*LoadBalancerResponse) ProtoMessage()

func (*LoadBalancerResponse) Reset

func (m *LoadBalancerResponse) Reset()

func (*LoadBalancerResponse) String

func (m *LoadBalancerResponse) String() string

func (*LoadBalancerResponse) XXX_DiscardUnknown

func (m *LoadBalancerResponse) XXX_DiscardUnknown()

func (*LoadBalancerResponse) XXX_Marshal

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

func (*LoadBalancerResponse) XXX_Merge

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

func (*LoadBalancerResponse) XXX_Size

func (m *LoadBalancerResponse) XXX_Size() int

func (*LoadBalancerResponse) XXX_Unmarshal

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

type MacPool

type MacPool struct {
	Ranges               []*MacRange `protobuf:"bytes,1,rep,name=ranges,proto3" json:"ranges,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*MacPool) Descriptor

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

func (*MacPool) GetRanges

func (m *MacPool) GetRanges() []*MacRange

func (*MacPool) ProtoMessage

func (*MacPool) ProtoMessage()

func (*MacPool) Reset

func (m *MacPool) Reset()

func (*MacPool) String

func (m *MacPool) String() string

func (*MacPool) XXX_DiscardUnknown

func (m *MacPool) XXX_DiscardUnknown()

func (*MacPool) XXX_Marshal

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

func (*MacPool) XXX_Merge

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

func (*MacPool) XXX_Size

func (m *MacPool) XXX_Size() int

func (*MacPool) XXX_Unmarshal

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

type MacRange

type MacRange struct {
	StartMacAddress      string   `protobuf:"bytes,1,opt,name=startMacAddress,proto3" json:"startMacAddress,omitempty"`
	EndMacAddress        string   `protobuf:"bytes,2,opt,name=endMacAddress,proto3" json:"endMacAddress,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MacRange) Descriptor

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

func (*MacRange) GetEndMacAddress

func (m *MacRange) GetEndMacAddress() string

func (*MacRange) GetStartMacAddress

func (m *MacRange) GetStartMacAddress() string

func (*MacRange) ProtoMessage

func (*MacRange) ProtoMessage()

func (*MacRange) Reset

func (m *MacRange) Reset()

func (*MacRange) String

func (m *MacRange) String() string

func (*MacRange) XXX_DiscardUnknown

func (m *MacRange) XXX_DiscardUnknown()

func (*MacRange) XXX_Marshal

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

func (*MacRange) XXX_Merge

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

func (*MacRange) XXX_Size

func (m *MacRange) XXX_Size() int

func (*MacRange) XXX_Unmarshal

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

type Route

type Route struct {
	Nexthop              string   `protobuf:"bytes,1,opt,name=nexthop,proto3" json:"nexthop,omitempty"`
	Destinationprefix    string   `protobuf:"bytes,2,opt,name=destinationprefix,proto3" json:"destinationprefix,omitempty"`
	Metric               uint32   `protobuf:"varint,3,opt,name=metric,proto3" json:"metric,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Route) Descriptor

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

func (*Route) GetDestinationprefix

func (m *Route) GetDestinationprefix() string

func (*Route) GetMetric

func (m *Route) GetMetric() uint32

func (*Route) GetNexthop

func (m *Route) GetNexthop() string

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) Reset

func (m *Route) Reset()

func (*Route) String

func (m *Route) String() string

func (*Route) XXX_DiscardUnknown

func (m *Route) XXX_DiscardUnknown()

func (*Route) XXX_Marshal

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

func (*Route) XXX_Merge

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

func (*Route) XXX_Size

func (m *Route) XXX_Size() int

func (*Route) XXX_Unmarshal

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

type Subnet

type Subnet struct {
	Name                 string                    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Id                   string                    `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Cidr                 string                    `protobuf:"bytes,3,opt,name=cidr,proto3" json:"cidr,omitempty"`
	Routes               []*Route                  `protobuf:"bytes,4,rep,name=routes,proto3" json:"routes,omitempty"`
	Allocation           common.IPAllocationMethod `protobuf:"varint,5,opt,name=allocation,proto3,enum=moc.IPAllocationMethod" json:"allocation,omitempty"`
	Vlan                 uint32                    `protobuf:"varint,6,opt,name=vlan,proto3" json:"vlan,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

func (*Subnet) Descriptor

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

func (*Subnet) GetAllocation

func (m *Subnet) GetAllocation() common.IPAllocationMethod

func (*Subnet) GetCidr

func (m *Subnet) GetCidr() string

func (*Subnet) GetId

func (m *Subnet) GetId() string

func (*Subnet) GetName

func (m *Subnet) GetName() string

func (*Subnet) GetRoutes

func (m *Subnet) GetRoutes() []*Route

func (*Subnet) GetVlan

func (m *Subnet) GetVlan() uint32

func (*Subnet) ProtoMessage

func (*Subnet) ProtoMessage()

func (*Subnet) Reset

func (m *Subnet) Reset()

func (*Subnet) String

func (m *Subnet) String() string

func (*Subnet) XXX_DiscardUnknown

func (m *Subnet) XXX_DiscardUnknown()

func (*Subnet) XXX_Marshal

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

func (*Subnet) XXX_Merge

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

func (*Subnet) XXX_Size

func (m *Subnet) XXX_Size() int

func (*Subnet) XXX_Unmarshal

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

type UnimplementedLoadBalancerAgentServer

type UnimplementedLoadBalancerAgentServer struct {
}

UnimplementedLoadBalancerAgentServer can be embedded to have forward compatible implementations.

func (*UnimplementedLoadBalancerAgentServer) Invoke

type UnimplementedVirtualNetworkAgentServer

type UnimplementedVirtualNetworkAgentServer struct {
}

UnimplementedVirtualNetworkAgentServer can be embedded to have forward compatible implementations.

func (*UnimplementedVirtualNetworkAgentServer) CheckNotification

func (*UnimplementedVirtualNetworkAgentServer) Invoke

type UnimplementedVirtualNetworkInterfaceAgentServer

type UnimplementedVirtualNetworkInterfaceAgentServer struct {
}

UnimplementedVirtualNetworkInterfaceAgentServer can be embedded to have forward compatible implementations.

func (*UnimplementedVirtualNetworkInterfaceAgentServer) CheckNotification

func (*UnimplementedVirtualNetworkInterfaceAgentServer) Invoke

type VirtualNetwork

type VirtualNetwork struct {
	Name                 string             `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Id                   string             `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Ipams                []*Ipam            `protobuf:"bytes,3,rep,name=ipams,proto3" json:"ipams,omitempty"`
	Dns                  *common.Dns        `protobuf:"bytes,4,opt,name=dns,proto3" json:"dns,omitempty"`
	Type                 VirtualNetworkType `protobuf:"varint,5,opt,name=type,proto3,enum=moc.nodeagent.network.VirtualNetworkType" json:"type,omitempty"`
	MacPool              *MacPool           `protobuf:"bytes,6,opt,name=macPool,proto3" json:"macPool,omitempty"`
	Status               *common.Status     `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"`
	Entity               *common.Entity     `protobuf:"bytes,9,opt,name=entity,proto3" json:"entity,omitempty"`
	Tags                 *common.Tags       `protobuf:"bytes,10,opt,name=tags,proto3" json:"tags,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*VirtualNetwork) Descriptor

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

func (*VirtualNetwork) GetDns

func (m *VirtualNetwork) GetDns() *common.Dns

func (*VirtualNetwork) GetEntity

func (m *VirtualNetwork) GetEntity() *common.Entity

func (*VirtualNetwork) GetId

func (m *VirtualNetwork) GetId() string

func (*VirtualNetwork) GetIpams

func (m *VirtualNetwork) GetIpams() []*Ipam

func (*VirtualNetwork) GetMacPool

func (m *VirtualNetwork) GetMacPool() *MacPool

func (*VirtualNetwork) GetName

func (m *VirtualNetwork) GetName() string

func (*VirtualNetwork) GetStatus

func (m *VirtualNetwork) GetStatus() *common.Status

func (*VirtualNetwork) GetTags added in v0.10.5

func (m *VirtualNetwork) GetTags() *common.Tags

func (*VirtualNetwork) GetType

func (m *VirtualNetwork) GetType() VirtualNetworkType

func (*VirtualNetwork) ProtoMessage

func (*VirtualNetwork) ProtoMessage()

func (*VirtualNetwork) Reset

func (m *VirtualNetwork) Reset()

func (*VirtualNetwork) String

func (m *VirtualNetwork) String() string

func (*VirtualNetwork) XXX_DiscardUnknown

func (m *VirtualNetwork) XXX_DiscardUnknown()

func (*VirtualNetwork) XXX_Marshal

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

func (*VirtualNetwork) XXX_Merge

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

func (*VirtualNetwork) XXX_Size

func (m *VirtualNetwork) XXX_Size() int

func (*VirtualNetwork) XXX_Unmarshal

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

type VirtualNetworkAgentClient

type VirtualNetworkAgentClient interface {
	Invoke(ctx context.Context, in *VirtualNetworkRequest, opts ...grpc.CallOption) (*VirtualNetworkResponse, error)
	CheckNotification(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*common.NotificationResponse, error)
}

VirtualNetworkAgentClient is the client API for VirtualNetworkAgent service.

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

func NewVirtualNetworkAgentClient

func NewVirtualNetworkAgentClient(cc *grpc.ClientConn) VirtualNetworkAgentClient

type VirtualNetworkAgentServer

type VirtualNetworkAgentServer interface {
	Invoke(context.Context, *VirtualNetworkRequest) (*VirtualNetworkResponse, error)
	CheckNotification(context.Context, *empty.Empty) (*common.NotificationResponse, error)
}

VirtualNetworkAgentServer is the server API for VirtualNetworkAgent service.

type VirtualNetworkInterface

type VirtualNetworkInterface struct {
	Name                 string                                       `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Id                   string                                       `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Type                 VirtualNetworkInterface_NetworkInterfaceType `` /* 134-byte string literal not displayed */
	Ipconfigs            []*IpConfiguration                           `protobuf:"bytes,4,rep,name=ipconfigs,proto3" json:"ipconfigs,omitempty"`
	Macaddress           string                                       `protobuf:"bytes,5,opt,name=macaddress,proto3" json:"macaddress,omitempty"`
	DnsSettings          *common.Dns                                  `protobuf:"bytes,6,opt,name=dnsSettings,proto3" json:"dnsSettings,omitempty"`
	VirtualMachineName   string                                       `protobuf:"bytes,7,opt,name=virtualMachineName,proto3" json:"virtualMachineName,omitempty"`
	Status               *common.Status                               `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"`
	Entity               *common.Entity                               `protobuf:"bytes,9,opt,name=entity,proto3" json:"entity,omitempty"`
	IovWeight            uint32                                       `protobuf:"varint,10,opt,name=iovWeight,proto3" json:"iovWeight,omitempty"`
	Tags                 *common.Tags                                 `protobuf:"bytes,11,opt,name=tags,proto3" json:"tags,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                     `json:"-"`
	XXX_unrecognized     []byte                                       `json:"-"`
	XXX_sizecache        int32                                        `json:"-"`
}

func (*VirtualNetworkInterface) Descriptor

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

func (*VirtualNetworkInterface) GetDnsSettings

func (m *VirtualNetworkInterface) GetDnsSettings() *common.Dns

func (*VirtualNetworkInterface) GetEntity

func (m *VirtualNetworkInterface) GetEntity() *common.Entity

func (*VirtualNetworkInterface) GetId

func (m *VirtualNetworkInterface) GetId() string

func (*VirtualNetworkInterface) GetIovWeight

func (m *VirtualNetworkInterface) GetIovWeight() uint32

func (*VirtualNetworkInterface) GetIpconfigs

func (m *VirtualNetworkInterface) GetIpconfigs() []*IpConfiguration

func (*VirtualNetworkInterface) GetMacaddress

func (m *VirtualNetworkInterface) GetMacaddress() string

func (*VirtualNetworkInterface) GetName

func (m *VirtualNetworkInterface) GetName() string

func (*VirtualNetworkInterface) GetStatus

func (m *VirtualNetworkInterface) GetStatus() *common.Status

func (*VirtualNetworkInterface) GetTags added in v0.10.5

func (m *VirtualNetworkInterface) GetTags() *common.Tags

func (*VirtualNetworkInterface) GetType

func (*VirtualNetworkInterface) GetVirtualMachineName

func (m *VirtualNetworkInterface) GetVirtualMachineName() string

func (*VirtualNetworkInterface) ProtoMessage

func (*VirtualNetworkInterface) ProtoMessage()

func (*VirtualNetworkInterface) Reset

func (m *VirtualNetworkInterface) Reset()

func (*VirtualNetworkInterface) String

func (m *VirtualNetworkInterface) String() string

func (*VirtualNetworkInterface) XXX_DiscardUnknown

func (m *VirtualNetworkInterface) XXX_DiscardUnknown()

func (*VirtualNetworkInterface) XXX_Marshal

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

func (*VirtualNetworkInterface) XXX_Merge

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

func (*VirtualNetworkInterface) XXX_Size

func (m *VirtualNetworkInterface) XXX_Size() int

func (*VirtualNetworkInterface) XXX_Unmarshal

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

type VirtualNetworkInterfaceAgentClient

type VirtualNetworkInterfaceAgentClient interface {
	Invoke(ctx context.Context, in *VirtualNetworkInterfaceRequest, opts ...grpc.CallOption) (*VirtualNetworkInterfaceResponse, error)
	CheckNotification(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*common.NotificationResponse, error)
}

VirtualNetworkInterfaceAgentClient is the client API for VirtualNetworkInterfaceAgent service.

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

func NewVirtualNetworkInterfaceAgentClient

func NewVirtualNetworkInterfaceAgentClient(cc *grpc.ClientConn) VirtualNetworkInterfaceAgentClient

type VirtualNetworkInterfaceAgentServer

type VirtualNetworkInterfaceAgentServer interface {
	Invoke(context.Context, *VirtualNetworkInterfaceRequest) (*VirtualNetworkInterfaceResponse, error)
	CheckNotification(context.Context, *empty.Empty) (*common.NotificationResponse, error)
}

VirtualNetworkInterfaceAgentServer is the server API for VirtualNetworkInterfaceAgent service.

type VirtualNetworkInterfaceRequest

type VirtualNetworkInterfaceRequest struct {
	VirtualNetworkInterfaces []*VirtualNetworkInterface `protobuf:"bytes,1,rep,name=VirtualNetworkInterfaces,proto3" json:"VirtualNetworkInterfaces,omitempty"`
	OperationType            common.Operation           `protobuf:"varint,2,opt,name=OperationType,proto3,enum=moc.Operation" json:"OperationType,omitempty"`
	XXX_NoUnkeyedLiteral     struct{}                   `json:"-"`
	XXX_unrecognized         []byte                     `json:"-"`
	XXX_sizecache            int32                      `json:"-"`
}

func (*VirtualNetworkInterfaceRequest) Descriptor

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

func (*VirtualNetworkInterfaceRequest) GetOperationType

func (m *VirtualNetworkInterfaceRequest) GetOperationType() common.Operation

func (*VirtualNetworkInterfaceRequest) GetVirtualNetworkInterfaces

func (m *VirtualNetworkInterfaceRequest) GetVirtualNetworkInterfaces() []*VirtualNetworkInterface

func (*VirtualNetworkInterfaceRequest) ProtoMessage

func (*VirtualNetworkInterfaceRequest) ProtoMessage()

func (*VirtualNetworkInterfaceRequest) Reset

func (m *VirtualNetworkInterfaceRequest) Reset()

func (*VirtualNetworkInterfaceRequest) String

func (*VirtualNetworkInterfaceRequest) XXX_DiscardUnknown

func (m *VirtualNetworkInterfaceRequest) XXX_DiscardUnknown()

func (*VirtualNetworkInterfaceRequest) XXX_Marshal

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

func (*VirtualNetworkInterfaceRequest) XXX_Merge

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

func (*VirtualNetworkInterfaceRequest) XXX_Size

func (m *VirtualNetworkInterfaceRequest) XXX_Size() int

func (*VirtualNetworkInterfaceRequest) XXX_Unmarshal

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

type VirtualNetworkInterfaceResponse

type VirtualNetworkInterfaceResponse struct {
	VirtualNetworkInterfaces []*VirtualNetworkInterface `protobuf:"bytes,1,rep,name=VirtualNetworkInterfaces,proto3" json:"VirtualNetworkInterfaces,omitempty"`
	Result                   *wrappers.BoolValue        `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"`
	Error                    string                     `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"`
	XXX_NoUnkeyedLiteral     struct{}                   `json:"-"`
	XXX_unrecognized         []byte                     `json:"-"`
	XXX_sizecache            int32                      `json:"-"`
}

func (*VirtualNetworkInterfaceResponse) Descriptor

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

func (*VirtualNetworkInterfaceResponse) GetError

func (*VirtualNetworkInterfaceResponse) GetResult

func (*VirtualNetworkInterfaceResponse) GetVirtualNetworkInterfaces

func (m *VirtualNetworkInterfaceResponse) GetVirtualNetworkInterfaces() []*VirtualNetworkInterface

func (*VirtualNetworkInterfaceResponse) ProtoMessage

func (*VirtualNetworkInterfaceResponse) ProtoMessage()

func (*VirtualNetworkInterfaceResponse) Reset

func (*VirtualNetworkInterfaceResponse) String

func (*VirtualNetworkInterfaceResponse) XXX_DiscardUnknown

func (m *VirtualNetworkInterfaceResponse) XXX_DiscardUnknown()

func (*VirtualNetworkInterfaceResponse) XXX_Marshal

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

func (*VirtualNetworkInterfaceResponse) XXX_Merge

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

func (*VirtualNetworkInterfaceResponse) XXX_Size

func (m *VirtualNetworkInterfaceResponse) XXX_Size() int

func (*VirtualNetworkInterfaceResponse) XXX_Unmarshal

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

type VirtualNetworkInterface_NetworkInterfaceType

type VirtualNetworkInterface_NetworkInterfaceType int32
const (
	VirtualNetworkInterface_Local  VirtualNetworkInterface_NetworkInterfaceType = 0
	VirtualNetworkInterface_Remote VirtualNetworkInterface_NetworkInterfaceType = 1
)

func (VirtualNetworkInterface_NetworkInterfaceType) EnumDescriptor

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

func (VirtualNetworkInterface_NetworkInterfaceType) String

type VirtualNetworkRequest

type VirtualNetworkRequest struct {
	VirtualNetworks      []*VirtualNetwork `protobuf:"bytes,1,rep,name=VirtualNetworks,proto3" json:"VirtualNetworks,omitempty"`
	OperationType        common.Operation  `protobuf:"varint,2,opt,name=OperationType,proto3,enum=moc.Operation" json:"OperationType,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*VirtualNetworkRequest) Descriptor

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

func (*VirtualNetworkRequest) GetOperationType

func (m *VirtualNetworkRequest) GetOperationType() common.Operation

func (*VirtualNetworkRequest) GetVirtualNetworks

func (m *VirtualNetworkRequest) GetVirtualNetworks() []*VirtualNetwork

func (*VirtualNetworkRequest) ProtoMessage

func (*VirtualNetworkRequest) ProtoMessage()

func (*VirtualNetworkRequest) Reset

func (m *VirtualNetworkRequest) Reset()

func (*VirtualNetworkRequest) String

func (m *VirtualNetworkRequest) String() string

func (*VirtualNetworkRequest) XXX_DiscardUnknown

func (m *VirtualNetworkRequest) XXX_DiscardUnknown()

func (*VirtualNetworkRequest) XXX_Marshal

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

func (*VirtualNetworkRequest) XXX_Merge

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

func (*VirtualNetworkRequest) XXX_Size

func (m *VirtualNetworkRequest) XXX_Size() int

func (*VirtualNetworkRequest) XXX_Unmarshal

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

type VirtualNetworkResponse

type VirtualNetworkResponse struct {
	VirtualNetworks      []*VirtualNetwork   `protobuf:"bytes,1,rep,name=VirtualNetworks,proto3" json:"VirtualNetworks,omitempty"`
	Result               *wrappers.BoolValue `protobuf:"bytes,2,opt,name=Result,proto3" json:"Result,omitempty"`
	Error                string              `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*VirtualNetworkResponse) Descriptor

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

func (*VirtualNetworkResponse) GetError

func (m *VirtualNetworkResponse) GetError() string

func (*VirtualNetworkResponse) GetResult

func (m *VirtualNetworkResponse) GetResult() *wrappers.BoolValue

func (*VirtualNetworkResponse) GetVirtualNetworks

func (m *VirtualNetworkResponse) GetVirtualNetworks() []*VirtualNetwork

func (*VirtualNetworkResponse) ProtoMessage

func (*VirtualNetworkResponse) ProtoMessage()

func (*VirtualNetworkResponse) Reset

func (m *VirtualNetworkResponse) Reset()

func (*VirtualNetworkResponse) String

func (m *VirtualNetworkResponse) String() string

func (*VirtualNetworkResponse) XXX_DiscardUnknown

func (m *VirtualNetworkResponse) XXX_DiscardUnknown()

func (*VirtualNetworkResponse) XXX_Marshal

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

func (*VirtualNetworkResponse) XXX_Merge

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

func (*VirtualNetworkResponse) XXX_Size

func (m *VirtualNetworkResponse) XXX_Size() int

func (*VirtualNetworkResponse) XXX_Unmarshal

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

type VirtualNetworkType

type VirtualNetworkType int32
const (
	VirtualNetworkType_NAT         VirtualNetworkType = 0
	VirtualNetworkType_Transparent VirtualNetworkType = 1
	VirtualNetworkType_L2Bridge    VirtualNetworkType = 2
	VirtualNetworkType_L2Tunnel    VirtualNetworkType = 3
	VirtualNetworkType_ICS         VirtualNetworkType = 4
	VirtualNetworkType_Private     VirtualNetworkType = 5
	VirtualNetworkType_Overlay     VirtualNetworkType = 6
	VirtualNetworkType_Internal    VirtualNetworkType = 7
	VirtualNetworkType_Mirrored    VirtualNetworkType = 8
)

func (VirtualNetworkType) EnumDescriptor

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

func (VirtualNetworkType) String

func (x VirtualNetworkType) String() string

Jump to

Keyboard shortcuts

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