Documentation ¶
Index ¶
- Constants
- type Client
- func (client *Client) AllocateIP(ID string) (*net.IPNet, error)
- func (client *Client) AllocateIPInSubnet(ID string, subnet *net.IPNet) (*net.IPNet, error)
- func (client *Client) ClaimIP(ID string, cidr *net.IPNet) error
- func (client *Client) Connect(remote string) error
- func (client *Client) DNSDomain() (string, error)
- func (client *Client) DefaultSubnet() (*net.IPNet, error)
- func (client *Client) DeregisterWithDNS(ID string, ip string) error
- func (client *Client) LookupIP(ID string) (*net.IPNet, error)
- func (client *Client) RegisterWithDNS(ID string, fqdn string, ip string) error
- func (client *Client) ReleaseIPsFor(ID string) error
- type Logger
Constants ¶
View Source
const ( WeaveHTTPHost = "127.0.0.1" WeaveHTTPPort = 6784 )
View Source
const NoContainerID string = "_"
Special token used in place of a container identifier when: - the caller does not know the container ID, or - the caller is unsure whether IPAM was previously told the container ID.
While addresses are typically stored under their container IDs, when this token is used, the address will be stored under its own string, something which should be kept in mind if the entry needs to be removed at any point.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AllocateIP ¶
returns an IP for the ID given, allocating a fresh one if necessary
func (*Client) AllocateIPInSubnet ¶ added in v1.5.0
func (*Client) DeregisterWithDNS ¶
func (*Client) RegisterWithDNS ¶
func (*Client) ReleaseIPsFor ¶ added in v1.5.0
release all IPs owned by an ID
Click to show internal directories.
Click to hide internal directories.