Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1247)

Side by Side Diff: provider/manual/environ.go

Issue 77820044: Add EnvironCapability to state.Policy
Patch Set: Add EnvironCapability to state.Policy Created 9 years, 12 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « provider/maas/environ.go ('k') | provider/openstack/provider.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « provider/maas/environ.go ('k') | provider/openstack/provider.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b