localdisknode

package
v0.1.6-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskNodeHandler

type DiskNodeHandler struct {
	client.Client
	record.EventRecorder
	// contains filtered or unexported fields
}

func NewDiskNodeHelper

func NewDiskNodeHelper(cli client.Client, recorder record.EventRecorder) *DiskNodeHandler

func (*DiskNodeHandler) Disks

func (n *DiskNodeHandler) Disks() map[string]ldm.Disk

func (*DiskNodeHandler) For

func (*DiskNodeHandler) IsSameDisk

func (n *DiskNodeHandler) IsSameDisk(name string, newDisk ldm.Disk) bool

IsSameDisk judge the disk in LocalDiskNode is same as disk in LocalDisk

func (*DiskNodeHandler) ListNodeDisks

func (n *DiskNodeHandler) ListNodeDisks() (map[string]ldm.Disk, error)

func (*DiskNodeHandler) UpdateDiskLists

func (n *DiskNodeHandler) UpdateDiskLists(updateDisks, removedDisks map[string]ldm.Disk)

func (*DiskNodeHandler) UpdateDiskStats

func (n *DiskNodeHandler) UpdateDiskStats()

func (*DiskNodeHandler) UpdateStatus

func (n *DiskNodeHandler) UpdateStatus() error

Jump to

Keyboard shortcuts

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