config

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package config provides controllers which manage config resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcquireController

type AcquireController struct {
	PlatformConfiguration PlatformConfigurator
	PlatformEvent         PlatformEventer
	ConfigSetter          Setter
	EventPublisher        talosruntime.Publisher
	ValidationMode        validation.RuntimeMode
	ConfigPath            string
	// contains filtered or unexported fields
}

AcquireController loads the machine configuration from multiple sources.

func (*AcquireController) Inputs

func (ctrl *AcquireController) Inputs() []controller.Input

Inputs implements controller.Controller interface.

func (*AcquireController) Name

func (ctrl *AcquireController) Name() string

Name implements controller.Controller interface.

func (*AcquireController) Outputs

func (ctrl *AcquireController) Outputs() []controller.Output

Outputs implements controller.Controller interface.

func (*AcquireController) Run

func (ctrl *AcquireController) Run(ctx context.Context, r controller.Runtime, logger *zap.Logger) error

Run implements controller.Controller interface.

type MachineTypeController

type MachineTypeController struct{}

MachineTypeController manages config.MachineType based on configuration.

func (*MachineTypeController) Inputs

func (ctrl *MachineTypeController) Inputs() []controller.Input

Inputs implements controller.Controller interface.

func (*MachineTypeController) Name

func (ctrl *MachineTypeController) Name() string

Name implements controller.Controller interface.

func (*MachineTypeController) Outputs

func (ctrl *MachineTypeController) Outputs() []controller.Output

Outputs implements controller.Controller interface.

func (*MachineTypeController) Run

Run implements controller.Controller interface.

type PlatformConfigurator

type PlatformConfigurator interface {
	Name() string
	Configuration(context.Context) ([]byte, error)
}

PlatformConfigurator is a reduced interface of runtime.Platform.

type PlatformEventer

type PlatformEventer interface {
	FireEvent(context.Context, platform.Event)
}

PlatformEventer sends events based on the config process via platform-specific interface.

type Setter

type Setter interface {
	SetConfig(config.Provider) error
}

Setter sets the current machine config.

Jump to

Keyboard shortcuts

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