mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 19:35:41 +03:00
Merge pull request #1237 from hashicorp/b-regions
CLI can forward request to different regions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user