storageclaim_info

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

func NewKey

func NewKey(namespace, name string) Key

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()

Jump to

Keyboard shortcuts

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