[−][src]Struct k8s_openapi::api::core::v1::Endpoints
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
metadata: Option<ObjectMeta>
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
subsets: Option<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]
pub fn create_namespaced_endpoints(
namespace: &str,
body: &Endpoints,
optional: CreateNamespacedEndpointsOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedEndpointsResponse>), RequestError>
[src]
namespace: &str,
body: &Endpoints,
optional: CreateNamespacedEndpointsOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedEndpointsResponse>), RequestError>
create Endpoints
Use the returned crate::ResponseBody
<
CreateNamespacedEndpointsResponse
>
constructor, or CreateNamespacedEndpointsResponse
directly, to parse the HTTP response.
Arguments
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl Endpoints
[src]
pub fn delete_collection_namespaced_endpoints(
namespace: &str,
optional: DeleteCollectionNamespacedEndpointsOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedEndpointsResponse>), RequestError>
[src]
namespace: &str,
optional: DeleteCollectionNamespacedEndpointsOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedEndpointsResponse>), RequestError>
delete collection of Endpoints
Use the returned crate::ResponseBody
<
DeleteCollectionNamespacedEndpointsResponse
>
constructor, or DeleteCollectionNamespacedEndpointsResponse
directly, to parse the HTTP response.
Arguments
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl Endpoints
[src]
pub fn delete_namespaced_endpoints(
name: &str,
namespace: &str,
optional: DeleteNamespacedEndpointsOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedEndpointsResponse>), RequestError>
[src]
name: &str,
namespace: &str,
optional: DeleteNamespacedEndpointsOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedEndpointsResponse>), RequestError>
delete Endpoints
Use the returned crate::ResponseBody
<
DeleteNamespacedEndpointsResponse
>
constructor, or DeleteNamespacedEndpointsResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the Endpoints
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl Endpoints
[src]
pub fn list_endpoints_for_all_namespaces(
optional: ListEndpointsForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListEndpointsForAllNamespacesResponse>), RequestError>
[src]
optional: ListEndpointsForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListEndpointsForAllNamespacesResponse>), RequestError>
list or watch objects of kind Endpoints
This operation only supports listing all items of this type.
Use the returned crate::ResponseBody
<
ListEndpointsForAllNamespacesResponse
>
constructor, or ListEndpointsForAllNamespacesResponse
directly, to parse the HTTP response.
Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl Endpoints
[src]
pub fn list_namespaced_endpoints(
namespace: &str,
optional: ListNamespacedEndpointsOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedEndpointsResponse>), RequestError>
[src]
namespace: &str,
optional: ListNamespacedEndpointsOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedEndpointsResponse>), RequestError>
list or watch objects of kind Endpoints
This operation only supports listing all items of this type.
Use the returned crate::ResponseBody
<
ListNamespacedEndpointsResponse
>
constructor, or ListNamespacedEndpointsResponse
directly, to parse the HTTP response.
Arguments
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl Endpoints
[src]
pub fn patch_namespaced_endpoints(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchNamespacedEndpointsOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedEndpointsResponse>), RequestError>
[src]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchNamespacedEndpointsOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedEndpointsResponse>), RequestError>
partially update the specified Endpoints
Use the returned crate::ResponseBody
<
PatchNamespacedEndpointsResponse
>
constructor, or PatchNamespacedEndpointsResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the Endpoints
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl Endpoints
[src]
pub fn read_namespaced_endpoints(
name: &str,
namespace: &str,
optional: ReadNamespacedEndpointsOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedEndpointsResponse>), RequestError>
[src]
name: &str,
namespace: &str,
optional: ReadNamespacedEndpointsOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedEndpointsResponse>), RequestError>
read the specified Endpoints
Use the returned crate::ResponseBody
<
ReadNamespacedEndpointsResponse
>
constructor, or ReadNamespacedEndpointsResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the Endpoints
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl Endpoints
[src]
pub fn replace_namespaced_endpoints(
name: &str,
namespace: &str,
body: &Endpoints,
optional: ReplaceNamespacedEndpointsOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedEndpointsResponse>), RequestError>
[src]
name: &str,
namespace: &str,
body: &Endpoints,
optional: ReplaceNamespacedEndpointsOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedEndpointsResponse>), RequestError>
replace the specified Endpoints
Use the returned crate::ResponseBody
<
ReplaceNamespacedEndpointsResponse
>
constructor, or ReplaceNamespacedEndpointsResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the Endpoints
-
namespace
object name and auth scope, such as for teams and projects
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl Endpoints
[src]
pub fn watch_endpoints_for_all_namespaces(
optional: WatchEndpointsForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchEndpointsForAllNamespacesResponse>), RequestError>
[src]
optional: WatchEndpointsForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchEndpointsForAllNamespacesResponse>), RequestError>
list or watch objects of kind Endpoints
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned crate::ResponseBody
<
WatchEndpointsForAllNamespacesResponse
>
constructor, or WatchEndpointsForAllNamespacesResponse
directly, to parse the HTTP response.
Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl Endpoints
[src]
pub fn watch_namespaced_endpoints(
namespace: &str,
optional: WatchNamespacedEndpointsOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedEndpointsResponse>), RequestError>
[src]
namespace: &str,
optional: WatchNamespacedEndpointsOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedEndpointsResponse>), RequestError>
list or watch objects of kind Endpoints
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned crate::ResponseBody
<
WatchNamespacedEndpointsResponse
>
constructor, or WatchNamespacedEndpointsResponse
directly, to parse the HTTP response.
Arguments
-
namespace
object name and auth scope, such as for teams and projects
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Trait Implementations
impl Resource for Endpoints
[src]
fn api_version() -> &'static str
[src]
fn group() -> &'static str
[src]
fn kind() -> &'static str
[src]
fn version() -> &'static str
[src]
impl Metadata for Endpoints
[src]
impl Clone for Endpoints
[src]
fn clone(&self) -> Endpoints
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<Endpoints> for Endpoints
[src]
impl Default for Endpoints
[src]
impl Debug for Endpoints
[src]
impl Serialize for Endpoints
[src]
impl<'de> Deserialize<'de> for Endpoints
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,