Documentation ¶
Index ¶
- func CasDescribeMap() ...
- func Describe(pvcs []string, namespace string, openebsNs string) error
- func DescribeGenericVolumeClaim(pvc *corev1.PersistentVolumeClaim, pv *corev1.PersistentVolume, casType string, ...) error
- func DescribeLVMVolumeClaim(c *client.K8sClient, pvc *corev1.PersistentVolumeClaim, ...) error
- func DescribeZFSVolumeClaim(c *client.K8sClient, pvc *corev1.PersistentVolumeClaim, ...) error
- func GetMountPods(pvcName string, nsPods []corev1.Pod) []corev1.Pod
- func PodsToString(pods []corev1.Pod) string
- func SortPods(pods []corev1.Pod) []corev1.Pod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CasDescribeMap ¶
func CasDescribeMap() map[string]func(*client.K8sClient, *corev1.PersistentVolumeClaim, *corev1.PersistentVolume, string) error
CasDescribeMap returns a map cas-types to functions for persistentvolumeclaim describing
func DescribeGenericVolumeClaim ¶
func DescribeGenericVolumeClaim(pvc *corev1.PersistentVolumeClaim, pv *corev1.PersistentVolume, casType string, mountPods string) error
DescribeGenericVolumeClaim describes a any PersistentVolumeClaim, if the cas type is not discovered.
func DescribeLVMVolumeClaim ¶ added in v0.4.0
func DescribeLVMVolumeClaim(c *client.K8sClient, pvc *corev1.PersistentVolumeClaim, pv *corev1.PersistentVolume, mountPods string) error
DescribeLVMVolumeClaim describes a LVM storage engine PersistentVolumeClaim
func DescribeZFSVolumeClaim ¶ added in v0.4.0
func DescribeZFSVolumeClaim(c *client.K8sClient, pvc *corev1.PersistentVolumeClaim, pv *corev1.PersistentVolume, mountPods string) error
DescribeZFSVolumeClaim describes a ZFS storage engine PersistentVolumeClaim
func GetMountPods ¶ added in v0.5.0
GetMountPods filters the array of Pods and returns an array of Pods that mount the PersistentVolumeClaim
func PodsToString ¶ added in v0.5.0
PodsToString Flattens the array of Pods and returns a string fit to display in the output
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.