[−][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
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl Endpoints[src]
pub fn delete_collection_namespaced_endpoints(
namespace: &str,
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedEndpointsResponse>), RequestError>[src]
namespace: &str,
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> 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
-
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.
impl Endpoints[src]
pub fn delete_namespaced_endpoints(
name: &str,
namespace: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedEndpointsResponse>), RequestError>[src]
name: &str,
namespace: &str,
optional: DeleteOptional
) -> 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
-
namename of the Endpoints
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl Endpoints[src]
pub fn list_endpoints_for_all_namespaces(
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListEndpointsForAllNamespacesResponse>), RequestError>[src]
optional: ListOptional
) -> 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
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl Endpoints[src]
pub fn list_namespaced_endpoints(
namespace: &str,
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedEndpointsResponse>), RequestError>[src]
namespace: &str,
optional: ListOptional
) -> 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
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl Endpoints[src]
pub fn patch_namespaced_endpoints(
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedEndpointsResponse>), RequestError>[src]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchOptional
) -> 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
-
namename of the Endpoints
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional 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
-
namename of the Endpoints
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional 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
-
namename of the Endpoints
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl Endpoints[src]
pub fn watch_endpoints_for_all_namespaces(
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchEndpointsForAllNamespacesResponse>), RequestError>[src]
optional: WatchOptional
) -> 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
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl Endpoints[src]
pub fn watch_namespaced_endpoints(
namespace: &str,
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedEndpointsResponse>), RequestError>[src]
namespace: &str,
optional: WatchOptional
) -> 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
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional 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 Default 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 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
impl Sync for Endpoints
impl Unpin for Endpoints
impl Send for Endpoints
impl UnwindSafe for Endpoints
impl RefUnwindSafe for Endpoints
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> 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> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,