OLD | NEW |
1 // Copyright 2012, 2013 Canonical Ltd. | 1 // Copyright 2012, 2013 Canonical Ltd. |
2 // Licensed under the AGPLv3, see LICENCE file for details. | 2 // Licensed under the AGPLv3, see LICENCE file for details. |
3 | 3 |
4 package openstack | 4 package openstack |
5 | 5 |
6 import ( | 6 import ( |
7 "bytes" | 7 "bytes" |
8 "fmt" | 8 "fmt" |
9 "launchpad.net/goose/identity" | 9 "launchpad.net/goose/identity" |
10 "launchpad.net/goose/nova" | 10 "launchpad.net/goose/nova" |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 } | 245 } |
246 | 246 |
247 func GetSwiftURL(e environs.Environ) (string, error) { | 247 func GetSwiftURL(e environs.Environ) (string, error) { |
248 return e.(*environ).client.MakeServiceURL("object-store", nil) | 248 return e.(*environ).client.MakeServiceURL("object-store", nil) |
249 } | 249 } |
250 | 250 |
251 func SetUseFloatingIP(e environs.Environ, val bool) { | 251 func SetUseFloatingIP(e environs.Environ, val bool) { |
252 env := e.(*environ) | 252 env := e.(*environ) |
253 env.ecfg().attrs["use-floating-ip"] = val | 253 env.ecfg().attrs["use-floating-ip"] = val |
254 } | 254 } |
| 255 |
| 256 func EnsureGroup(e environs.Environ, name string, rules []nova.RuleInfo) (nova.S
ecurityGroup, error) { |
| 257 return e.(*environ).ensureGroup(name, rules) |
| 258 } |
OLD | NEW |