Documentation ¶
Index ¶
- Constants
- type Client
- func (client *Client) AllocateIP(ID string, checkAlive bool) (*net.IPNet, error)
- func (client *Client) AllocateIPInSubnet(ID string, subnet *net.IPNet, checkAlive bool) (*net.IPNet, error)
- func (client *Client) ClaimIP(ID string, cidr *net.IPNet, checkAlive bool) 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) Expose(ipAddr *net.IPNet) error
- func (client *Client) IsReady() bool
- 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
- func (client *Client) ReplacePeers(peers []string) error
- func (client *Client) RmPeer(peerName string) (string, error)
- func (client *Client) WaitAPIServer(n int)
- type Logger
Constants ¶
const ( WeaveHTTPHost = "127.0.0.1" WeaveHTTPPort = 6784 )
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) IsReady ¶
IsReady returns true if the API server is up and running (note it returns StatusServiceUnavailable until all parts are ready, but callers of this function are expected to be ok with a partial service)
func (*Client) RegisterWithDNS ¶
func (*Client) ReleaseIPsFor ¶ added in v1.5.0
release all IPs owned by an ID
func (*Client) ReplacePeers ¶
ReplacePeers replace the current set of peers
func (*Client) WaitAPIServer ¶
WaitAPIServer waits until the API server is ready to serve.