Struct k8s_openapi::v1_10::api::apps::v1::StatefulSet [−][src]
pub struct StatefulSet {
pub api_version: Option<String>,
pub kind: Option<String>,
pub metadata: Option<ObjectMeta>,
pub spec: Option<StatefulSetSpec>,
pub status: Option<StatefulSetStatus>,
}StatefulSet represents a set of pods with consistent identities. Identities are defined as:
- Network: A single stable DNS and hostname.
- Storage: As many VolumeClaims as requested. The StatefulSet guarantees that a given network identity will always map to the same storage identity.
Fields
api_version: Option<String>
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources
kind: Option<String>
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
metadata: Option<ObjectMeta>
spec: Option<StatefulSetSpec>
Spec defines the desired identities of pods in this set.
status: Option<StatefulSetStatus>
Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.
Methods
impl StatefulSet[src]
impl StatefulSetpub fn create_apps_v1_namespaced_stateful_set(
namespace: &str,
body: &StatefulSet,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn create_apps_v1_namespaced_stateful_set(
namespace: &str,
body: &StatefulSet,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>create a StatefulSet
Use CreateAppsV1NamespacedStatefulSetResponse to parse the HTTP response.
impl StatefulSet[src]
impl StatefulSetpub fn delete_apps_v1_collection_namespaced_stateful_set(
namespace: &str,
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn delete_apps_v1_collection_namespaced_stateful_set(
namespace: &str,
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>delete collection of StatefulSet
Use DeleteAppsV1CollectionNamespacedStatefulSetResponse to parse the HTTP response.
impl StatefulSet[src]
impl StatefulSetpub fn delete_apps_v1_namespaced_stateful_set(
name: &str,
namespace: &str,
grace_period_seconds: Option<i64>,
orphan_dependents: Option<bool>,
pretty: Option<&str>,
propagation_policy: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn delete_apps_v1_namespaced_stateful_set(
name: &str,
namespace: &str,
grace_period_seconds: Option<i64>,
orphan_dependents: Option<bool>,
pretty: Option<&str>,
propagation_policy: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>delete a StatefulSet
Use DeleteAppsV1NamespacedStatefulSetResponse to parse the HTTP response.
impl StatefulSet[src]
impl StatefulSetpub fn list_apps_v1_namespaced_stateful_set(
namespace: &str,
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn list_apps_v1_namespaced_stateful_set(
namespace: &str,
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>list or watch objects of kind StatefulSet
Use ListAppsV1NamespacedStatefulSetResponse to parse the HTTP response.
impl StatefulSet[src]
impl StatefulSetpub fn list_apps_v1_stateful_set_for_all_namespaces(
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn list_apps_v1_stateful_set_for_all_namespaces(
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>list or watch objects of kind StatefulSet
Use ListAppsV1StatefulSetForAllNamespacesResponse to parse the HTTP response.
impl StatefulSet[src]
impl StatefulSetpub fn patch_apps_v1_namespaced_stateful_set(
name: &str,
namespace: &str,
body: &Patch,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn patch_apps_v1_namespaced_stateful_set(
name: &str,
namespace: &str,
body: &Patch,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>partially update the specified StatefulSet
Use PatchAppsV1NamespacedStatefulSetResponse to parse the HTTP response.
impl StatefulSet[src]
impl StatefulSetpub fn patch_apps_v1_namespaced_stateful_set_status(
name: &str,
namespace: &str,
body: &Patch,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn patch_apps_v1_namespaced_stateful_set_status(
name: &str,
namespace: &str,
body: &Patch,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>partially update status of the specified StatefulSet
Use PatchAppsV1NamespacedStatefulSetStatusResponse to parse the HTTP response.
impl StatefulSet[src]
impl StatefulSetpub fn read_apps_v1_namespaced_stateful_set(
name: &str,
namespace: &str,
exact: Option<bool>,
export: Option<bool>,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn read_apps_v1_namespaced_stateful_set(
name: &str,
namespace: &str,
exact: Option<bool>,
export: Option<bool>,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>read the specified StatefulSet
Use ReadAppsV1NamespacedStatefulSetResponse to parse the HTTP response.
impl StatefulSet[src]
impl StatefulSetpub fn read_apps_v1_namespaced_stateful_set_status(
name: &str,
namespace: &str,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn read_apps_v1_namespaced_stateful_set_status(
name: &str,
namespace: &str,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>read status of the specified StatefulSet
Use ReadAppsV1NamespacedStatefulSetStatusResponse to parse the HTTP response.
impl StatefulSet[src]
impl StatefulSetpub fn replace_apps_v1_namespaced_stateful_set(
name: &str,
namespace: &str,
body: &StatefulSet,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn replace_apps_v1_namespaced_stateful_set(
name: &str,
namespace: &str,
body: &StatefulSet,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>replace the specified StatefulSet
Use ReplaceAppsV1NamespacedStatefulSetResponse to parse the HTTP response.
impl StatefulSet[src]
impl StatefulSetpub fn replace_apps_v1_namespaced_stateful_set_status(
name: &str,
namespace: &str,
body: &StatefulSet,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn replace_apps_v1_namespaced_stateful_set_status(
name: &str,
namespace: &str,
body: &StatefulSet,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>replace status of the specified StatefulSet
Use ReplaceAppsV1NamespacedStatefulSetStatusResponse to parse the HTTP response.
impl StatefulSet[src]
impl StatefulSetpub fn watch_apps_v1_namespaced_stateful_set(
name: &str,
namespace: &str,
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn watch_apps_v1_namespaced_stateful_set(
name: &str,
namespace: &str,
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>watch changes to an object of kind StatefulSet
Use WatchAppsV1NamespacedStatefulSetResponse to parse the HTTP response.
impl StatefulSet[src]
impl StatefulSetpub fn watch_apps_v1_namespaced_stateful_set_list(
namespace: &str,
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn watch_apps_v1_namespaced_stateful_set_list(
namespace: &str,
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>watch individual changes to a list of StatefulSet
Use WatchAppsV1NamespacedStatefulSetListResponse to parse the HTTP response.
impl StatefulSet[src]
impl StatefulSetpub fn watch_apps_v1_stateful_set_list_for_all_namespaces(
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>[src]
pub fn watch_apps_v1_stateful_set_list_for_all_namespaces(
continue_: Option<&str>,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
limit: Option<i64>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>watch individual changes to a list of StatefulSet
Use WatchAppsV1StatefulSetListForAllNamespacesResponse to parse the HTTP response.
Trait Implementations
impl Clone for StatefulSet[src]
impl Clone for StatefulSetfn clone(&self) -> StatefulSet[src]
fn clone(&self) -> StatefulSetReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for StatefulSet[src]
impl Debug for StatefulSetfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for StatefulSet[src]
impl Default for StatefulSetfn default() -> StatefulSet[src]
fn default() -> StatefulSetReturns the "default value" for a type. Read more
impl PartialEq for StatefulSet[src]
impl PartialEq for StatefulSetfn eq(&self, other: &StatefulSet) -> bool[src]
fn eq(&self, other: &StatefulSet) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &StatefulSet) -> bool[src]
fn ne(&self, other: &StatefulSet) -> boolThis method tests for !=.
impl<'de> Deserialize<'de> for StatefulSet[src]
impl<'de> Deserialize<'de> for StatefulSetfn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
impl Serialize for StatefulSet[src]
impl Serialize for StatefulSetAuto Trait Implementations
impl Send for StatefulSet
impl Send for StatefulSetimpl Sync for StatefulSet
impl Sync for StatefulSet