storageclass

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

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.

Jump to

Keyboard shortcuts

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