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