github.com/altoros/juju-vmware@v0.0.0-20150312064031-f19ae857ccca/provider/manual/export_test.go (about) 1 // Copyright 2014 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package manual 5 6 import ( 7 "github.com/juju/juju/environs" 8 ) 9 10 var ( 11 ProviderInstance = manualProvider{} 12 NewSSHStorage = &newSSHStorage 13 InitUbuntuUser = &initUbuntuUser 14 ) 15 16 func EnvironUseSSHStorage(env environs.Environ) bool { 17 e, ok := env.(*manualEnviron) 18 if !ok { 19 return false 20 } 21 return e.cfg.useSSHStorage() 22 }