Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(registry facade.FacadeRegistry)
Register is called to expose a package of facades onto a given registry.
Types ¶
type FanConfigurer ¶
type FanConfigurer interface { WatchForFanConfigChanges() (params.NotifyWatchResult, error) FanConfig() (params.FanConfigResult, error) }
FanConfigurer defines the methods on fanconfigurer API endpoint.
type FanConfigurerAPI ¶
type FanConfigurerAPI struct {
// contains filtered or unexported fields
}
func NewFanConfigurerAPIForModel ¶
func NewFanConfigurerAPIForModel(model state.ModelAccessor, resources facade.Resources, authorizer facade.Authorizer) (*FanConfigurerAPI, error)
func (*FanConfigurerAPI) FanConfig ¶
func (m *FanConfigurerAPI) FanConfig() (params.FanConfigResult, error)
FanConfig returns current FAN configuration.
func (*FanConfigurerAPI) WatchForFanConfigChanges ¶
func (m *FanConfigurerAPI) WatchForFanConfigChanges() (params.NotifyWatchResult, error)
WatchForFanConfigChanges returns a NotifyWatcher that observes changes to the FAN configuration. so we use the regular error return. TODO(wpk) 2017-09-21 We should use Model directly, and watch only for FanConfig changes.
Click to show internal directories.
Click to hide internal directories.