launchpad.net/~rogpeppe/juju-core/500-errgo-fix@v0.0.0-20140213181702-000000002356/provider/maas/export_test.go (about) 1 // Copyright 2012, 2013 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package maas 5 6 import ( 7 "launchpad.net/gomaasapi" 8 9 "launchpad.net/juju-core/environs" 10 ) 11 12 var ( 13 ShortAttempt = &shortAttempt 14 APIVersion = apiVersion 15 ) 16 17 func MAASAgentName(env environs.Environ) string { 18 return env.(*maasEnviron).ecfg().maasAgentName() 19 } 20 21 func GetMAASClient(env environs.Environ) *gomaasapi.MAASObject { 22 return env.(*maasEnviron).getMAASClient() 23 }