Documentation
¶
Index ¶
- Variables
- func RegisterIpamServiceServer(s *grpc.Server, srv IpamServiceServer)
- type IpamServiceClient
- type IpamServiceServer
- type Subnet
- type SubnetRelease
- func (*SubnetRelease) Descriptor() ([]byte, []int)deprecated
- func (x *SubnetRelease) GetSubnet() *Subnet
- func (x *SubnetRelease) GetSubnetPool() *Subnet
- func (*SubnetRelease) ProtoMessage()
- func (x *SubnetRelease) ProtoReflect() protoreflect.Message
- func (x *SubnetRelease) Reset()
- func (x *SubnetRelease) String() string
- type SubnetRequest
- func (*SubnetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubnetRequest) GetPrefixLength() int32
- func (x *SubnetRequest) GetSubnetPool() *Subnet
- func (*SubnetRequest) ProtoMessage()
- func (x *SubnetRequest) ProtoReflect() protoreflect.Message
- func (x *SubnetRequest) Reset()
- func (x *SubnetRequest) String() string
- type UnimplementedIpamServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_api_ipam_ipam_proto protoreflect.FileDescriptor
Functions ¶
func RegisterIpamServiceServer ¶
func RegisterIpamServiceServer(s *grpc.Server, srv IpamServiceServer)
Types ¶
type IpamServiceClient ¶
type IpamServiceClient interface { Allocate(ctx context.Context, in *SubnetRequest, opts ...grpc.CallOption) (*Subnet, error) Release(ctx context.Context, in *SubnetRelease, opts ...grpc.CallOption) (*emptypb.Empty, error) }
IpamServiceClient is the client API for IpamService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewIpamServiceClient ¶
func NewIpamServiceClient(cc grpc.ClientConnInterface) IpamServiceClient
type IpamServiceServer ¶
type IpamServiceServer interface { Allocate(context.Context, *SubnetRequest) (*Subnet, error) Release(context.Context, *SubnetRelease) (*emptypb.Empty, error) }
IpamServiceServer is the server API for IpamService service.
type Subnet ¶
type Subnet struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` PrefixLength int32 `protobuf:"varint,2,opt,name=prefixLength,proto3" json:"prefixLength,omitempty"` // contains filtered or unexported fields }
func (*Subnet) Descriptor
deprecated
func (*Subnet) GetAddress ¶
func (*Subnet) GetPrefixLength ¶
func (*Subnet) ProtoMessage ¶
func (*Subnet) ProtoMessage()
func (*Subnet) ProtoReflect ¶
func (x *Subnet) ProtoReflect() protoreflect.Message
type SubnetRelease ¶
type SubnetRelease struct { SubnetPool *Subnet `protobuf:"bytes,1,opt,name=subnetPool,proto3" json:"subnetPool,omitempty"` Subnet *Subnet `protobuf:"bytes,2,opt,name=subnet,proto3" json:"subnet,omitempty"` // contains filtered or unexported fields }
func (*SubnetRelease) Descriptor
deprecated
func (*SubnetRelease) Descriptor() ([]byte, []int)
Deprecated: Use SubnetRelease.ProtoReflect.Descriptor instead.
func (*SubnetRelease) GetSubnet ¶
func (x *SubnetRelease) GetSubnet() *Subnet
func (*SubnetRelease) GetSubnetPool ¶
func (x *SubnetRelease) GetSubnetPool() *Subnet
func (*SubnetRelease) ProtoMessage ¶
func (*SubnetRelease) ProtoMessage()
func (*SubnetRelease) ProtoReflect ¶
func (x *SubnetRelease) ProtoReflect() protoreflect.Message
func (*SubnetRelease) Reset ¶
func (x *SubnetRelease) Reset()
func (*SubnetRelease) String ¶
func (x *SubnetRelease) String() string
type SubnetRequest ¶
type SubnetRequest struct { SubnetPool *Subnet `protobuf:"bytes,1,opt,name=subnetPool,proto3" json:"subnetPool,omitempty"` PrefixLength int32 `protobuf:"varint,2,opt,name=prefixLength,proto3" json:"prefixLength,omitempty"` // contains filtered or unexported fields }
func (*SubnetRequest) Descriptor
deprecated
func (*SubnetRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubnetRequest.ProtoReflect.Descriptor instead.
func (*SubnetRequest) GetPrefixLength ¶
func (x *SubnetRequest) GetPrefixLength() int32
func (*SubnetRequest) GetSubnetPool ¶
func (x *SubnetRequest) GetSubnetPool() *Subnet
func (*SubnetRequest) ProtoMessage ¶
func (*SubnetRequest) ProtoMessage()
func (*SubnetRequest) ProtoReflect ¶
func (x *SubnetRequest) ProtoReflect() protoreflect.Message
func (*SubnetRequest) Reset ¶
func (x *SubnetRequest) Reset()
func (*SubnetRequest) String ¶
func (x *SubnetRequest) String() string
type UnimplementedIpamServiceServer ¶
type UnimplementedIpamServiceServer struct { }
UnimplementedIpamServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedIpamServiceServer) Allocate ¶
func (*UnimplementedIpamServiceServer) Allocate(context.Context, *SubnetRequest) (*Subnet, error)
func (*UnimplementedIpamServiceServer) Release ¶
func (*UnimplementedIpamServiceServer) Release(context.Context, *SubnetRelease) (*emptypb.Empty, error)
Click to show internal directories.
Click to hide internal directories.