OLD | NEW |
1 // Copyright 2013 Canonical Ltd. | 1 // Copyright 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 manual | 4 package manual |
5 | 5 |
6 import ( | 6 import ( |
7 "bytes" | 7 "bytes" |
8 "errors" | 8 "errors" |
9 "fmt" | 9 "fmt" |
10 "net" | 10 "net" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 // storageTmpSubdir is the subdirectory of | 43 // storageTmpSubdir is the subdirectory of |
44 // dataDir in which temporary storage will | 44 // dataDir in which temporary storage will |
45 // be located. | 45 // be located. |
46 storageTmpSubdir = "storage-tmp" | 46 storageTmpSubdir = "storage-tmp" |
47 ) | 47 ) |
48 | 48 |
49 var logger = loggo.GetLogger("juju.provider.manual") | 49 var logger = loggo.GetLogger("juju.provider.manual") |
50 | 50 |
51 type manualEnviron struct { | 51 type manualEnviron struct { |
| 52 common.SupportsUnitPlacementPolicy |
| 53 |
52 cfg *environConfig | 54 cfg *environConfig |
53 cfgmutex sync.Mutex | 55 cfgmutex sync.Mutex |
54 storage storage.Storage | 56 storage storage.Storage |
55 ubuntuUserInited bool | 57 ubuntuUserInited bool |
56 ubuntuUserInitMutex sync.Mutex | 58 ubuntuUserInitMutex sync.Mutex |
57 } | 59 } |
58 | 60 |
59 var _ envtools.SupportsCustomSources = (*manualEnviron)(nil) | 61 var _ envtools.SupportsCustomSources = (*manualEnviron)(nil) |
60 | 62 |
61 var errNoStartInstance = errors.New("manual provider cannot start instances") | 63 var errNoStartInstance = errors.New("manual provider cannot start instances") |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 } | 317 } |
316 } | 318 } |
317 return hostnames | 319 return hostnames |
318 } | 320 } |
319 | 321 |
320 func (e *manualEnviron) StorageAuthKey() string { | 322 func (e *manualEnviron) StorageAuthKey() string { |
321 return e.envConfig().storageAuthKey() | 323 return e.envConfig().storageAuthKey() |
322 } | 324 } |
323 | 325 |
324 var _ localstorage.LocalTLSStorageConfig = (*manualEnviron)(nil) | 326 var _ localstorage.LocalTLSStorageConfig = (*manualEnviron)(nil) |
OLD | NEW |