deviceManager

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceManager

type DeviceManager struct {
	Cache cache.Cache
	client.Client
	// Volume 操作
	VolumeManager volume.LocalVolume
	//磁盘以及分区操作
	Partition partition.LocalPartition
	NodeName  string
	// contains filtered or unexported fields
}

func NewDeviceManager

func NewDeviceManager(nodeName string, cache cache.Cache, client client.Client) *DeviceManager

func (*DeviceManager) GetNodeDiskSelectGroup added in v0.10.0

func (dm *DeviceManager) GetNodeDiskSelectGroup() map[string]configuration.DiskSelectorItem

func (*DeviceManager) NoticeUpdateCapacity added in v0.11.0

func (dm *DeviceManager) NoticeUpdateCapacity(trigger Trigger, done chan struct{})

func (*DeviceManager) RegisterNoticeChan added in v0.11.0

func (dm *DeviceManager) RegisterNoticeChan(notice chan *VolumeEvent)

type Trigger added in v0.11.0

type Trigger string
const (
	Dummy                 Trigger = "dummy"
	ConfigModify          Trigger = "configModify"
	LVMCheck              Trigger = "lvmCheck"
	CleanupOrphan         Trigger = "cleanupOrphan"
	LogicVolumeController Trigger = "logicVolumeController"
)

type VolumeEvent added in v0.11.0

type VolumeEvent struct {
	Trigger   Trigger
	TriggerAt time.Time
	Done      chan struct{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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