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

pub struct Service {
    pub metadata: Option<ObjectMeta>,
    pub spec: Option<ServiceSpec>,
    pub status: Option<ServiceStatus>,
}

Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.

Fields

metadata: Option<ObjectMeta>

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

spec: Option<ServiceSpec>

Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

status: Option<ServiceStatus>

Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status

Methods

impl Service[src]

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

connect DELETE requests to proxy of Service

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

Arguments

  • name

    name of the ServiceProxyOptions

  • namespace

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

  • optional

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

impl Service[src]

pub fn connect_delete_namespaced_service_proxy_with_path(
    name: &str,
    namespace: &str,
    path: &str,
    optional: ConnectDeleteNamespacedServiceProxyWithPathOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ConnectDeleteNamespacedServiceProxyWithPathResponse>), RequestError>
[src]

connect DELETE requests to proxy of Service

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

Arguments

  • name

    name of the ServiceProxyOptions

  • namespace

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

  • path

    path to the resource

  • optional

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

impl Service[src]

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

connect GET requests to proxy of Service

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

Arguments

  • name

    name of the ServiceProxyOptions

  • namespace

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

  • optional

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

impl Service[src]

pub fn connect_get_namespaced_service_proxy_with_path(
    name: &str,
    namespace: &str,
    path: &str,
    optional: ConnectGetNamespacedServiceProxyWithPathOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ConnectGetNamespacedServiceProxyWithPathResponse>), RequestError>
[src]

connect GET requests to proxy of Service

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

Arguments

  • name

    name of the ServiceProxyOptions

  • namespace

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

  • path

    path to the resource

  • optional

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

impl Service[src]

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

connect PATCH requests to proxy of Service

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

Arguments

  • name

    name of the ServiceProxyOptions

  • namespace

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

  • optional

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

impl Service[src]

pub fn connect_patch_namespaced_service_proxy_with_path(
    name: &str,
    namespace: &str,
    path: &str,
    optional: ConnectPatchNamespacedServiceProxyWithPathOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ConnectPatchNamespacedServiceProxyWithPathResponse>), RequestError>
[src]

connect PATCH requests to proxy of Service

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

Arguments

  • name

    name of the ServiceProxyOptions

  • namespace

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

  • path

    path to the resource

  • optional

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

impl Service[src]

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

connect POST requests to proxy of Service

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

Arguments

  • name

    name of the ServiceProxyOptions

  • namespace

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

  • optional

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

impl Service[src]

pub fn connect_post_namespaced_service_proxy_with_path(
    name: &str,
    namespace: &str,
    path: &str,
    optional: ConnectPostNamespacedServiceProxyWithPathOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ConnectPostNamespacedServiceProxyWithPathResponse>), RequestError>
[src]

connect POST requests to proxy of Service

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

Arguments

  • name

    name of the ServiceProxyOptions

  • namespace

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

  • path

    path to the resource

  • optional

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

impl Service[src]

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

connect PUT requests to proxy of Service

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

Arguments

  • name

    name of the ServiceProxyOptions

  • namespace

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

  • optional

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

impl Service[src]

pub fn connect_put_namespaced_service_proxy_with_path(
    name: &str,
    namespace: &str,
    path: &str,
    optional: ConnectPutNamespacedServiceProxyWithPathOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ConnectPutNamespacedServiceProxyWithPathResponse>), RequestError>
[src]

connect PUT requests to proxy of Service

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

Arguments

  • name

    name of the ServiceProxyOptions

  • namespace

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

  • path

    path to the resource

  • optional

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

impl Service[src]

pub fn create_namespaced_service(
    namespace: &str,
    body: &Service,
    optional: CreateNamespacedServiceOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedServiceResponse>), RequestError>
[src]

create a Service

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

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

delete a Service

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

Arguments

  • name

    name of the Service

  • namespace

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

  • optional

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

impl Service[src]

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

list or watch objects of kind Service

This operation only supports listing all items of this type.

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

pub fn list_service_for_all_namespaces(
    optional: ListServiceForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListServiceForAllNamespacesResponse>), RequestError>
[src]

list or watch objects of kind Service

This operation only supports listing all items of this type.

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

Arguments

  • optional

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

impl Service[src]

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

partially update the specified Service

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

Arguments

  • name

    name of the Service

  • namespace

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

  • body

  • optional

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

impl Service[src]

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

partially update status of the specified Service

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

Arguments

  • name

    name of the Service

  • namespace

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

  • body

  • optional

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

impl Service[src]

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

read the specified Service

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

Arguments

  • name

    name of the Service

  • namespace

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

  • optional

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

impl Service[src]

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

read status of the specified Service

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

Arguments

  • name

    name of the Service

  • namespace

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

  • optional

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

impl Service[src]

pub fn replace_namespaced_service(
    name: &str,
    namespace: &str,
    body: &Service,
    optional: ReplaceNamespacedServiceOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedServiceResponse>), RequestError>
[src]

replace the specified Service

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

Arguments

  • name

    name of the Service

  • namespace

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

  • body

  • optional

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

impl Service[src]

pub fn replace_namespaced_service_status(
    name: &str,
    namespace: &str,
    body: &Service,
    optional: ReplaceNamespacedServiceStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedServiceStatusResponse>), RequestError>
[src]

replace status of the specified Service

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

Arguments

  • name

    name of the Service

  • namespace

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

  • body

  • optional

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

impl Service[src]

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

list or watch objects of kind Service

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

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

pub fn watch_service_for_all_namespaces(
    optional: WatchServiceForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchServiceForAllNamespacesResponse>), RequestError>
[src]

list or watch objects of kind Service

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

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

Arguments

  • optional

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

Trait Implementations

impl Resource for Service[src]

impl Metadata for Service[src]

type Ty = ObjectMeta

The type of the metadata object.

impl PartialEq<Service> for Service[src]

impl Default for Service[src]

impl Clone for Service[src]

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

Performs copy-assignment from source. Read more

impl Debug for Service[src]

impl Serialize for Service[src]

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

Auto Trait Implementations

impl Send for Service

impl Sync for Service

Blanket Implementations

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> From for T[src]

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> 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> Any for T where
    T: 'static + ?Sized
[src]

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