persistentvolumeclaim

package
v1.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2017 License: Apache-2.0 Imports: 9 Imported by: 123

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PersistentVolumeClaim

type PersistentVolumeClaim struct {
	ObjectMeta   api.ObjectMeta                  `json:"objectMeta"`
	TypeMeta     api.TypeMeta                    `json:"typeMeta"`
	Status       string                          `json:"status"`
	Volume       string                          `json:"volume"`
	Capacity     v1.ResourceList                 `json:"capacity"`
	AccessModes  []v1.PersistentVolumeAccessMode `json:"accessModes"`
	StorageClass *string                         `json:"storageClass"`
}

PersistentVolumeClaim provides the simplified presentation layer view of Kubernetes Persistent Volume Claim resource.

type PersistentVolumeClaimCell

type PersistentVolumeClaimCell api.PersistentVolumeClaim

func (PersistentVolumeClaimCell) GetProperty

type PersistentVolumeClaimDetail

type PersistentVolumeClaimDetail struct {
	ObjectMeta   api.ObjectMeta                  `json:"objectMeta"`
	TypeMeta     api.TypeMeta                    `json:"typeMeta"`
	Status       v1.PersistentVolumeClaimPhase   `json:"status"`
	Volume       string                          `json:"volume"`
	Capacity     v1.ResourceList                 `json:"capacity"`
	AccessModes  []v1.PersistentVolumeAccessMode `json:"accessModes"`
	StorageClass *string                         `json:"storageClass"`
}

PersistentVolumeClaimDetail provides the presentation layer view of Kubernetes Persistent Volume Claim resource.

func GetPersistentVolumeClaimDetail

func GetPersistentVolumeClaimDetail(client kubernetes.Interface, namespace string, name string) (*PersistentVolumeClaimDetail, error)

GetPersistentVolumeClaimDetail returns detailed information about a persistent volume claim

type PersistentVolumeClaimList

type PersistentVolumeClaimList struct {
	ListMeta api.ListMeta `json:"listMeta"`

	// Unordered list of persistent volume claims
	Items []PersistentVolumeClaim `json:"items"`

	// List of non-critical errors, that occurred during resource retrieval.
	Errors []error `json:"errors"`
}

PersistentVolumeClaimList contains a list of Persistent Volume Claims in the cluster.

func GetPersistentVolumeClaimList

func GetPersistentVolumeClaimList(client kubernetes.Interface, nsQuery *common.NamespaceQuery,
	dsQuery *dataselect.DataSelectQuery) (*PersistentVolumeClaimList, error)

GetPersistentVolumeClaimList returns a list of all Persistent Volume Claims in the cluster.

func GetPersistentVolumeClaimListFromChannels

func GetPersistentVolumeClaimListFromChannels(channels *common.ResourceChannels, nsQuery *common.NamespaceQuery,
	dsQuery *dataselect.DataSelectQuery) (*PersistentVolumeClaimList, error)

GetPersistentVolumeClaimListFromChannels returns a list of all Persistent Volume Claims in the cluster reading required resource list once from the channels.

func GetPodPersistentVolumeClaims added in v1.8.0

func GetPodPersistentVolumeClaims(client client.Interface, namespace string, podName string,
	dsQuery *dataselect.DataSelectQuery) (*PersistentVolumeClaimList, error)

GetPodPersistentVolumeClaims gets persistentvolumeclaims that are associated with this pod.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL