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

Delta Between Two Patch Sets: environs/interface.go

Issue 6632049: various: set passwords in state at bootstrap time.
Left Patch Set: various: set passwords in state at bootstrap time. Created 12 years, 5 months ago
Right Patch Set: various: set passwords in state at bootstrap time. Created 12 years, 5 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « environs/ec2/live_test.go ('k') | juju/conn.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 package environs 1 package environs
2 2
3 import ( 3 import (
4 "errors" 4 "errors"
5 "io" 5 "io"
6 "launchpad.net/juju-core/environs/config" 6 "launchpad.net/juju-core/environs/config"
7 "launchpad.net/juju-core/state" 7 "launchpad.net/juju-core/state"
8 ) 8 )
9 9
10 // A EnvironProvider represents a computing and storage provider. 10 // A EnvironProvider represents a computing and storage provider.
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // an operation succeeds, even if that success is not 117 // an operation succeeds, even if that success is not
118 // consistent with a previous operation. 118 // consistent with a previous operation.
119 //· 119 //·
120 type Environ interface { 120 type Environ interface {
121 // Name returns the Environ's name. 121 // Name returns the Environ's name.
122 Name() string 122 Name() string
123 123
124 // Bootstrap initializes the state for the environment, possibly 124 // Bootstrap initializes the state for the environment, possibly
125 // starting one or more instances. If uploadTools is true, the 125 // starting one or more instances. If uploadTools is true, the
126 // current version of the juju tools will be uploaded and used 126 // current version of the juju tools will be uploaded and used
127 » // on the environment's instances. 127 » // on the environment's instances. If the configuration's
128 » // If the configuration's AdminSecret is non-empty, the 128 » // AdminSecret is non-empty, the adminstrator password on the
129 » // adminstrator password on the newly bootstrapped 129 » // newly bootstrapped state will be set to a hash of it (see
130 » // state will be set to a hash of it (see trivial.PasswordHash), 130 » // trivial.PasswordHash), When first connecting to the
131 » // and should be changed at the first opportunity. 131 » // environment via the juju package, the password hash will be
132 » // automatically replaced by the real password.
132 Bootstrap(uploadTools bool) error 133 Bootstrap(uploadTools bool) error
133 134
134 // StateInfo returns information on the state initialized 135 // StateInfo returns information on the state initialized
135 // by Bootstrap. 136 // by Bootstrap.
136 StateInfo() (*state.Info, error) 137 StateInfo() (*state.Info, error)
137 138
138 // Config returns the current configuration of this Environ. 139 // Config returns the current configuration of this Environ.
139 Config() *config.Config 140 Config() *config.Config
140 141
141 // SetConfig updates the Environs configuration. 142 // SetConfig updates the Environs configuration.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // When Destroy has been called, any Environ referring to the 186 // When Destroy has been called, any Environ referring to the
186 // same remote environment may become invalid 187 // same remote environment may become invalid
187 Destroy(insts []Instance) error 188 Destroy(insts []Instance) error
188 189
189 // AssignmentPolicy returns the environment's unit assignment policy. 190 // AssignmentPolicy returns the environment's unit assignment policy.
190 AssignmentPolicy() state.AssignmentPolicy 191 AssignmentPolicy() state.AssignmentPolicy
191 192
192 // Provider returns the EnvironProvider that created this Environ. 193 // Provider returns the EnvironProvider that created this Environ.
193 Provider() EnvironProvider 194 Provider() EnvironProvider
194 } 195 }
LEFTRIGHT

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