Documentation ¶
Overview ¶
Package persistentvolumes provides implementation of PersistentVolume resources for Kubernetes
Index ¶
- type PersistentVolumes
- func (obj *PersistentVolumes) Apply(yaml string) (k8sTypes.PersistentVolume, error)
- func (obj *PersistentVolumes) Create(persistentvolume k8sTypes.PersistentVolume, opts metav1.CreateOptions) (k8sTypes.PersistentVolume, error)
- func (obj *PersistentVolumes) Delete(name string, opts metav1.DeleteOptions) error
- func (obj *PersistentVolumes) Get(name string, opts metav1.GetOptions) (k8sTypes.PersistentVolume, error)
- func (obj *PersistentVolumes) List() ([]k8sTypes.PersistentVolume, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PersistentVolumes ¶
type PersistentVolumes struct {
// contains filtered or unexported fields
}
PersistentVolumes provides API for manipulating PersistentVolume resources within a Kubernetes cluster
func New ¶
func New(ctx context.Context, client kubernetes.Interface, metaOptions metav1.ListOptions) *PersistentVolumes
New creates a new instance backed by the provided client
func (*PersistentVolumes) Apply ¶
func (obj *PersistentVolumes) Apply(yaml string) (k8sTypes.PersistentVolume, error)
Apply creates the Kubernetes resource given the supplied YAML configuration
func (*PersistentVolumes) Create ¶
func (obj *PersistentVolumes) Create( persistentvolume k8sTypes.PersistentVolume, opts metav1.CreateOptions, ) (k8sTypes.PersistentVolume, error)
Create creates the Kubernetes resource given the supplied object
func (*PersistentVolumes) Delete ¶
func (obj *PersistentVolumes) Delete(name string, opts metav1.DeleteOptions) error
Delete removes the named PersistentVolumes from the cluster
func (*PersistentVolumes) Get ¶
func (obj *PersistentVolumes) Get(name string, opts metav1.GetOptions) (k8sTypes.PersistentVolume, error)
Get returns the named PersistentVolumes instance within the cluster if available
func (*PersistentVolumes) List ¶
func (obj *PersistentVolumes) List() ([]k8sTypes.PersistentVolume, error)
List returns a collection of PersistentVolumes available within the cluster
Click to show internal directories.
Click to hide internal directories.