block

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MPL-2.0 Imports: 44 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 added in v1.8.0

type DisksController struct{}

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

func (*DisksController) Inputs added in v1.8.0

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

Inputs implements controller.Controller interface.

func (*DisksController) Name added in v1.8.0

func (ctrl *DisksController) Name() string

Name implements controller.Controller interface.

func (*DisksController) Outputs added in v1.8.0

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

Outputs implements controller.Controller interface.

func (*DisksController) Run added in v1.8.0

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

Run implements controller.Controller interface.

type LVMActivationController added in v1.8.0

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

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

func (*LVMActivationController) Inputs added in v1.8.0

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

Inputs implements controller.Controller interface.

func (*LVMActivationController) Name added in v1.8.0

func (ctrl *LVMActivationController) Name() string

Name implements controller.Controller interface.

func (*LVMActivationController) Outputs added in v1.8.0

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

Outputs implements controller.Controller interface.

func (*LVMActivationController) Run added in v1.8.0

Run implements controller.Controller interface.

type SystemDiskController added in v1.8.0

type SystemDiskController struct{}

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

func (*SystemDiskController) Inputs added in v1.8.0

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

Inputs implements controller.Controller interface.

func (*SystemDiskController) Name added in v1.8.0

func (ctrl *SystemDiskController) Name() string

Name implements controller.Controller interface.

func (*SystemDiskController) Outputs added in v1.8.0

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

Outputs implements controller.Controller interface.

func (*SystemDiskController) Run added in v1.8.0

Run implements controller.Controller interface.

type UserDiskConfigController added in v1.8.0

type UserDiskConfigController struct{}

UserDiskConfigController provides volume configuration based on Talos v1alpha1 user disks.

func (*UserDiskConfigController) Inputs added in v1.8.0

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

Inputs implements controller.Controller interface.

func (*UserDiskConfigController) Name added in v1.8.0

func (ctrl *UserDiskConfigController) Name() string

Name implements controller.Controller interface.

func (*UserDiskConfigController) Outputs added in v1.8.0

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

Outputs implements controller.Controller interface.

func (*UserDiskConfigController) Run added in v1.8.0

Run implements controller.Controller interface.

type VolumeConfigController added in v1.8.0

type VolumeConfigController struct{}

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

func (*VolumeConfigController) Inputs added in v1.8.0

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

Inputs implements controller.Controller interface.

func (*VolumeConfigController) Name added in v1.8.0

func (ctrl *VolumeConfigController) Name() string

Name implements controller.Controller interface.

func (*VolumeConfigController) Outputs added in v1.8.0

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

Outputs implements controller.Controller interface.

func (*VolumeConfigController) Run added in v1.8.0

Run implements controller.Controller interface.

type VolumeManagerController added in v1.8.0

type VolumeManagerController struct{}

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

func (*VolumeManagerController) Inputs added in v1.8.0

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

Inputs implements controller.Controller interface.

func (*VolumeManagerController) Name added in v1.8.0

func (ctrl *VolumeManagerController) Name() string

Name implements controller.Controller interface.

func (*VolumeManagerController) Outputs added in v1.8.0

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

Outputs implements controller.Controller interface.

func (*VolumeManagerController) Run added in v1.8.0

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