Documentation ¶
Index ¶
- type Backend
- type EntityWatcher
- type Facade
- func (f *Facade) ModelEnvironVersion(args params.Entities) (params.IntResults, error)
- func (f *Facade) ModelTargetEnvironVersion(args params.Entities) (params.IntResults, error)
- func (f *Facade) SetModelEnvironVersion(args params.SetModelEnvironVersions) (params.ErrorResults, error)
- func (f *Facade) SetModelStatus(args params.SetStatus) (params.ErrorResults, error)
- func (f *Facade) WatchModelEnvironVersion(args params.Entities) (params.NotifyWatchResults, error)
- type Model
- type Pool
- type ProviderRegistry
- type StatusSetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityWatcher ¶
type EntityWatcher interface {
Watch(params.Entities) (params.NotifyWatchResults, error)
}
EntityWatcher is an interface that provides a means of watching entities.
type Facade ¶
type Facade struct {
// contains filtered or unexported fields
}
func NewFacade ¶
func NewFacade( backend Backend, pool Pool, providers ProviderRegistry, entityWatcher EntityWatcher, statusSetter StatusSetter, auth facade.Authorizer, ) (*Facade, error)
NewFacade returns a new Facade using the given Backend and Authorizer.
func NewStateFacade ¶
NewStateFacade provides the signature required for facade registration.
func (*Facade) ModelEnvironVersion ¶
ModelEnvironVersion returns the current version of the environ corresponding to each specified model.
func (*Facade) ModelTargetEnvironVersion ¶
ModelTargetEnvironVersion returns the target version of the environ corresponding to each specified model. The target version is the environ provider's version.
func (*Facade) SetModelEnvironVersion ¶
func (f *Facade) SetModelEnvironVersion(args params.SetModelEnvironVersions) (params.ErrorResults, error)
SetModelEnvironVersion sets the current version of the environ corresponding to each specified model.
func (*Facade) SetModelStatus ¶
SetModelStatus sets the status of each given model.
func (*Facade) WatchModelEnvironVersion ¶
WatchModelEnvironVersion watches for changes to the environ version of the specified models.
NOTE(axw) this is currently implemented in terms of state.Model.Watch, so the client may be notified of changes unrelated to the environ version.
type ProviderRegistry ¶
type ProviderRegistry interface {
Provider(string) (environs.EnvironProvider, error)
}
ProviderRegistry provides the subset of environs.ProviderRegistry that we require.
type StatusSetter ¶
type StatusSetter interface {
SetStatus(params.SetStatus) (params.ErrorResults, error)
}
StatusSetter is an interface that provides a means of setting the status of entities.