discovery

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultFS          = "ext4"
	AnnoStorageReserve = "csi.aliyun.com/storage-reserved"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Discoverer

type Discoverer struct {
	*common.Configuration

	// K8sMounter used to verify mountpoints
	K8sMounter mount.Interface
	// contains filtered or unexported fields
}

Discoverer update block device, VG and mountpoint info to Cache

func NewDiscoverer

func NewDiscoverer(config *common.Configuration, kubeclientset kubernetes.Interface, lssclientset clientset.Interface, snapclient snapshot.Interface, recorder record.EventRecorder) *Discoverer

NewDiscoverer return Discoverer

func (*Discoverer) Discover

func (d *Discoverer) Discover()

Discover update local storage periodically

func (*Discoverer) ExpandSnapshotLVIfNeeded

func (d *Discoverer) ExpandSnapshotLVIfNeeded()

func (*Discoverer) InitResource

func (d *Discoverer) InitResource()

InitResource will create relevant resource

type ReservedVGInfo

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

Jump to

Keyboard shortcuts

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