Versions in this module Expand all Collapse all v0 v0.0.1 Oct 21, 2020 Changes in this version + var IpFamily_Family_name = map[int32]string + var IpFamily_Family_value = map[string]int32 + func RegisterAllocatorServer(s *grpc.Server, srv AllocatorServer) + type AllocatorClient interface + AllocateSubnet func(ctx context.Context, in *SubnetRequest, opts ...grpc.CallOption) (*Subnet, error) + FreeSubnet func(ctx context.Context, in *Subnet, opts ...grpc.CallOption) (*Empty, error) + RenewSubnetLease func(ctx context.Context, in *Subnet, opts ...grpc.CallOption) (*Subnet, error) + func NewAllocatorClient(cc *grpc.ClientConn) AllocatorClient + type AllocatorServer interface + AllocateSubnet func(context.Context, *SubnetRequest) (*Subnet, error) + FreeSubnet func(context.Context, *Subnet) (*Empty, error) + RenewSubnetLease func(context.Context, *Subnet) (*Subnet, error) + type Empty struct + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Empty) Descriptor() ([]byte, []int) + func (*Empty) ProtoMessage() + func (m *Empty) Reset() + func (m *Empty) String() string + func (m *Empty) XXX_DiscardUnknown() + func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Empty) XXX_Merge(src proto.Message) + func (m *Empty) XXX_Size() int + func (m *Empty) XXX_Unmarshal(b []byte) error + type Identifier struct + ConnectivityDomain string + Fqdn string + Name string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Identifier) Descriptor() ([]byte, []int) + func (*Identifier) ProtoMessage() + func (m *Identifier) GetConnectivityDomain() string + func (m *Identifier) GetFqdn() string + func (m *Identifier) GetName() string + func (m *Identifier) Reset() + func (m *Identifier) String() string + func (m *Identifier) Validate() error + func (m *Identifier) XXX_DiscardUnknown() + func (m *Identifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Identifier) XXX_Merge(src proto.Message) + func (m *Identifier) XXX_Size() int + func (m *Identifier) XXX_Unmarshal(b []byte) error + type IpFamily struct + Family IpFamily_Family + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*IpFamily) Descriptor() ([]byte, []int) + func (*IpFamily) ProtoMessage() + func (m *IpFamily) GetFamily() IpFamily_Family + func (m *IpFamily) GetFamilyString() string + func (m *IpFamily) Reset() + func (m *IpFamily) String() string + func (m *IpFamily) XXX_DiscardUnknown() + func (m *IpFamily) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *IpFamily) XXX_Merge(src proto.Message) + func (m *IpFamily) XXX_Size() int + func (m *IpFamily) XXX_Unmarshal(b []byte) error + type IpFamily_Family int32 + const IpFamily_IPV4 + const IpFamily_IPV6 + func (IpFamily_Family) EnumDescriptor() ([]byte, []int) + func (x IpFamily_Family) String() string + type IpPrefix struct + AddrFamily *IpFamily + Subnet string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*IpPrefix) Descriptor() ([]byte, []int) + func (*IpPrefix) ProtoMessage() + func (m *IpPrefix) GetAddrFamily() *IpFamily + func (m *IpPrefix) GetSubnet() string + func (m *IpPrefix) Reset() + func (m *IpPrefix) String() string + func (m *IpPrefix) ToIpNet() *net.IPNet + func (m *IpPrefix) Validate() error + func (m *IpPrefix) XXX_DiscardUnknown() + func (m *IpPrefix) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *IpPrefix) XXX_Merge(src proto.Message) + func (m *IpPrefix) XXX_Size() int + func (m *IpPrefix) XXX_Unmarshal(b []byte) error + type Subnet struct + Identifier *Identifier + LeaseTimeout int32 + Prefix *IpPrefix + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Subnet) Descriptor() ([]byte, []int) + func (*Subnet) ProtoMessage() + func (m *Subnet) GetIdentifier() *Identifier + func (m *Subnet) GetLeaseTimeout() int32 + func (m *Subnet) GetPrefix() *IpPrefix + func (m *Subnet) Reset() + func (m *Subnet) String() string + func (m *Subnet) Validate() error + func (m *Subnet) XXX_DiscardUnknown() + func (m *Subnet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Subnet) XXX_Merge(src proto.Message) + func (m *Subnet) XXX_Size() int + func (m *Subnet) XXX_Unmarshal(b []byte) error + type SubnetRequest struct + AddrFamily *IpFamily + Identifier *Identifier + PrefixLen uint32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*SubnetRequest) Descriptor() ([]byte, []int) + func (*SubnetRequest) ProtoMessage() + func (m *SubnetRequest) GetAddrFamily() *IpFamily + func (m *SubnetRequest) GetIdentifier() *Identifier + func (m *SubnetRequest) GetPrefixLen() uint32 + func (m *SubnetRequest) Reset() + func (m *SubnetRequest) String() string + func (m *SubnetRequest) Validate() error + func (m *SubnetRequest) XXX_DiscardUnknown() + func (m *SubnetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SubnetRequest) XXX_Merge(src proto.Message) + func (m *SubnetRequest) XXX_Size() int + func (m *SubnetRequest) XXX_Unmarshal(b []byte) error + type UnimplementedAllocatorServer struct + func (*UnimplementedAllocatorServer) AllocateSubnet(ctx context.Context, req *SubnetRequest) (*Subnet, error) + func (*UnimplementedAllocatorServer) FreeSubnet(ctx context.Context, req *Subnet) (*Empty, error) + func (*UnimplementedAllocatorServer) RenewSubnetLease(ctx context.Context, req *Subnet) (*Subnet, error)