Documentation ¶
Index ¶
- Variables
- func RegisterIpamServer(s *grpc.Server, srv IpamServer)
- type Child
- type IPFamily
- type IpamClient
- type IpamServer
- type Prefix
- func (*Prefix) Descriptor() ([]byte, []int)deprecated
- func (x *Prefix) GetAddress() string
- func (x *Prefix) GetPrefixLength() int32
- func (*Prefix) ProtoMessage()
- func (x *Prefix) ProtoReflect() protoreflect.Message
- func (x *Prefix) Reset()
- func (x *Prefix) String() string
- func (p *Prefix) ToString() string
- type Subnet
- func (*Subnet) Descriptor() ([]byte, []int)deprecated
- func (x *Subnet) GetConduit() *v1.Conduit
- func (x *Subnet) GetIpFamily() IPFamily
- func (x *Subnet) GetNode() string
- func (*Subnet) ProtoMessage()
- func (x *Subnet) ProtoReflect() protoreflect.Message
- func (x *Subnet) Reset()
- func (x *Subnet) String() string
- func (s *Subnet) ToString() string
- type UnimplementedIpamServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IPFamily_name = map[int32]string{ 0: "IPV4", 1: "IPV6", } IPFamily_value = map[string]int32{ "IPV4": 0, "IPV6": 1, } )
Enum value maps for IPFamily.
View Source
var File_api_ipam_v1_ipam_proto protoreflect.FileDescriptor
Functions ¶
func RegisterIpamServer ¶
func RegisterIpamServer(s *grpc.Server, srv IpamServer)
Types ¶
type Child ¶
type Child struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Subnet *Subnet `protobuf:"bytes,2,opt,name=subnet,proto3" json:"subnet,omitempty"` // contains filtered or unexported fields }
func (*Child) Descriptor
deprecated
func (*Child) ProtoMessage ¶
func (*Child) ProtoMessage()
func (*Child) ProtoReflect ¶
func (x *Child) ProtoReflect() protoreflect.Message
type IPFamily ¶
type IPFamily int32
func (IPFamily) Descriptor ¶
func (IPFamily) Descriptor() protoreflect.EnumDescriptor
func (IPFamily) EnumDescriptor
deprecated
func (IPFamily) Number ¶
func (x IPFamily) Number() protoreflect.EnumNumber
func (IPFamily) Type ¶
func (IPFamily) Type() protoreflect.EnumType
type IpamClient ¶
type IpamClient interface { Allocate(ctx context.Context, in *Child, opts ...grpc.CallOption) (*Prefix, error) Release(ctx context.Context, in *Child, opts ...grpc.CallOption) (*emptypb.Empty, error) }
IpamClient is the client API for Ipam service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewIpamClient ¶
func NewIpamClient(cc grpc.ClientConnInterface) IpamClient
type IpamServer ¶
type IpamServer interface { Allocate(context.Context, *Child) (*Prefix, error) Release(context.Context, *Child) (*emptypb.Empty, error) }
IpamServer is the server API for Ipam service.
type Prefix ¶
type Prefix 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 (*Prefix) Descriptor
deprecated
func (*Prefix) GetAddress ¶
func (*Prefix) GetPrefixLength ¶
func (*Prefix) ProtoMessage ¶
func (*Prefix) ProtoMessage()
func (*Prefix) ProtoReflect ¶
func (x *Prefix) ProtoReflect() protoreflect.Message
type Subnet ¶
type Subnet struct { Conduit *v1.Conduit `protobuf:"bytes,1,opt,name=conduit,proto3" json:"conduit,omitempty"` Node string `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"` IpFamily IPFamily `protobuf:"varint,3,opt,name=ipFamily,proto3,enum=ipam.v1.IPFamily" json:"ipFamily,omitempty"` // contains filtered or unexported fields }
func (*Subnet) Descriptor
deprecated
func (*Subnet) GetConduit ¶
func (*Subnet) GetIpFamily ¶
func (*Subnet) ProtoMessage ¶
func (*Subnet) ProtoMessage()
func (*Subnet) ProtoReflect ¶
func (x *Subnet) ProtoReflect() protoreflect.Message
type UnimplementedIpamServer ¶
type UnimplementedIpamServer struct { }
UnimplementedIpamServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.