Beispiel #1
0
func init() {
	environs.RegisterProvider("dummy", &providerInstance)

	// Prime the first ops channel, so that naive clients can use
	// the testing environment by simply importing it.
	c := make(chan Operation)
	go func() {
		for _ = range c {
		}
	}()
	discardOperations = c
	Reset()

	// parse errors are ignored
	providerDelay, _ = time.ParseDuration(os.Getenv("JUJU_DUMMY_DELAY"))
}
Beispiel #2
0
func init() {
	p := manualProvider{}
	environs.RegisterProvider("manual", p, "null")
}
Beispiel #3
0
func init() {
	environs.RegisterProvider("maas", maasEnvironProvider{})
}