Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ipam ¶
type Ipam struct {
// contains filtered or unexported fields
}
func (*Ipam) AllocateSubnet ¶
func (*Ipam) ReleaseSubnet ¶
type IpamClient ¶
type IpamClient struct {
// contains filtered or unexported fields
}
func NewIpamClient ¶
func NewIpamClient(ipamServiceIPPort string) (*IpamClient, error)
func (*IpamClient) AllocateSubnet ¶
func (ic *IpamClient) AllocateSubnet(subnetPool string, prefixLength int) (string, error)
type IpamService ¶
type IpamService struct { Listener net.Listener Server *grpc.Server Port int // contains filtered or unexported fields }
func (*IpamService) Allocate ¶
func (is *IpamService) Allocate(ctx context.Context, subnetRequest *ipamAPI.SubnetRequest) (*ipamAPI.Subnet, error)
Allocate -
func (*IpamService) Release ¶
func (is *IpamService) Release(ctx context.Context, subnetRelease *ipamAPI.SubnetRelease) (*empty.Empty, error)
Release -
Click to show internal directories.
Click to hide internal directories.