[][src]Struct k8s_openapi::api::extensions::v1beta1::Ingress

pub struct Ingress {
    pub metadata: Option<ObjectMeta>,
    pub spec: Option<IngressSpec>,
    pub status: Option<IngressStatus>,
}

Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.

Fields

metadata: Option<ObjectMeta>

Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

spec: Option<IngressSpec>

Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

status: Option<IngressStatus>

Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Methods

impl Ingress[src]

pub fn create_namespaced_ingress(
    namespace: &str,
    body: &Ingress,
    optional: CreateNamespacedIngressOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedIngressResponse>), RequestError>
[src]

create an Ingress

Use the returned crate::ResponseBody<CreateNamespacedIngressResponse> constructor, or CreateNamespacedIngressResponse 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 Ingress[src]

pub fn delete_collection_namespaced_ingress(
    namespace: &str,
    optional: DeleteCollectionNamespacedIngressOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedIngressResponse>), RequestError>
[src]

delete collection of Ingress

Use the returned crate::ResponseBody<DeleteCollectionNamespacedIngressResponse> constructor, or DeleteCollectionNamespacedIngressResponse 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 Ingress[src]

pub fn delete_namespaced_ingress(
    name: &str,
    namespace: &str,
    optional: DeleteNamespacedIngressOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedIngressResponse>), RequestError>
[src]

delete an Ingress

Use the returned crate::ResponseBody<DeleteNamespacedIngressResponse> constructor, or DeleteNamespacedIngressResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the Ingress

  • namespace

    object name and auth scope, such as for teams and projects

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Ingress[src]

pub fn list_ingress_for_all_namespaces(
    optional: ListIngressForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListIngressForAllNamespacesResponse>), RequestError>
[src]

list or watch objects of kind Ingress

This operation only supports listing all items of this type.

Use the returned crate::ResponseBody<ListIngressForAllNamespacesResponse> constructor, or ListIngressForAllNamespacesResponse directly, to parse the HTTP response.

Arguments

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Ingress[src]

pub fn list_namespaced_ingress(
    namespace: &str,
    optional: ListNamespacedIngressOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedIngressResponse>), RequestError>
[src]

list or watch objects of kind Ingress

This operation only supports listing all items of this type.

Use the returned crate::ResponseBody<ListNamespacedIngressResponse> constructor, or ListNamespacedIngressResponse 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 Ingress[src]

pub fn patch_namespaced_ingress(
    name: &str,
    namespace: &str,
    body: &Patch,
    optional: PatchNamespacedIngressOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedIngressResponse>), RequestError>
[src]

partially update the specified Ingress

Use the returned crate::ResponseBody<PatchNamespacedIngressResponse> constructor, or PatchNamespacedIngressResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the Ingress

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Ingress[src]

pub fn patch_namespaced_ingress_status(
    name: &str,
    namespace: &str,
    body: &Patch,
    optional: PatchNamespacedIngressStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedIngressStatusResponse>), RequestError>
[src]

partially update status of the specified Ingress

Use the returned crate::ResponseBody<PatchNamespacedIngressStatusResponse> constructor, or PatchNamespacedIngressStatusResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the Ingress

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Ingress[src]

pub fn read_namespaced_ingress(
    name: &str,
    namespace: &str,
    optional: ReadNamespacedIngressOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedIngressResponse>), RequestError>
[src]

read the specified Ingress

Use the returned crate::ResponseBody<ReadNamespacedIngressResponse> constructor, or ReadNamespacedIngressResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the Ingress

  • namespace

    object name and auth scope, such as for teams and projects

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Ingress[src]

pub fn read_namespaced_ingress_status(
    name: &str,
    namespace: &str,
    optional: ReadNamespacedIngressStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedIngressStatusResponse>), RequestError>
[src]

read status of the specified Ingress

Use the returned crate::ResponseBody<ReadNamespacedIngressStatusResponse> constructor, or ReadNamespacedIngressStatusResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the Ingress

  • namespace

    object name and auth scope, such as for teams and projects

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Ingress[src]

pub fn replace_namespaced_ingress(
    name: &str,
    namespace: &str,
    body: &Ingress,
    optional: ReplaceNamespacedIngressOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedIngressResponse>), RequestError>
[src]

replace the specified Ingress

Use the returned crate::ResponseBody<ReplaceNamespacedIngressResponse> constructor, or ReplaceNamespacedIngressResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the Ingress

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Ingress[src]

pub fn replace_namespaced_ingress_status(
    name: &str,
    namespace: &str,
    body: &Ingress,
    optional: ReplaceNamespacedIngressStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedIngressStatusResponse>), RequestError>
[src]

replace status of the specified Ingress

Use the returned crate::ResponseBody<ReplaceNamespacedIngressStatusResponse> constructor, or ReplaceNamespacedIngressStatusResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the Ingress

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Ingress[src]

pub fn watch_ingress_for_all_namespaces(
    optional: WatchIngressForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchIngressForAllNamespacesResponse>), RequestError>
[src]

list or watch objects of kind Ingress

This operation only supports watching one item, or a list of items, of this type for changes.

Use the returned crate::ResponseBody<WatchIngressForAllNamespacesResponse> constructor, or WatchIngressForAllNamespacesResponse directly, to parse the HTTP response.

Arguments

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl Ingress[src]

pub fn watch_namespaced_ingress(
    namespace: &str,
    optional: WatchNamespacedIngressOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedIngressResponse>), RequestError>
[src]

list or watch objects of kind Ingress

This operation only supports watching one item, or a list of items, of this type for changes.

Use the returned crate::ResponseBody<WatchNamespacedIngressResponse> constructor, or WatchNamespacedIngressResponse 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 Ingress[src]

impl Metadata for Ingress[src]

type Ty = ObjectMeta

The type of the metadata object.

impl Clone for Ingress[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<Ingress> for Ingress[src]

impl Default for Ingress[src]

impl Debug for Ingress[src]

impl Serialize for Ingress[src]

impl<'de> Deserialize<'de> for Ingress[src]

Auto Trait Implementations

impl Send for Ingress

impl Sync for Ingress

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]