Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key common_info.ObjectKey
func NewKeyFromClaim ¶
func NewKeyFromClaim(claim *v1.PersistentVolumeClaim) Key
type PodOwnerReference ¶
type PodOwnerReference struct {
PodID common_info.PodID
PodName string
PodNamespace string
}
func GetPodOwner ¶
func GetPodOwner(claim *v1.PersistentVolumeClaim) (*PodOwnerReference, error)
func (*PodOwnerReference) Clone ¶
func (po *PodOwnerReference) Clone() *PodOwnerReference
type StorageClaimInfo ¶
type StorageClaimInfo struct {
Key Key
Name string
Namespace string
Size *resource.Quantity
Phase v1.PersistentVolumeClaimPhase
StorageClass common_info.StorageClassID
// PodOwnerReference is set only when there is a single pod owner to the PVC
PodOwnerReference *PodOwnerReference
DeletedOwner bool
}
func NewStorageClaimInfo ¶
func NewStorageClaimInfo(claim *v1.PersistentVolumeClaim, podOwner *PodOwnerReference) *StorageClaimInfo
func (*StorageClaimInfo) Clone ¶
func (sc *StorageClaimInfo) Clone() *StorageClaimInfo
func (*StorageClaimInfo) HasDeletedOwner ¶
func (sc *StorageClaimInfo) HasDeletedOwner() bool
func (*StorageClaimInfo) MarkOwnerAlive ¶
func (sc *StorageClaimInfo) MarkOwnerAlive()
Click to show internal directories.
Click to hide internal directories.