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<'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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl ListableResource for CSIDriver
impl ListableResource for CSIDriver
sourceimpl PartialEq<CSIDriver> for CSIDriver
impl PartialEq<CSIDriver> 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"
The API version of the resource. This is a composite of Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read more
sourceconst GROUP: &'static str = "storage.k8s.io"
const GROUP: &'static str = "storage.k8s.io"
The group of the resource, or the empty string if the resource doesn’t have a group.
sourceconst URL_PATH_SEGMENT: &'static str = "csidrivers"
const URL_PATH_SEGMENT: &'static str = "csidrivers"
The URL path segment used to construct URLs related to this resource. Read more
type Scope = ClusterResourceScope
type Scope = ClusterResourceScope
Indicates whether the resource is namespace-scoped or cluster-scoped or a subresource. Read more
sourceimpl Serialize for CSIDriver
impl Serialize for CSIDriver
sourcefn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CSIDriver
Auto Trait Implementations
impl RefUnwindSafe for CSIDriver
impl Send for CSIDriver
impl Sync for CSIDriver
impl Unpin for CSIDriver
impl UnwindSafe for CSIDriver
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more