[−][src]Struct k8s_openapi::api::storage::v1::StorageClass
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.
Fields
allow_volume_expansion: Option<bool>AllowVolumeExpansion shows whether the storage class allow volume expand
allowed_topologies: Option<Vec<TopologySelectorTerm>>Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.
metadata: Option<ObjectMeta>Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
mount_options: Option<Vec<String>>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.
parameters: Option<BTreeMap<String, String>>Parameters holds the parameters for the provisioner that should create volumes of this storage class.
provisioner: StringProvisioner indicates the type of the provisioner.
reclaim_policy: Option<String>Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.
volume_binding_mode: Option<String>VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.
Methods
impl StorageClass[src]
pub fn create_storage_class(
body: &StorageClass,
optional: CreateStorageClassOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateStorageClassResponse>), RequestError>[src]
body: &StorageClass,
optional: CreateStorageClassOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateStorageClassResponse>), RequestError>
create a StorageClass
Use the returned crate::ResponseBody<CreateStorageClassResponse> constructor, or CreateStorageClassResponse directly, to parse the HTTP response.
Arguments
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl StorageClass[src]
pub fn delete_collection_storage_class(
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionStorageClassResponse>), RequestError>[src]
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionStorageClassResponse>), RequestError>
delete collection of StorageClass
Use the returned crate::ResponseBody<DeleteCollectionStorageClassResponse> constructor, or DeleteCollectionStorageClassResponse directly, to parse the HTTP response.
Arguments
-
delete_optionalDelete options. Use
Default::default()to not pass any. -
list_optionalList options. Use
Default::default()to not pass any.
impl StorageClass[src]
pub fn delete_storage_class(
name: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteStorageClassResponse>), RequestError>[src]
name: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteStorageClassResponse>), RequestError>
delete a StorageClass
Use the returned crate::ResponseBody<DeleteStorageClassResponse> constructor, or DeleteStorageClassResponse directly, to parse the HTTP response.
Arguments
-
namename of the StorageClass
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl StorageClass[src]
pub fn list_storage_class(
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListStorageClassResponse>), RequestError>[src]
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListStorageClassResponse>), RequestError>
list or watch objects of kind StorageClass
This operation only supports listing all items of this type.
Use the returned crate::ResponseBody<ListStorageClassResponse> constructor, or ListStorageClassResponse directly, to parse the HTTP response.
Arguments
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl StorageClass[src]
pub fn patch_storage_class(
name: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchStorageClassResponse>), RequestError>[src]
name: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchStorageClassResponse>), RequestError>
partially update the specified StorageClass
Use the returned crate::ResponseBody<PatchStorageClassResponse> constructor, or PatchStorageClassResponse directly, to parse the HTTP response.
Arguments
-
namename of the StorageClass
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl StorageClass[src]
pub fn read_storage_class(
name: &str,
optional: ReadStorageClassOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadStorageClassResponse>), RequestError>[src]
name: &str,
optional: ReadStorageClassOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadStorageClassResponse>), RequestError>
read the specified StorageClass
Use the returned crate::ResponseBody<ReadStorageClassResponse> constructor, or ReadStorageClassResponse directly, to parse the HTTP response.
Arguments
-
namename of the StorageClass
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl StorageClass[src]
pub fn replace_storage_class(
name: &str,
body: &StorageClass,
optional: ReplaceStorageClassOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceStorageClassResponse>), RequestError>[src]
name: &str,
body: &StorageClass,
optional: ReplaceStorageClassOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceStorageClassResponse>), RequestError>
replace the specified StorageClass
Use the returned crate::ResponseBody<ReplaceStorageClassResponse> constructor, or ReplaceStorageClassResponse directly, to parse the HTTP response.
Arguments
-
namename of the StorageClass
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl StorageClass[src]
pub fn watch_storage_class(
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchStorageClassResponse>), RequestError>[src]
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchStorageClassResponse>), RequestError>
list or watch objects of kind StorageClass
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned crate::ResponseBody<WatchStorageClassResponse> constructor, or WatchStorageClassResponse directly, to parse the HTTP response.
Arguments
-
optionalOptional parameters. Use
Default::default()to not pass any.
Trait Implementations
impl Resource for StorageClass[src]
fn api_version() -> &'static str[src]
fn group() -> &'static str[src]
fn kind() -> &'static str[src]
fn version() -> &'static str[src]
impl Metadata for StorageClass[src]
impl Default for StorageClass[src]
fn default() -> StorageClass[src]
impl Clone for StorageClass[src]
fn clone(&self) -> StorageClass[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq<StorageClass> for StorageClass[src]
fn eq(&self, other: &StorageClass) -> bool[src]
fn ne(&self, other: &StorageClass) -> bool[src]
impl Debug for StorageClass[src]
impl Serialize for StorageClass[src]
impl<'de> Deserialize<'de> for StorageClass[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Sync for StorageClass
impl Unpin for StorageClass
impl Send for StorageClass
impl UnwindSafe for StorageClass
impl RefUnwindSafe for StorageClass
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,