// APIHostPorts returns a slice of network.HostPort for each API server. func (c *Client) APIHostPorts() ([][]network.HostPort, error) { var result params.APIHostPortsResult if err := c.facade.FacadeCall("APIHostPorts", nil, &result); err != nil { return nil, err } return result.NetworkHostsPorts(), nil }
// APIHostPorts returns the host/port addresses of the API servers. func (a *APIAddresser) APIHostPorts() ([][]network.HostPort, error) { var result params.APIHostPortsResult err := a.facade.FacadeCall("APIHostPorts", nil, &result) if err != nil { return nil, err } return result.NetworkHostsPorts(), nil }