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

Side by Side Diff: provider/ec2/ec2.go

Issue 91740043: Support placement directives on bootstrap
Patch Set: Support placement directives on bootstrap Created 10 years, 11 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/dummy/environs.go ('k') | provider/ec2/local_test.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 2011, 2012, 2013 Canonical Ltd. 1 // Copyright 2011, 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 ec2 4 package ec2
5 5
6 import ( 6 import (
7 "fmt" 7 "fmt"
8 "sync" 8 "sync"
9 "time" 9 "time"
10 10
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 return e.name 316 return e.name
317 } 317 }
318 318
319 func (e *environ) Storage() storage.Storage { 319 func (e *environ) Storage() storage.Storage {
320 e.ecfgMutex.Lock() 320 e.ecfgMutex.Lock()
321 stor := e.storageUnlocked 321 stor := e.storageUnlocked
322 e.ecfgMutex.Unlock() 322 e.ecfgMutex.Unlock()
323 return stor 323 return stor
324 } 324 }
325 325
326 func (e *environ) Bootstrap(ctx environs.BootstrapContext, cons constraints.Valu e) error { 326 func (e *environ) Bootstrap(ctx environs.BootstrapContext, args environs.Bootstr apParams) error {
327 » return common.Bootstrap(ctx, e, cons) 327 » return common.Bootstrap(ctx, e, args)
328 } 328 }
329 329
330 func (e *environ) StateInfo() (*state.Info, *api.Info, error) { 330 func (e *environ) StateInfo() (*state.Info, *api.Info, error) {
331 return common.StateInfo(e) 331 return common.StateInfo(e)
332 } 332 }
333 333
334 // SupportedArchitectures is specified on the EnvironCapability interface. 334 // SupportedArchitectures is specified on the EnvironCapability interface.
335 func (e *environ) SupportedArchitectures() ([]string, error) { 335 func (e *environ) SupportedArchitectures() ([]string, error) {
336 e.archMutex.Lock() 336 e.archMutex.Lock()
337 defer e.archMutex.Unlock() 337 defer e.archMutex.Unlock()
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
1116 return sources, nil 1116 return sources, nil
1117 } 1117 }
1118 1118
1119 // GetToolsSources returns a list of sources which are used to search for simple streams tools metadata. 1119 // GetToolsSources returns a list of sources which are used to search for simple streams tools metadata.
1120 func (e *environ) GetToolsSources() ([]simplestreams.DataSource, error) { 1120 func (e *environ) GetToolsSources() ([]simplestreams.DataSource, error) {
1121 // Add the simplestreams source off the control bucket. 1121 // Add the simplestreams source off the control bucket.
1122 sources := []simplestreams.DataSource{ 1122 sources := []simplestreams.DataSource{
1123 storage.NewStorageSimpleStreamsDataSource("cloud storage", e.Sto rage(), storage.BaseToolsPath)} 1123 storage.NewStorageSimpleStreamsDataSource("cloud storage", e.Sto rage(), storage.BaseToolsPath)}
1124 return sources, nil 1124 return sources, nil
1125 } 1125 }
OLDNEW
« no previous file with comments | « provider/dummy/environs.go ('k') | provider/ec2/local_test.go » ('j') | no next file with comments »

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