Struct k8s_openapi_ext::appsv1::DaemonSet
source · [−]pub struct DaemonSet {
pub metadata: ObjectMeta,
pub spec: Option<DaemonSetSpec>,
pub status: Option<DaemonSetStatus>,
}Expand description
DaemonSet represents the configuration of a daemon set.
Fields
metadata: ObjectMetaStandard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
spec: Option<DaemonSetSpec>The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
status: Option<DaemonSetStatus>The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
Implementations
sourceimpl DaemonSet
impl DaemonSet
sourcepub fn create(
namespace: &str,
body: &DaemonSet,
optional: CreateOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<CreateResponse<DaemonSet>>), RequestError>
pub fn create(
namespace: &str,
body: &DaemonSet,
optional: CreateOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<CreateResponse<DaemonSet>>), RequestError>
create a DaemonSet
Use the returned crate::ResponseBody<crate::CreateResponse<Self>> constructor, or crate::CreateResponse<Self> directly, to parse the HTTP response.
Arguments
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
sourceimpl DaemonSet
impl DaemonSet
sourcepub fn delete_collection(
namespace: &str,
delete_optional: DeleteOptional<'_>,
list_optional: ListOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<DeleteResponse<List<DaemonSet>>>), RequestError>
pub fn delete_collection(
namespace: &str,
delete_optional: DeleteOptional<'_>,
list_optional: ListOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<DeleteResponse<List<DaemonSet>>>), RequestError>
delete collection of DaemonSet
Use the returned crate::ResponseBody<crate::DeleteResponse<crate::List<Self>>> constructor, or crate::DeleteResponse<crate::List<Self>> directly, to parse the HTTP response.
Arguments
-
namespaceobject name and auth scope, such as for teams and projects
-
delete_optionalDelete options. Use
Default::default()to not pass any. -
list_optionalList options. Use
Default::default()to not pass any.
sourceimpl DaemonSet
impl DaemonSet
sourcepub fn delete(
name: &str,
namespace: &str,
optional: DeleteOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<DeleteResponse<DaemonSet>>), RequestError>
pub fn delete(
name: &str,
namespace: &str,
optional: DeleteOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<DeleteResponse<DaemonSet>>), RequestError>
delete a DaemonSet
Use the returned crate::ResponseBody<crate::DeleteResponse<Self>> constructor, or crate::DeleteResponse<Self> directly, to parse the HTTP response.
Arguments
-
namename of the DaemonSet
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional parameters. Use
Default::default()to not pass any.
sourceimpl DaemonSet
impl DaemonSet
sourcepub fn list_for_all_namespaces(
optional: ListOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<ListResponse<DaemonSet>>), RequestError>
pub fn list_for_all_namespaces(
optional: ListOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<ListResponse<DaemonSet>>), RequestError>
list or watch objects of kind DaemonSet
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.
sourceimpl DaemonSet
impl DaemonSet
sourcepub fn list(
namespace: &str,
optional: ListOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<ListResponse<DaemonSet>>), RequestError>
pub fn list(
namespace: &str,
optional: ListOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<ListResponse<DaemonSet>>), RequestError>
list or watch objects of kind DaemonSet
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
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional parameters. Use
Default::default()to not pass any.
sourceimpl DaemonSet
impl DaemonSet
sourcepub fn patch(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<PatchResponse<DaemonSet>>), RequestError>
pub fn patch(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<PatchResponse<DaemonSet>>), RequestError>
partially update the specified DaemonSet
Use the returned crate::ResponseBody<crate::PatchResponse<Self>> constructor, or crate::PatchResponse<Self> directly, to parse the HTTP response.
Arguments
-
namename of the DaemonSet
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
sourceimpl DaemonSet
impl DaemonSet
sourcepub fn patch_status(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<PatchResponse<DaemonSet>>), RequestError>
pub fn patch_status(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<PatchResponse<DaemonSet>>), RequestError>
partially update status of the specified DaemonSet
Use the returned crate::ResponseBody<crate::PatchResponse<Self>> constructor, or crate::PatchResponse<Self> directly, to parse the HTTP response.
Arguments
-
namename of the DaemonSet
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
sourceimpl DaemonSet
impl DaemonSet
sourcepub fn read(
name: &str,
namespace: &str
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<ReadDaemonSetResponse>), RequestError>
pub fn read(
name: &str,
namespace: &str
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<ReadDaemonSetResponse>), RequestError>
read the specified DaemonSet
Use the returned crate::ResponseBody<ReadDaemonSetResponse> constructor, or ReadDaemonSetResponse directly, to parse the HTTP response.
Arguments
-
namename of the DaemonSet
-
namespaceobject name and auth scope, such as for teams and projects
sourceimpl DaemonSet
impl DaemonSet
sourcepub fn read_status(
name: &str,
namespace: &str
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<ReadDaemonSetStatusResponse>), RequestError>
pub fn read_status(
name: &str,
namespace: &str
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<ReadDaemonSetStatusResponse>), RequestError>
read status of the specified DaemonSet
Use the returned crate::ResponseBody<ReadDaemonSetStatusResponse> constructor, or ReadDaemonSetStatusResponse directly, to parse the HTTP response.
Arguments
-
namename of the DaemonSet
-
namespaceobject name and auth scope, such as for teams and projects
sourceimpl DaemonSet
impl DaemonSet
sourcepub fn replace(
name: &str,
namespace: &str,
body: &DaemonSet,
optional: ReplaceOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<ReplaceResponse<DaemonSet>>), RequestError>
pub fn replace(
name: &str,
namespace: &str,
body: &DaemonSet,
optional: ReplaceOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<ReplaceResponse<DaemonSet>>), RequestError>
replace the specified DaemonSet
Use the returned crate::ResponseBody<crate::ReplaceResponse<Self>> constructor, or crate::ReplaceResponse<Self> directly, to parse the HTTP response.
Arguments
-
namename of the DaemonSet
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
sourceimpl DaemonSet
impl DaemonSet
sourcepub fn replace_status(
name: &str,
namespace: &str,
body: &DaemonSet,
optional: ReplaceOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<ReplaceResponse<DaemonSet>>), RequestError>
pub fn replace_status(
name: &str,
namespace: &str,
body: &DaemonSet,
optional: ReplaceOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<ReplaceResponse<DaemonSet>>), RequestError>
replace status of the specified DaemonSet
Use the returned crate::ResponseBody<crate::ReplaceResponse<Self>> constructor, or crate::ReplaceResponse<Self> directly, to parse the HTTP response.
Arguments
-
namename of the DaemonSet
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
sourceimpl DaemonSet
impl DaemonSet
sourcepub fn watch_for_all_namespaces(
optional: WatchOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<WatchResponse<DaemonSet>>), RequestError>
pub fn watch_for_all_namespaces(
optional: WatchOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<WatchResponse<DaemonSet>>), RequestError>
list or watch objects of kind DaemonSet
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.
sourceimpl DaemonSet
impl DaemonSet
sourcepub fn watch(
namespace: &str,
optional: WatchOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<WatchResponse<DaemonSet>>), RequestError>
pub fn watch(
namespace: &str,
optional: WatchOptional<'_>
) -> Result<(Request<Vec<u8, Global>>, fn(StatusCode) -> ResponseBody<WatchResponse<DaemonSet>>), RequestError>
list or watch objects of kind DaemonSet
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
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional parameters. Use
Default::default()to not pass any.
Trait Implementations
sourceimpl DaemonSetExt for DaemonSet
impl DaemonSetExt for DaemonSet
fn new(name: impl ToString) -> Self
fn with_labels(
name: impl ToString,
labels: impl IntoIterator<Item = (impl ToString, impl ToString)>
) -> Self
fn spec(self, spec: DaemonSetSpec) -> Self
fn min_ready_seconds(self, seconds: i32) -> Self
fn revision_history_limit(self, limit: i32) -> Self
fn selector(self, selector: LabelSelector) -> Self
fn match_labels(
self,
match_labels: impl IntoIterator<Item = (impl ToString, impl ToString)>
) -> Self
fn update_strategy(self, strategy: DaemonSetUpdateStrategy) -> Self
fn template(self, template: PodTemplateSpec) -> Self
fn pod(self, pod_spec: PodSpec) -> Self
sourceimpl DeepMerge for DaemonSet
impl DeepMerge for DaemonSet
sourcefn merge_from(&mut self, other: DaemonSet)
fn merge_from(&mut self, other: DaemonSet)
other into self.sourceimpl<'de> Deserialize<'de> for DaemonSet
impl<'de> Deserialize<'de> for DaemonSet
sourcefn deserialize<D>(
deserializer: D
) -> Result<DaemonSet, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<DaemonSet, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
sourceimpl ListableResource for DaemonSet
impl ListableResource for DaemonSet
sourceimpl Resource for DaemonSet
impl Resource for DaemonSet
sourceconst API_VERSION: &'static str = "apps/v1"
const API_VERSION: &'static str = "apps/v1"
Resource::GROUP and Resource::VERSION (eg "apiextensions.k8s.io/v1beta1")
or just the version for resources without a group (eg "v1"). Read more