Settings:
export KUBERNETES_BRANCH="release-1.10"
export CLIENT_VERSION="0.1.0a1"
export PACKAGE_NAME="client"
42 lines
2.4 KiB
Go
42 lines
2.4 KiB
Go
/*
|
|
* Kubernetes
|
|
*
|
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
*
|
|
* API version: v1.10.0
|
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
|
*/
|
|
|
|
package client
|
|
|
|
// StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.
|
|
type V1StorageClass struct {
|
|
|
|
// AllowVolumeExpansion shows whether the storage class allow volume expand
|
|
AllowVolumeExpansion bool `json:"allowVolumeExpansion,omitempty"`
|
|
|
|
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources
|
|
ApiVersion string `json:"apiVersion,omitempty"`
|
|
|
|
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
|
|
Kind string `json:"kind,omitempty"`
|
|
|
|
// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
|
|
Metadata *V1ObjectMeta `json:"metadata,omitempty"`
|
|
|
|
// Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.
|
|
MountOptions []string `json:"mountOptions,omitempty"`
|
|
|
|
// Parameters holds the parameters for the provisioner that should create volumes of this storage class.
|
|
Parameters map[string]string `json:"parameters,omitempty"`
|
|
|
|
// Provisioner indicates the type of the provisioner.
|
|
Provisioner string `json:"provisioner"`
|
|
|
|
// Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.
|
|
ReclaimPolicy string `json:"reclaimPolicy,omitempty"`
|
|
|
|
// VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is alpha-level and is only honored by servers that enable the VolumeScheduling feature.
|
|
VolumeBindingMode string `json:"volumeBindingMode,omitempty"`
|
|
}
|