// NewState creates a new client-side Machiner facade. func NewState(caller base.Caller) *State { return &State{ caller: caller, APIAddresser: common.NewAPIAddresser(machinerFacade, caller), } }
// NewState creates a new State instance that makes API calls // through the given caller. func NewState(caller base.Caller) *State { return &State{ APIAddresser: common.NewAPIAddresser(deployerFacade, caller), caller: caller, } }
// 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, } }
// 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} }