Example #1
0
File: uniter.go Project: 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,
	}
}
Example #2
0
// NewFacade returns a new api client facade instance.
func NewFacade(caller base.Caller) *Facade {
	return &Facade{
		EnvironWatcher: common.NewEnvironWatcher(apiName, caller),
	}
}
Example #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),
	}
}