fanconfigurer

package
v0.0.0-...-8ff1004 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL