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
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 ¶
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 ¶
func (ctrl *MachineTypeController) Run(ctx context.Context, r controller.Runtime, _ *zap.Logger) error
Run implements controller.Controller interface.
type ModeGetter ¶
type ModeGetter interface {
InContainer() bool
}
ModeGetter gets the current runtime mode.
type PlatformConfigurator ¶
type PlatformConfigurator interface {
Name() string
Configuration(context.Context) ([]byte, error)
}
PlatformConfigurator is a reduced interface of runtime.Platform.
type PlatformEventer ¶
PlatformEventer sends events based on the config process via platform-specific interface.