block

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MPL-2.0 Imports: 17 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.

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.

Jump to

Keyboard shortcuts

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