fanconfigurer

package
v0.0.0-...-ea3e8b0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: AGPL-3.0 Imports: 7 Imported by: 1

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.

Jump to

Keyboard shortcuts

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