Esempio n. 1
0
File: uniter.go Progetto: jkary/core
// NewState creates a new client-side Uniter facade.
func NewState(caller base.Caller, authTag string) *State {
	return &State{
		EnvironWatcher: common.NewEnvironWatcher(uniterFacade, caller),
		APIAddresser:   common.NewAPIAddresser(uniterFacade, caller),
		caller:         caller,
		unitTag:        authTag,
	}
}
Esempio n. 2
0
// NewFacade returns a new api client facade instance.
func NewFacade(caller base.Caller) *Facade {
	return &Facade{
		EnvironWatcher: common.NewEnvironWatcher(apiName, caller),
	}
}
Esempio n. 3
0
// NewState creates a new client-side Firewaller facade.
func NewState(caller base.Caller) *State {
	return &State{
		caller:         caller,
		EnvironWatcher: common.NewEnvironWatcher(firewallerFacade, caller),
	}
}