storageclass

package
v0.0.0-...-1dfee00 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteStorageClass

func DeleteStorageClass(client kubernetes.Interface, name string) (err error)

Types

type StorageClass

type StorageClass struct {
	ObjectMeta    k8s.ObjectMeta                    `json:"objectMeta"`
	TypeMeta      k8s.TypeMeta                      `json:"typeMeta"`
	Provisioner   string                            `json:"provisioner"`
	Parameters    map[string]string                 `json:"parameters"`
	ReclaimPolicy *v1.PersistentVolumeReclaimPolicy `json:"reclaimPolicy,omitempty"`
}

StorageClass is a representation of a Kubernetes Storage Class object.

type StorageClassCell

type StorageClassCell storage.StorageClass

func (StorageClassCell) GetProperty

type StorageClassDetail

type StorageClassDetail struct {
	// Extends list item structure.
	StorageClass         `json:",inline"`
	PersistentVolumeList pv.PersistentVolumeList `json:"persistentVolumeList"`
}

StorageClassDetail provides the presentation layer view of Storage Class resource.

func GetStorageClassDetail

func GetStorageClassDetail(client kubernetes.Interface, name string) (*StorageClassDetail, error)

GetStorageClassDetail returns Storage Class resource.

type StorageClassList

type StorageClassList struct {
	ListMeta k8s.ListMeta   `json:"listMeta"`
	Items    []StorageClass `json:"items"`
}

StorageClassList holds a list of Storage Class objects in the cluster.

func GetStorageClassList

func GetStorageClassList(client kubernetes.Interface, dsQuery *dataselect.DataSelectQuery) (*StorageClassList, error)

GetStorageClassList returns a list of all storage class objects in the cluster.

func GetStorageClassListFromChannels

func GetStorageClassListFromChannels(channels *k8scommon.ResourceChannels,
	dsQuery *dataselect.DataSelectQuery) (*StorageClassList, error)

GetStorageClassListFromChannels returns a list of all storage class objects in the cluster.

Jump to

Keyboard shortcuts

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