Merge pull request #5346 from justinsb/cloudprovider_multiple_addresses

Let CloudProvider return list of NodeAddress, not just one net.IP
This commit is contained in:
Alex Robinson
2015-03-13 15:45:11 -07:00
14 changed files with 59 additions and 51 deletions

View File

@@ -57,8 +57,8 @@ type TCPLoadBalancer interface {
// Instances is an abstract, pluggable interface for sets of instances.
type Instances interface {
// IPAddress returns an IP address of the specified instance.
IPAddress(name string) (net.IP, error)
// NodeAddresses returns the addresses of the specified instance.
NodeAddresses(name string) ([]api.NodeAddress, error)
// ExternalID returns the cloud provider ID of the specified instance.
ExternalID(name string) (string, error)
// List lists instances that match 'filter' which is a regular expression which must match the entire instance name (fqdn)