Documentation ¶
Index ¶
- type StorageClass
- type StorageClassCell
- type StorageClassList
- func CreateStorageClassList(storageClasses []storage.StorageClass, dsQuery *dataselect.DataSelectQuery) *StorageClassList
- func GetStorageClassList(client kubernetes.Interface, dsQuery *dataselect.DataSelectQuery) (*StorageClassList, error)
- func GetStorageClassListFromChannels(channels *common.ResourceChannels, dsQuery *dataselect.DataSelectQuery) (*StorageClassList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageClass ¶
type StorageClass struct { ObjectMeta common.ObjectMeta `json:"objectMeta"` TypeMeta common.TypeMeta `json:"typeMeta"` // provisioner is the driver expected to handle this StorageClass. // This is an optionally-prefixed name, like a label key. // For example: "kubernetes.io/gce-pd" or "kubernetes.io/aws-ebs". // This value may not be empty. Provisioner string `json:"provisioner"` // parameters holds parameters for the provisioner. // These values are opaque to the system and are passed directly // to the provisioner. The only validation done on keys is that they are // not empty. The maximum number of parameters is // 512, with a cumulative max size of 256K // +optional Parameters map[string]string `json:"parameters"` }
StorageClass is a representation of a kubernetes StorageClass object.
func GetStorageClass ¶
func GetStorageClass(client kubernetes.Interface, name string) (*StorageClass, error)
GetStorageClass returns storage class object.
func ToStorageClass ¶
func ToStorageClass(storageClass *storage.StorageClass) StorageClass
ToStorageClass returns api storage class object based on kubernetes storage class object
type StorageClassCell ¶
type StorageClassCell storage.StorageClass
func (StorageClassCell) GetProperty ¶
func (self StorageClassCell) GetProperty(name dataselect.PropertyName) dataselect.ComparableValue
type StorageClassList ¶
type StorageClassList struct { ListMeta common.ListMeta `json:"listMeta"` // Unordered list of storage classes. StorageClasses []StorageClass `json:"storageClasses"` }
StorageClassList holds a list of storage class objects in the cluster.
func CreateStorageClassList ¶
func CreateStorageClassList(storageClasses []storage.StorageClass, dsQuery *dataselect.DataSelectQuery) *StorageClassList
CreateStorageClassList creates list of api storage class objects based on list of kubernetes storage class objects
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 *common.ResourceChannels, dsQuery *dataselect.DataSelectQuery) (*StorageClassList, error)
GetStorageClassListFromChannels returns a list of all storage class objects in the cluster.
Click to show internal directories.
Click to hide internal directories.