Пример #1
0
// NewState creates a new client-side Machiner facade.
func NewState(caller base.Caller) *State {
	return &State{
		caller:       caller,
		APIAddresser: common.NewAPIAddresser(machinerFacade, caller),
	}

}
Пример #2
0
// 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,
	}

}
Пример #3
0
// 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,
	}
}
Пример #4
0
// 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}
}