config

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MPL-2.0 Imports: 30 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 added in v1.5.0

type AcquireController struct {
	PlatformConfiguration PlatformConfigurator
	PlatformEvent         PlatformEventer
	Mode                  ModeGetter
	CmdlineGetter         func() *procfs.Cmdline
	ConfigSetter          Setter
	EventPublisher        talosruntime.Publisher
	ValidationMode        validation.RuntimeMode
	ConfigPath            string
	ResourceState         state.State
	// contains filtered or unexported fields
}

AcquireController loads the machine configuration from multiple sources.

func (*AcquireController) Inputs added in v1.5.0

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

Inputs implements controller.Controller interface.

func (*AcquireController) Name added in v1.5.0

func (ctrl *AcquireController) Name() string

Name implements controller.Controller interface.

func (*AcquireController) Outputs added in v1.5.0

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

Outputs implements controller.Controller interface.

func (*AcquireController) Run added in v1.5.0

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 ModeGetter added in v1.8.0

type ModeGetter interface {
	InContainer() bool
}

ModeGetter gets the current runtime mode.

type PlatformConfigurator added in v1.5.0

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

PlatformConfigurator is a reduced interface of runtime.Platform.

type PlatformEventer added in v1.5.0

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

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

type Setter added in v1.5.0

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