// 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, } }
// NewFacade returns a new api client facade instance. func NewFacade(caller base.Caller) *Facade { return &Facade{ EnvironWatcher: common.NewEnvironWatcher(apiName, caller), } }
// NewState creates a new client-side Firewaller facade. func NewState(caller base.Caller) *State { return &State{ caller: caller, EnvironWatcher: common.NewEnvironWatcher(firewallerFacade, caller), } }