Documentation ¶
Index ¶
- Variables
- func DeletePod(podName string, namespace string, force bool) error
- func GetAllPods() (*v1.PodList, error)
- func GetK8sClient() (*kubernetes.Clientset, error)
- func GetPVC(pvcName string, namespace string) (*v1.PersistentVolumeClaim, error)
- func GetPod(podName string, namespace string) (*v1.Pod, error)
- func GetService(svcName string, svcNS string) (*v1.Service, error)
- func GetStorageClass(storageClassName string, namespace string) (*storagev1.StorageClass, error)
- func GetStorageClassName(pvc *v1.PersistentVolumeClaim) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrK8SApiAccountNotSet = errors.New("k8s api account is not setup")
ErrK8SApiAccountNotSet is returned when the account used to talk to k8s api is not setup
Functions ¶
func GetK8sClient ¶
func GetK8sClient() (*kubernetes.Clientset, error)
GetK8sClient instantiates a k8s client
func GetPVC ¶
func GetPVC(pvcName string, namespace string) (*v1.PersistentVolumeClaim, error)
GetPVC Gets the PVC by the name
func GetService ¶
GetService Gets the service by the name
func GetStorageClass ¶
func GetStorageClass(storageClassName string, namespace string) (*storagev1.StorageClass, error)
GetStorageClass Gets the storage class by name
func GetStorageClassName ¶
func GetStorageClassName(pvc *v1.PersistentVolumeClaim) string
GetStorageClassName Gets the storage class name for a PVC
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.