示例#1
0
文件: environs.go 项目: jkary/core
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"))
}
示例#2
0
文件: provider.go 项目: jkary/core
func init() {
	p := manualProvider{}
	environs.RegisterProvider("manual", p, "null")
}
示例#3
0
func init() {
	environs.RegisterProvider("maas", maasEnvironProvider{})
}