localdisk

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 10 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler added in v0.6.0

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

func NewLocalDiskHandler

func NewLocalDiskHandler(cli client.Client, recorder record.EventRecorder) *Handler

func (*Handler) BoundTo added in v0.6.0

func (ldHandler *Handler) BoundTo(ldc *v1alpha1.LocalDiskClaim) error

BoundTo assign disk to ldc

func (*Handler) ClaimRef added in v0.6.0

func (ldHandler *Handler) ClaimRef() *v1.ObjectReference

func (*Handler) FilterDisk added in v0.6.0

func (ldHandler *Handler) FilterDisk(ldc *v1alpha1.LocalDiskClaim) bool

func (*Handler) For added in v0.6.0

func (ldHandler *Handler) For(ld *v1alpha1.LocalDisk) *Handler

func (*Handler) GetLocalDisk added in v0.6.0

func (ldHandler *Handler) GetLocalDisk(key client.ObjectKey) (*v1alpha1.LocalDisk, error)

func (*Handler) GetLocalDiskWithLabels added in v0.6.0

func (ldHandler *Handler) GetLocalDiskWithLabels(labels labels.Set) (*v1alpha1.LocalDiskList, error)

func (*Handler) IsEmpty added in v0.6.0

func (ldHandler *Handler) IsEmpty() bool

func (*Handler) ListLocalDisk added in v0.6.0

func (ldHandler *Handler) ListLocalDisk() (*v1alpha1.LocalDiskList, error)

func (*Handler) ListLocalDiskDirectly added in v0.6.1

func (ldHandler *Handler) ListLocalDiskDirectly() (*v1alpha1.LocalDiskList, error)

ListLocalDiskDirectly query localdisk list from API Server directly NOTE: The performance is relatively slow and may cause relatively high latency

func (*Handler) ListNodeLocalDisk added in v0.6.0

func (ldHandler *Handler) ListNodeLocalDisk(node string) (*v1alpha1.LocalDiskList, error)

func (*Handler) PatchDiskOwner added in v0.9.3

func (ldHandler *Handler) PatchDiskOwner(owner string) error

func (*Handler) PatchDiskSpec added in v0.9.3

func (ldHandler *Handler) PatchDiskSpec(patch client.Patch) error

func (*Handler) RecordEvent added in v0.6.0

func (ldHandler *Handler) RecordEvent(eventtype, reason, messageFmt string, args ...interface{})

func (*Handler) RemoveLabel added in v0.6.0

func (ldHandler *Handler) RemoveLabel(labels labels.Set)

func (*Handler) ReserveDisk added in v0.6.0

func (ldHandler *Handler) ReserveDisk()

func (*Handler) SetOwner added in v0.9.3

func (ldHandler *Handler) SetOwner(owner string)

func (*Handler) SetPartition added in v0.7.0

func (ldHandler *Handler) SetPartition(hasPartition bool)

func (*Handler) SetupLabel added in v0.6.0

func (ldHandler *Handler) SetupLabel(labels labels.Set)

func (*Handler) SetupStatus added in v0.6.0

func (ldHandler *Handler) SetupStatus(status v1alpha1.LocalDiskState)

func (*Handler) UnClaimed added in v0.6.0

func (ldHandler *Handler) UnClaimed() bool

UnClaimed Bounded

func (*Handler) Update added in v0.6.0

func (ldHandler *Handler) Update() error

func (*Handler) UpdateStatus added in v0.6.0

func (ldHandler *Handler) UpdateStatus() error

Jump to

Keyboard shortcuts

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