Documentation ¶
Index ¶
- Variables
- func CreateOrUpdatePersistentVolumeClaim(cli *kubernetes.Clientset, pvc *kapi.PersistentVolumeClaim) (*kapi.PersistentVolumeClaim, error)
- func DeletePersistentVolumeClaim(cli *kubernetes.Clientset, name, namespace string) error
- func GetImageNameAndTypeByPvc(cli *kubernetes.Clientset, name, namespace string) (string, string, error)
- func GetPersistentVolumeClaimDetail(cli *kubernetes.Clientset, name, namespace string) (*kapi.PersistentVolumeClaim, error)
- func GetRbdImageByPvc(cli *kubernetes.Clientset, name, namespace string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
RbdNotFoundError = errors.New("image not found")
)
Functions ¶
func CreateOrUpdatePersistentVolumeClaim ¶
func CreateOrUpdatePersistentVolumeClaim(cli *kubernetes.Clientset, pvc *kapi.PersistentVolumeClaim) (*kapi.PersistentVolumeClaim, error)
func DeletePersistentVolumeClaim ¶
func DeletePersistentVolumeClaim(cli *kubernetes.Clientset, name, namespace string) error
func GetPersistentVolumeClaimDetail ¶
func GetPersistentVolumeClaimDetail(cli *kubernetes.Clientset, name, namespace string) (*kapi.PersistentVolumeClaim, error)
func GetRbdImageByPvc ¶
func GetRbdImageByPvc(cli *kubernetes.Clientset, name, namespace string) (string, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.