Merge pull request #1237 from hashicorp/b-regions

CLI can forward request to different regions
This commit is contained in:
Alex Dadgar
2016-06-08 11:00:23 -07:00
7 changed files with 45 additions and 1 deletions

View File

@@ -126,6 +126,11 @@ func NewClient(config *Config) (*Client, error) {
return client, nil
}
// SetRegion sets the region to forward API requests to.
func (c *Client) SetRegion(region string) {
c.config.Region = region
}
// request is used to help build up a request
type request struct {
config *Config