Documentation ¶
Index ¶
- type Handler
- func (ldcHandler *Handler) AppendDiskRef(ld *v1alpha1.LocalDisk)
- func (ldcHandler *Handler) AssignFreeDisk() error
- func (ldcHandler *Handler) Bounded() bool
- func (ldcHandler *Handler) DeleteLocalDiskClaim() error
- func (ldcHandler *Handler) DiskRefs() []*v1.ObjectReference
- func (ldcHandler *Handler) For(ldc *v1alpha1.LocalDiskClaim) *Handler
- func (ldcHandler *Handler) GetLocalDiskClaim(key client.ObjectKey) (*v1alpha1.LocalDiskClaim, error)
- func (ldcHandler *Handler) ListLocalDiskClaim() (*v1alpha1.LocalDiskClaimList, error)
- func (ldcHandler *Handler) ListUnboundLocalDiskClaim() (*v1alpha1.LocalDiskClaimList, error)
- func (ldcHandler *Handler) PatchBoundDiskRef() error
- func (ldcHandler *Handler) PatchClaimSpec(patch client.Patch) error
- func (ldcHandler *Handler) Phase() v1alpha1.DiskClaimStatus
- func (ldcHandler *Handler) Refresh() error
- func (ldcHandler *Handler) SetupClaimStatus(status v1alpha1.DiskClaimStatus)
- func (ldcHandler *Handler) ShowObjectInfo(msg string)
- func (ldcHandler *Handler) UpdateClaimSpec() error
- func (ldcHandler *Handler) UpdateClaimStatus() error
- func (ldcHandler *Handler) UpdateClaimStatusToBound() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { client.Client record.EventRecorder // contains filtered or unexported fields }
func NewLocalDiskClaimHandler ¶
func NewLocalDiskClaimHandler(client client.Client, recorder record.EventRecorder) *Handler
func (*Handler) AppendDiskRef ¶
func (*Handler) AssignFreeDisk ¶
func (*Handler) DeleteLocalDiskClaim ¶
func (*Handler) DiskRefs ¶
func (ldcHandler *Handler) DiskRefs() []*v1.ObjectReference
func (*Handler) GetLocalDiskClaim ¶
func (*Handler) ListLocalDiskClaim ¶
func (ldcHandler *Handler) ListLocalDiskClaim() (*v1alpha1.LocalDiskClaimList, error)
func (*Handler) ListUnboundLocalDiskClaim ¶
func (ldcHandler *Handler) ListUnboundLocalDiskClaim() (*v1alpha1.LocalDiskClaimList, error)
func (*Handler) PatchBoundDiskRef ¶
PatchBoundDiskRef update all disk bounded by the diskClaim to claim.spec.disks
func (*Handler) PatchClaimSpec ¶
func (*Handler) Phase ¶
func (ldcHandler *Handler) Phase() v1alpha1.DiskClaimStatus
func (*Handler) SetupClaimStatus ¶
func (ldcHandler *Handler) SetupClaimStatus(status v1alpha1.DiskClaimStatus)
func (*Handler) ShowObjectInfo ¶
func (*Handler) UpdateClaimSpec ¶
func (*Handler) UpdateClaimStatus ¶
func (*Handler) UpdateClaimStatusToBound ¶
Click to show internal directories.
Click to hide internal directories.