// 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 Machiner facade. func NewState(caller base.Caller) *State { return &State{ EnvironWatcher: common.NewEnvironWatcher(provisionerFacade, caller), APIAddresser: common.NewAPIAddresser(provisionerFacade, caller), caller: caller} }
// NewState creates a new client-side Rsyslog facade. func NewState(caller base.Caller) *State { return &State{ EnvironWatcher: common.NewEnvironWatcher(rsyslogAPI, caller), caller: caller, } }
// NewState creates a new client-side Firewaller facade. func NewState(caller base.Caller) *State { return &State{ caller: caller, EnvironWatcher: common.NewEnvironWatcher(firewallerFacade, caller), } }