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: ObjectMetaStandard 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: CSIDriverSpecSpecification of the CSI Driver.
Implementations§
source§impl 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 -
optionalOptional parameters. Use
Default::default()to not pass any.
source§impl 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
-
namename of the CSIDriver
-
optionalOptional parameters. Use
Default::default()to not pass any.
source§impl 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_optionalDelete options. Use
Default::default()to not pass any. -
list_optionalList options. Use
Default::default()to not pass any.
source§impl 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
-
optionalOptional parameters. Use
Default::default()to not pass any.
source§impl 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
-
namename of the CSIDriver
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
source§impl 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
-
namename of the CSIDriver
source§impl 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
-
namename of the CSIDriver
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
source§impl 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
-
optionalOptional parameters. Use
Default::default()to not pass any.
Trait Implementations§
source§impl DeepMerge for CSIDriver
impl DeepMerge for CSIDriver
source§fn merge_from(&mut self, other: CSIDriver)
fn merge_from(&mut self, other: CSIDriver)
other into self.source§impl<'de> Deserialize<'de> for CSIDriver
impl<'de> Deserialize<'de> for CSIDriver
source§fn 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>,
source§impl ListableResource for CSIDriver
impl ListableResource for CSIDriver
source§impl PartialEq<CSIDriver> for CSIDriver
impl PartialEq<CSIDriver> for CSIDriver
source§impl Resource for CSIDriver
impl Resource for CSIDriver
source§const 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