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