Documentation ¶
Index ¶
- type Handler
- func (ldHandler *Handler) BoundTo(ldc *v1alpha1.LocalDiskClaim) error
- func (ldHandler *Handler) ClaimRef() *v1.ObjectReference
- func (ldHandler *Handler) FilterDisk(ldc *v1alpha1.LocalDiskClaim) bool
- func (ldHandler *Handler) For(ld *v1alpha1.LocalDisk) *Handler
- func (ldHandler *Handler) GetLocalDisk(key client.ObjectKey) (*v1alpha1.LocalDisk, error)
- func (ldHandler *Handler) GetLocalDiskWithLabels(labels labels.Set) (*v1alpha1.LocalDiskList, error)
- func (ldHandler *Handler) IsEmpty() bool
- func (ldHandler *Handler) ListLocalDisk() (*v1alpha1.LocalDiskList, error)
- func (ldHandler *Handler) ListLocalDiskDirectly() (*v1alpha1.LocalDiskList, error)
- func (ldHandler *Handler) ListNodeLocalDisk(node string) (*v1alpha1.LocalDiskList, error)
- func (ldHandler *Handler) PatchDiskOwner(owner string) error
- func (ldHandler *Handler) PatchDiskSpec(patch client.Patch) error
- func (ldHandler *Handler) RecordEvent(eventtype, reason, messageFmt string, args ...interface{})
- func (ldHandler *Handler) RemoveLabel(labels labels.Set)
- func (ldHandler *Handler) ReserveDisk()
- func (ldHandler *Handler) SetOwner(owner string)
- func (ldHandler *Handler) SetPartition(hasPartition bool)
- func (ldHandler *Handler) SetupLabel(labels labels.Set)
- func (ldHandler *Handler) SetupStatus(status v1alpha1.LocalDiskState)
- func (ldHandler *Handler) UnClaimed() bool
- func (ldHandler *Handler) Update() error
- func (ldHandler *Handler) UpdateStatus() error
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) GetLocalDisk ¶ added in v0.6.0
func (*Handler) GetLocalDiskWithLabels ¶ added in v0.6.0
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 (*Handler) PatchDiskSpec ¶ added in v0.9.3
func (*Handler) RecordEvent ¶ added in v0.6.0
func (*Handler) RemoveLabel ¶ added in v0.6.0
func (*Handler) ReserveDisk ¶ added in v0.6.0
func (ldHandler *Handler) ReserveDisk()
func (*Handler) SetPartition ¶ added in v0.7.0
func (*Handler) SetupLabel ¶ added in v0.6.0
func (*Handler) SetupStatus ¶ added in v0.6.0
func (ldHandler *Handler) SetupStatus(status v1alpha1.LocalDiskState)
func (*Handler) UpdateStatus ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.