fanconfigurer

package
v0.0.0-...-3d086f3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Manifold

func Manifold(config ManifoldConfig) dependency.Manifold

Manifold returns a dependency manifold that runs a fan configurer worker, using the resource names defined in the supplied config.

Types

type FanConfigurer

type FanConfigurer struct {
	// contains filtered or unexported fields
}

func NewFanConfigurer

func NewFanConfigurer(config FanConfigurerConfig, clock clock.Clock) (*FanConfigurer, error)

func (*FanConfigurer) Kill

func (fc *FanConfigurer) Kill()

Kill implements Worker.Kill()

func (*FanConfigurer) Wait

func (fc *FanConfigurer) Wait() error

Wait implements Worker.Wait()

type FanConfigurerConfig

type FanConfigurerConfig struct {
	Facade FanConfigurerFacade
}

type FanConfigurerFacade

type FanConfigurerFacade interface {
	FanConfig() (network.FanConfig, error)
	WatchForFanConfigChanges() (watcher.NotifyWatcher, error)
}

type ManifoldConfig

type ManifoldConfig struct {
	// These are the dependency resource names.
	APICallerName string
	Clock         clock.Clock
}

ManifoldConfig defines the names of the manifolds on which a Manifold will depend.

Jump to

Keyboard shortcuts

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