block

package
v1.9.2-skylab.36 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: MPL-2.0 Imports: 45 Imported by: 0

Documentation

Overview

Package block provides the controllers related to blockdevices, mounts, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DevicesController

type DevicesController struct {
	V1Alpha1Mode machineruntime.Mode
}

DevicesController provides a view of available block devices with information about pending updates.

func (*DevicesController) Inputs

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

Inputs implements controller.Controller interface.

func (*DevicesController) Name

func (ctrl *DevicesController) Name() string

Name implements controller.Controller interface.

func (*DevicesController) Outputs

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

Outputs implements controller.Controller interface.

func (*DevicesController) Run

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

Run implements controller.Controller interface.

type DiscoveryController

type DiscoveryController struct{}

DiscoveryController provides a filesystem/partition discovery for blockdevices.

func (*DiscoveryController) Inputs

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

Inputs implements controller.Controller interface.

func (*DiscoveryController) Name

func (ctrl *DiscoveryController) Name() string

Name implements controller.Controller interface.

func (*DiscoveryController) Outputs

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

Outputs implements controller.Controller interface.

func (*DiscoveryController) Run

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

Run implements controller.Controller interface.

type DisksController

type DisksController struct{}

DisksController provides a detailed view of blockdevices of type 'disk'.

func (*DisksController) Inputs

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

Inputs implements controller.Controller interface.

func (*DisksController) Name

func (ctrl *DisksController) Name() string

Name implements controller.Controller interface.

func (*DisksController) Outputs

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

Outputs implements controller.Controller interface.

func (*DisksController) Run

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

Run implements controller.Controller interface.

type LVMActivationController

type LVMActivationController struct {
	V1Alpha1Mode machineruntime.Mode
	// contains filtered or unexported fields
}

LVMActivationController activates LVM volumes when they are discovered by the block.DiscoveryController.

func (*LVMActivationController) Inputs

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

Inputs implements controller.Controller interface.

func (*LVMActivationController) Name

func (ctrl *LVMActivationController) Name() string

Name implements controller.Controller interface.

func (*LVMActivationController) Outputs

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

Outputs implements controller.Controller interface.

func (*LVMActivationController) Run

Run implements controller.Controller interface.

type SystemDiskController

type SystemDiskController struct{}

SystemDiskController provides a detailed view of blockdevices of type 'disk'.

func (*SystemDiskController) Inputs

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

Inputs implements controller.Controller interface.

func (*SystemDiskController) Name

func (ctrl *SystemDiskController) Name() string

Name implements controller.Controller interface.

func (*SystemDiskController) Outputs

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

Outputs implements controller.Controller interface.

func (*SystemDiskController) Run

Run implements controller.Controller interface.

type UserDiskConfigController

type UserDiskConfigController struct{}

UserDiskConfigController provides volume configuration based on Talos v1alpha1 user disks.

func (*UserDiskConfigController) Inputs

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

Inputs implements controller.Controller interface.

func (*UserDiskConfigController) Name

func (ctrl *UserDiskConfigController) Name() string

Name implements controller.Controller interface.

func (*UserDiskConfigController) Outputs

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

Outputs implements controller.Controller interface.

func (*UserDiskConfigController) Run

Run implements controller.Controller interface.

type VolumeConfigController

type VolumeConfigController struct {
	V1Alpha1Mode machinedruntime.Mode
}

VolumeConfigController provides volume configuration based on Talos defaults and machine configuration.

func (*VolumeConfigController) Inputs

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

Inputs implements controller.Controller interface.

func (*VolumeConfigController) Name

func (ctrl *VolumeConfigController) Name() string

Name implements controller.Controller interface.

func (*VolumeConfigController) Outputs

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

Outputs implements controller.Controller interface.

func (*VolumeConfigController) Run

Run implements controller.Controller interface.

type VolumeManagerController

type VolumeManagerController struct{}

VolumeManagerController manages volumes in the system, converting VolumeConfig resources to VolumeStatuses.

func (*VolumeManagerController) Inputs

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

Inputs implements controller.Controller interface.

func (*VolumeManagerController) Name

func (ctrl *VolumeManagerController) Name() string

Name implements controller.Controller interface.

func (*VolumeManagerController) Outputs

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

Outputs implements controller.Controller interface.

func (*VolumeManagerController) Run

Run implements controller.Controller interface.

Directories

Path Synopsis
internal
inotify
Package inotify implements a specialized inotify watcher for block devices.
Package inotify implements a specialized inotify watcher for block devices.
kobject
Package kobject implements Linux kernel kobject uvent watcher.
Package kobject implements Linux kernel kobject uvent watcher.
sysblock
Package sysblock implements gathering block device information from /sys/block filesystem.
Package sysblock implements gathering block device information from /sys/block filesystem.
volumes
Package volumes provides utilities and extra functions for the volume manager.
Package volumes provides utilities and extra functions for the volume manager.

Jump to

Keyboard shortcuts

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