Documentation ¶
Index ¶
- func Create(ctx context.Context, pvc *apiv1.PersistentVolumeClaim, c kubernetes.Interface) error
- func CreateForDev(ctx context.Context, dev *model.Dev, c kubernetes.Interface, devPath string) error
- func Destroy(ctx context.Context, name, namespace string, c kubernetes.Interface, ...) error
- func DestroyDev(ctx context.Context, dev *model.Dev, c kubernetes.Interface) error
- func DestroyWithoutTimeout(ctx context.Context, name, namespace string, c kubernetes.Interface) error
- func List(ctx context.Context, namespace, labels string, c kubernetes.Interface) ([]apiv1.PersistentVolumeClaim, error)
- func Update(ctx context.Context, pvc *apiv1.PersistentVolumeClaim, c kubernetes.Interface) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(ctx context.Context, pvc *apiv1.PersistentVolumeClaim, c kubernetes.Interface) error
func CreateForDev ¶
func CreateForDev(ctx context.Context, dev *model.Dev, c kubernetes.Interface, devPath string) error
CreateForDev deploys the volume claim for a given development container
func Destroy ¶
func Destroy(ctx context.Context, name, namespace string, c kubernetes.Interface, timeout time.Duration) error
Destroy destroys a persistent volume claim
func DestroyDev ¶
DestroyDev destroys the persistent volume claim for a given development container
func DestroyWithoutTimeout ¶
func DestroyWithoutTimeout(ctx context.Context, name, namespace string, c kubernetes.Interface) error
DestroyWithoutTimeout destroys a PVC without checking if it was detached or not
func List ¶
func List(ctx context.Context, namespace, labels string, c kubernetes.Interface) ([]apiv1.PersistentVolumeClaim, error)
List returns the list of volumes
func Update ¶
func Update(ctx context.Context, pvc *apiv1.PersistentVolumeClaim, c kubernetes.Interface) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.