Documentation ¶
Overview ¶
Package persistentvolumeclaim manipulates the k8s api of persistentvolumeclaim object
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*PersistentVolumeClaim)
Option configures a PersistentVolumeClaim
func WithCompleteParams ¶
func WithCompleteParams(addr string, client *httpclient.HTTPClient) Option
WithCompleteParams provides an Option
type PersistentVolumeClaim ¶
type PersistentVolumeClaim struct {
// contains filtered or unexported fields
}
PersistentVolumeClaim is the object to manipulate k8s api of persistentVolumeClaim
func (*PersistentVolumeClaim) Create ¶
func (p *PersistentVolumeClaim) Create(pvc *apiv1.PersistentVolumeClaim) error
Create creates a k8s persistentVolumeClaim
func (*PersistentVolumeClaim) CreateIfNotExists ¶
func (p *PersistentVolumeClaim) CreateIfNotExists(pvc *apiv1.PersistentVolumeClaim) error
func (*PersistentVolumeClaim) Delete ¶
func (p *PersistentVolumeClaim) Delete(namespace, name string) error
Delete deletes a k8s persistentVolumeClaim
Click to show internal directories.
Click to hide internal directories.