commit | 8280cb72c965987c79e66a7fe702c1b6f350c775 | [log] [tgz] |
---|---|---|
author | Samuel A. Falvo II <sam.falvo@rackspace.com> | Mon Jan 06 15:06:53 2014 -0800 |
committer | Samuel A. Falvo II <sam.falvo@rackspace.com> | Mon Jan 06 15:06:53 2014 -0800 |
tree | 2e5cacbee909d90659920d7d75b921912cfb3e16 | |
parent | 0d8c2653f4ae2e52c696ebf1192d6c91c176226b [diff] [blame] |
Provide API for building AuthOptions from env vars.
diff --git a/osutil/region.go b/osutil/region.go new file mode 100644 index 0000000..31288df --- /dev/null +++ b/osutil/region.go
@@ -0,0 +1,10 @@ +package osutil + +import "os" + +// Region provides a means of querying the OS_REGION_NAME environment variable. +// At present, you may also use os.Getenv("OS_REGION_NAME") as well. +func Region() string { + return os.Getenv("OS_REGION_NAME") +} +