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