Don't use zone for regional load balancers.

This commit is contained in:
Brendan Burns
2014-08-04 09:58:10 -07:00
parent 1d8407cf7d
commit c27ab18481
5 changed files with 37 additions and 13 deletions

View File

@@ -51,8 +51,14 @@ type Instances interface {
List(filter string) ([]string, error)
}
// Zone represents the location of a particular machine
type Zone struct {
FailureDomain string
Region string
}
// Zones is an abstract, pluggable interface for zone enumeration.
type Zones interface {
// GetZone returns the name of the current failure zone that the program is running in
GetZone() (string, error)
// GetZone returns the Zone containing the current failure zone and locality region that the program is running in
GetZone() (Zone, error)
}