Documentation ¶
Overview ¶
Copyright 2017 Canonical Ltd. Licensed under the AGPLv3, see LICENCE file for details.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 NewFanConfigurerAPI ¶
func NewFanConfigurerAPI(st *state.State, resources facade.Resources, authorizer facade.Authorizer) (*FanConfigurerAPI, error)
NewFanConfigurerAPI creates a new FanConfigurer API endpoint on server-side.
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.