ipam

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Subnet.ProtoReflect.Descriptor instead.

func (*Subnet) GetAddress

func (x *Subnet) GetAddress() string

func (*Subnet) GetPrefixLength

func (x *Subnet) GetPrefixLength() int32

func (*Subnet) ProtoMessage

func (*Subnet) ProtoMessage()

func (*Subnet) ProtoReflect

func (x *Subnet) ProtoReflect() protoreflect.Message

func (*Subnet) Reset

func (x *Subnet) Reset()

func (*Subnet) String

func (x *Subnet) String() string

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) Release

Jump to

Keyboard shortcuts

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