Struct k8s_openapi::v1_7::kubernetes::pkg::api::v1::Endpoints [−][src]
pub struct Endpoints { pub api_version: Option<String>, pub kind: Option<String>, pub metadata: Option<ObjectMeta>, pub subsets: Vec<EndpointSubset>, }
Endpoints is a collection of endpoints that implement the actual service. Example: Name: "mysvc", Subsets: [ { Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] }, { Addresses: [{"ip": "10.10.3.3"}], Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] }, ]
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>
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
subsets: Vec<EndpointSubset>
The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.
Methods
impl Endpoints
[src]
impl Endpoints
pub fn create_core_v1_namespaced_endpoints(
namespace: &str,
body: &Endpoints,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn create_core_v1_namespaced_endpoints(
namespace: &str,
body: &Endpoints,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
create Endpoints
Use CreateCoreV1NamespacedEndpointsResponse
to parse the HTTP response.
impl Endpoints
[src]
impl Endpoints
pub fn delete_core_v1_collection_namespaced_endpoints(
namespace: &str,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn delete_core_v1_collection_namespaced_endpoints(
namespace: &str,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
delete collection of Endpoints
Use DeleteCoreV1CollectionNamespacedEndpointsResponse
to parse the HTTP response.
impl Endpoints
[src]
impl Endpoints
pub fn delete_core_v1_namespaced_endpoints(
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_core_v1_namespaced_endpoints(
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 Endpoints
Use DeleteCoreV1NamespacedEndpointsResponse
to parse the HTTP response.
impl Endpoints
[src]
impl Endpoints
pub fn list_core_v1_endpoints_for_all_namespaces(
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn list_core_v1_endpoints_for_all_namespaces(
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
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 Endpoints
Use ListCoreV1EndpointsForAllNamespacesResponse
to parse the HTTP response.
impl Endpoints
[src]
impl Endpoints
pub fn list_core_v1_namespaced_endpoints(
namespace: &str,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn list_core_v1_namespaced_endpoints(
namespace: &str,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
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 Endpoints
Use ListCoreV1NamespacedEndpointsResponse
to parse the HTTP response.
impl Endpoints
[src]
impl Endpoints
pub fn patch_core_v1_namespaced_endpoints(
name: &str,
namespace: &str,
body: &Patch,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn patch_core_v1_namespaced_endpoints(
name: &str,
namespace: &str,
body: &Patch,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
partially update the specified Endpoints
Use PatchCoreV1NamespacedEndpointsResponse
to parse the HTTP response.
impl Endpoints
[src]
impl Endpoints
pub fn read_core_v1_namespaced_endpoints(
name: &str,
namespace: &str,
exact: Option<bool>,
export: Option<bool>,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn read_core_v1_namespaced_endpoints(
name: &str,
namespace: &str,
exact: Option<bool>,
export: Option<bool>,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
read the specified Endpoints
Use ReadCoreV1NamespacedEndpointsResponse
to parse the HTTP response.
impl Endpoints
[src]
impl Endpoints
pub fn replace_core_v1_namespaced_endpoints(
name: &str,
namespace: &str,
body: &Endpoints,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn replace_core_v1_namespaced_endpoints(
name: &str,
namespace: &str,
body: &Endpoints,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
replace the specified Endpoints
Use ReplaceCoreV1NamespacedEndpointsResponse
to parse the HTTP response.
impl Endpoints
[src]
impl Endpoints
pub fn watch_core_v1_endpoints_list_for_all_namespaces(
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn watch_core_v1_endpoints_list_for_all_namespaces(
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
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 Endpoints
Use WatchCoreV1EndpointsListForAllNamespacesResponse
to parse the HTTP response.
impl Endpoints
[src]
impl Endpoints
pub fn watch_core_v1_namespaced_endpoints(
name: &str,
namespace: &str,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn watch_core_v1_namespaced_endpoints(
name: &str,
namespace: &str,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
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 Endpoints
Use WatchCoreV1NamespacedEndpointsResponse
to parse the HTTP response.
impl Endpoints
[src]
impl Endpoints
pub fn watch_core_v1_namespaced_endpoints_list(
namespace: &str,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn watch_core_v1_namespaced_endpoints_list(
namespace: &str,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
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 Endpoints
Use WatchCoreV1NamespacedEndpointsListResponse
to parse the HTTP response.
Trait Implementations
impl Clone for Endpoints
[src]
impl Clone for Endpoints
fn clone(&self) -> Endpoints
[src]
fn clone(&self) -> Endpoints
Returns 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 Endpoints
[src]
impl Debug for Endpoints
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Endpoints
[src]
impl Default for Endpoints
impl PartialEq for Endpoints
[src]
impl PartialEq for Endpoints
fn eq(&self, other: &Endpoints) -> bool
[src]
fn eq(&self, other: &Endpoints) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Endpoints) -> bool
[src]
fn ne(&self, other: &Endpoints) -> bool
This method tests for !=
.
impl<'de> Deserialize<'de> for Endpoints
[src]
impl<'de> Deserialize<'de> for Endpoints
fn 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 Endpoints
[src]
impl Serialize for Endpoints