Documentation ¶
Index ¶
- func DeletePersistentVolume(client *kubernetes.Clientset, name string) (err error)
- type PersistentVolume
- type PersistentVolumeCell
- type PersistentVolumeDetail
- type PersistentVolumeList
- func GetPersistentVolumeList(client kubernetes.Interface, dsQuery *dataselect.DataSelectQuery) (*PersistentVolumeList, error)
- func GetPersistentVolumeListFromChannels(channels *k8scommon.ResourceChannels, dsQuery *dataselect.DataSelectQuery) (*PersistentVolumeList, error)
- func GetStorageClassPersistentVolumes(client client.Interface, storageClassName string, ...) (*PersistentVolumeList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeletePersistentVolume ¶
func DeletePersistentVolume(client *kubernetes.Clientset, name string) (err error)
Types ¶
type PersistentVolume ¶
type PersistentVolume struct { ObjectMeta k8s.ObjectMeta `json:"objectMeta"` TypeMeta k8s.TypeMeta `json:"typeMeta"` Capacity v1.ResourceList `json:"capacity"` AccessModes []v1.PersistentVolumeAccessMode `json:"accessModes"` ReclaimPolicy v1.PersistentVolumeReclaimPolicy `json:"reclaimPolicy"` StorageClass string `json:"storageClass"` MountOptions []string `json:"mountOptions"` Status v1.PersistentVolumePhase `json:"status"` Claim string `json:"claim"` Reason string `json:"reason"` }
PersistentVolume provides the simplified presentation layer view of Kubernetes Persistent Volume resource.
type PersistentVolumeCell ¶
type PersistentVolumeCell v1.PersistentVolume
PersistentVolumeCell allows to perform complex data section on []api.PersistentVolume.
func (PersistentVolumeCell) GetProperty ¶
func (self PersistentVolumeCell) GetProperty(name dataselect.PropertyName) dataselect.ComparableValue
GetProperty allows to perform complex data section on PersistentVolumeCell.
type PersistentVolumeDetail ¶
type PersistentVolumeDetail struct { // Extends list item structure. PersistentVolume `json:",inline"` Message string `json:"message"` PersistentVolumeSource v1.PersistentVolumeSource `json:"persistentVolumeSource"` }
PersistentVolumeDetail provides the presentation layer view of Kubernetes Persistent Volume resource.
func GetPersistentVolumeDetail ¶
func GetPersistentVolumeDetail(client client.Interface, name string) (*PersistentVolumeDetail, error)
GetPersistentVolumeDetail returns detailed information about a persistent volume
type PersistentVolumeList ¶
type PersistentVolumeList struct { ListMeta k8s.ListMeta `json:"listMeta"` Items []PersistentVolume `json:"items"` }
PersistentVolumeList contains a list of Persistent Volumes in the cluster.
func GetPersistentVolumeList ¶
func GetPersistentVolumeList(client kubernetes.Interface, dsQuery *dataselect.DataSelectQuery) (*PersistentVolumeList, error)
GetPersistentVolumeList returns a list of all Persistent Volumes in the cluster.
func GetPersistentVolumeListFromChannels ¶
func GetPersistentVolumeListFromChannels(channels *k8scommon.ResourceChannels, dsQuery *dataselect.DataSelectQuery) (*PersistentVolumeList, error)
GetPersistentVolumeListFromChannels returns a list of all Persistent Volumes in the cluster reading required resource list once from the channels.
func GetStorageClassPersistentVolumes ¶
func GetStorageClassPersistentVolumes(client client.Interface, storageClassName string, dsQuery *dataselect.DataSelectQuery) (*PersistentVolumeList, error)
GetStorageClassPersistentVolumes gets persistentvolumes that are associated with this storageclass.