[][src]Struct k8s_openapi::api::core::v1::Endpoints

pub struct Endpoints {
    pub metadata: Option<ObjectMeta>,
    pub subsets: Option<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

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

impl Metadata for Endpoints[src]

type Ty = ObjectMeta

The type of the metadata object.

impl Clone for 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]

Auto Trait Implementations

impl Send for Endpoints

impl Sync for Endpoints

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]