Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterIpamServer(s grpc.ServiceRegistrar, 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
- type UnsafeIpamServer
Constants ¶
const ( Ipam_Allocate_FullMethodName = "/ipam.v1.Ipam/Allocate" Ipam_Release_FullMethodName = "/ipam.v1.Ipam/Release" )
Variables ¶
var ( IPFamily_name = map[int32]string{ 0: "IPV4", 1: "IPV6", } IPFamily_value = map[string]int32{ "IPV4": 0, "IPV6": 1, } )
Enum value maps for IPFamily.
var File_api_ipam_v1_ipam_proto protoreflect.FileDescriptor
var Ipam_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ipam.v1.Ipam", HandlerType: (*IpamServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Allocate", Handler: _Ipam_Allocate_Handler, }, { MethodName: "Release", Handler: _Ipam_Release_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/ipam/v1/ipam.proto", }
Ipam_ServiceDesc is the grpc.ServiceDesc for Ipam service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterIpamServer ¶
func RegisterIpamServer(s grpc.ServiceRegistrar, 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://pkg.go.dev/google.golang.org/grpc/?tab=doc#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) // contains filtered or unexported methods }
IpamServer is the server API for Ipam service. All implementations must embed UnimplementedIpamServer for forward compatibility
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 must be embedded to have forward compatible implementations.
type UnsafeIpamServer ¶ added in v0.8.0
type UnsafeIpamServer interface {
// contains filtered or unexported methods
}
UnsafeIpamServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IpamServer will result in compilation errors.