storageclass

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2017 License: Apache-2.0 Imports: 9 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 api.ObjectMeta `json:"objectMeta"`
	TypeMeta   api.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.

type StorageClassCell

type StorageClassCell storage.StorageClass

func (StorageClassCell) GetProperty

type StorageClassDetail added in v1.8.0

type StorageClassDetail struct {
	ObjectMeta           api.ObjectMeta                        `json:"objectMeta"`
	TypeMeta             api.TypeMeta                          `json:"typeMeta"`
	Provisioner          string                                `json:"provisioner"`
	Parameters           map[string]string                     `json:"parameters"`
	PersistentVolumeList persistentvolume.PersistentVolumeList `json:"persistentVolumeList"`
}

StorageClassDetail provides the presentation layer view of Kubernetes StorageClass resource, It is StorageClassDetail plus PersistentVolumes associated with StorageClass.

func GetStorageClass

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

GetStorageClass returns storage class object.

type StorageClassList

type StorageClassList struct {
	ListMeta       api.ListMeta   `json:"listMeta"`
	StorageClasses []StorageClass `json:"storageClasses"`

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

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 *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