Struct k8s_openapi_ext::storagev1::CSIDriver
source · [−]pub struct CSIDriver {
pub metadata: ObjectMeta,
pub spec: CSIDriverSpec,
}
Expand description
CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.
Fields
metadata: ObjectMeta
Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
spec: CSIDriverSpec
Specification of the CSI Driver.
Implementations
sourceimpl CSIDriver
impl CSIDriver
sourcepub fn create(
body: &CSIDriver,
optional: CreateOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<CreateResponse<CSIDriver>>), RequestError>
pub fn create(
body: &CSIDriver,
optional: CreateOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<CreateResponse<CSIDriver>>), RequestError>
create a CSIDriver
Use the returned crate::ResponseBody
<
crate::CreateResponse
<Self>>
constructor, or crate::CreateResponse
<Self>
directly, to parse the HTTP response.
Arguments
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
sourceimpl CSIDriver
impl CSIDriver
sourcepub fn delete(
name: &str,
optional: DeleteOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<DeleteResponse<CSIDriver>>), RequestError>
pub fn delete(
name: &str,
optional: DeleteOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<DeleteResponse<CSIDriver>>), RequestError>
delete a CSIDriver
Use the returned crate::ResponseBody
<
crate::DeleteResponse
<Self>>
constructor, or crate::DeleteResponse
<Self>
directly, to parse the HTTP response.
Arguments
-
name
name of the CSIDriver
-
optional
Optional parameters. Use
Default::default()
to not pass any.
sourceimpl CSIDriver
impl CSIDriver
sourcepub fn delete_collection(
delete_optional: DeleteOptional<'_>,
list_optional: ListOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<DeleteResponse<List<CSIDriver>>>), RequestError>
pub fn delete_collection(
delete_optional: DeleteOptional<'_>,
list_optional: ListOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<DeleteResponse<List<CSIDriver>>>), RequestError>
delete collection of CSIDriver
Use the returned crate::ResponseBody
<
crate::DeleteResponse
<
crate::List
<Self>>>
constructor, or crate::DeleteResponse
<
crate::List
<Self>>
directly, to parse the HTTP response.
Arguments
-
delete_optional
Delete options. Use
Default::default()
to not pass any. -
list_optional
List options. Use
Default::default()
to not pass any.
sourceimpl CSIDriver
impl CSIDriver
sourcepub fn list(
optional: ListOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<ListResponse<CSIDriver>>), RequestError>
pub fn list(
optional: ListOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<ListResponse<CSIDriver>>), RequestError>
list or watch objects of kind CSIDriver
This operation only supports listing all items of this type.
Use the returned crate::ResponseBody
<
crate::ListResponse
<Self>>
constructor, or crate::ListResponse
<Self>
directly, to parse the HTTP response.
Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
sourceimpl CSIDriver
impl CSIDriver
sourcepub fn patch(
name: &str,
body: &Patch,
optional: PatchOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<PatchResponse<CSIDriver>>), RequestError>
pub fn patch(
name: &str,
body: &Patch,
optional: PatchOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<PatchResponse<CSIDriver>>), RequestError>
partially update the specified CSIDriver
Use the returned crate::ResponseBody
<
crate::PatchResponse
<Self>>
constructor, or crate::PatchResponse
<Self>
directly, to parse the HTTP response.
Arguments
-
name
name of the CSIDriver
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
sourceimpl CSIDriver
impl CSIDriver
sourcepub fn read(
name: &str
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<ReadCSIDriverResponse>), RequestError>
pub fn read(
name: &str
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<ReadCSIDriverResponse>), RequestError>
read the specified CSIDriver
Use the returned crate::ResponseBody
<
ReadCSIDriverResponse
>
constructor, or ReadCSIDriverResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the CSIDriver
sourceimpl CSIDriver
impl CSIDriver
sourcepub fn replace(
name: &str,
body: &CSIDriver,
optional: ReplaceOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<ReplaceResponse<CSIDriver>>), RequestError>
pub fn replace(
name: &str,
body: &CSIDriver,
optional: ReplaceOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<ReplaceResponse<CSIDriver>>), RequestError>
replace the specified CSIDriver
Use the returned crate::ResponseBody
<
crate::ReplaceResponse
<Self>>
constructor, or crate::ReplaceResponse
<Self>
directly, to parse the HTTP response.
Arguments
-
name
name of the CSIDriver
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
sourceimpl CSIDriver
impl CSIDriver
sourcepub fn watch(
optional: WatchOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<WatchResponse<CSIDriver>>), RequestError>
pub fn watch(
optional: WatchOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<WatchResponse<CSIDriver>>), RequestError>
list or watch objects of kind CSIDriver
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned crate::ResponseBody
<
crate::WatchResponse
<Self>>
constructor, or crate::WatchResponse
<Self>
directly, to parse the HTTP response.
Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Trait Implementations
sourceimpl DeepMerge for CSIDriver
impl DeepMerge for CSIDriver
sourcefn merge_from(&mut self, other: CSIDriver)
fn merge_from(&mut self, other: CSIDriver)
other
into self
.sourceimpl<'de> Deserialize<'de> for CSIDriver
impl<'de> Deserialize<'de> for CSIDriver
sourcefn deserialize<D>(
deserializer: D
) -> Result<CSIDriver, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<CSIDriver, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
sourceimpl ListableResource for CSIDriver
impl ListableResource for CSIDriver
sourceimpl Resource for CSIDriver
impl Resource for CSIDriver
sourceconst API_VERSION: &'static str = "storage.k8s.io/v1"
const API_VERSION: &'static str = "storage.k8s.io/v1"
Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read more