Documentation ¶
Index ¶
- Constants
- func GetFilesystemOverhead(volumeMode *k8sv1.PersistentVolumeMode, storageClass *string, ...) cdiv1.Percent
- func GetSizeIncludingFSOverhead(size *resource.Quantity, storageClass *string, ...) (*resource.Quantity, error)
- func GetSizeIncludingGivenOverhead(size *resource.Quantity, overhead cdiv1.Percent) (*resource.Quantity, error)
- func HasSharedAccessMode(accessModes []k8sv1.PersistentVolumeAccessMode) bool
- func IsPVCBlock(volumeMode *k8sv1.PersistentVolumeMode) bool
- func IsPVCBlockFromStore(store cache.Store, namespace string, claimName string) (pvc *k8sv1.PersistentVolumeClaim, exists bool, isBlockDevice bool, err error)
- func IsPreallocated(annotations map[string]string) bool
- func IsReadOnlyAccessMode(accessModes []k8sv1.PersistentVolumeAccessMode) bool
- func PVCNameFromVirtVolume(volume *virtv1.Volume) string
- func VirtVolumesToPVCMap(volumes []*virtv1.Volume, pvcStore cache.Store, namespace string) (map[string]*k8sv1.PersistentVolumeClaim, error)
- type CloneSource
Constants ¶
View Source
const MiB = 1024 * 1024
Variables ¶
This section is empty.
Functions ¶
func GetFilesystemOverhead ¶
func HasSharedAccessMode ¶
func HasSharedAccessMode(accessModes []k8sv1.PersistentVolumeAccessMode) bool
func IsPVCBlock ¶
func IsPVCBlock(volumeMode *k8sv1.PersistentVolumeMode) bool
func IsPVCBlockFromStore ¶
func IsPreallocated ¶
func IsReadOnlyAccessMode ¶
func IsReadOnlyAccessMode(accessModes []k8sv1.PersistentVolumeAccessMode) bool
func PVCNameFromVirtVolume ¶
Types ¶
type CloneSource ¶
func GetCloneSource ¶
func GetCloneSource(ctx context.Context, client kubecli.KubevirtClient, vm *virtv1.VirtualMachine, dvSpec *cdiv1.DataVolumeSpec) (*CloneSource, error)
func GetCloneSourceWithInformers ¶
func GetCloneSourceWithInformers(vm *virtv1.VirtualMachine, dvSpec *cdiv1.DataVolumeSpec, dataSourceInformer cache.SharedIndexInformer) (*CloneSource, error)
Click to show internal directories.
Click to hide internal directories.