[−][src]Struct k8s_openapi::api::core::v1::Service
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]
name: &str,
namespace: &str,
optional: ConnectDeleteNamespacedServiceProxyOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ConnectDeleteNamespacedServiceProxyResponse>), RequestError>
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]
name: &str,
namespace: &str,
path: &str,
optional: ConnectDeleteNamespacedServiceProxyWithPathOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ConnectDeleteNamespacedServiceProxyWithPathResponse>), RequestError>
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]
name: &str,
namespace: &str,
optional: ConnectGetNamespacedServiceProxyOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ConnectGetNamespacedServiceProxyResponse>), RequestError>
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]
name: &str,
namespace: &str,
path: &str,
optional: ConnectGetNamespacedServiceProxyWithPathOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ConnectGetNamespacedServiceProxyWithPathResponse>), RequestError>
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]
name: &str,
namespace: &str,
optional: ConnectPatchNamespacedServiceProxyOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ConnectPatchNamespacedServiceProxyResponse>), RequestError>
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]
name: &str,
namespace: &str,
path: &str,
optional: ConnectPatchNamespacedServiceProxyWithPathOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ConnectPatchNamespacedServiceProxyWithPathResponse>), RequestError>
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]
name: &str,
namespace: &str,
optional: ConnectPostNamespacedServiceProxyOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ConnectPostNamespacedServiceProxyResponse>), RequestError>
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]
name: &str,
namespace: &str,
path: &str,
optional: ConnectPostNamespacedServiceProxyWithPathOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ConnectPostNamespacedServiceProxyWithPathResponse>), RequestError>
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]
name: &str,
namespace: &str,
optional: ConnectPutNamespacedServiceProxyOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ConnectPutNamespacedServiceProxyResponse>), RequestError>
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]
name: &str,
namespace: &str,
path: &str,
optional: ConnectPutNamespacedServiceProxyWithPathOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ConnectPutNamespacedServiceProxyWithPathResponse>), RequestError>
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]
namespace: &str,
body: &Service,
optional: CreateNamespacedServiceOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedServiceResponse>), RequestError>
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]
name: &str,
namespace: &str,
optional: DeleteNamespacedServiceOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedServiceResponse>), RequestError>
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]
namespace: &str,
optional: ListNamespacedServiceOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedServiceResponse>), RequestError>
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]
optional: ListServiceForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListServiceForAllNamespacesResponse>), RequestError>
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]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchNamespacedServiceOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedServiceResponse>), RequestError>
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]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchNamespacedServiceStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedServiceStatusResponse>), RequestError>
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]
name: &str,
namespace: &str,
optional: ReadNamespacedServiceOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedServiceResponse>), RequestError>
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]
name: &str,
namespace: &str,
optional: ReadNamespacedServiceStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedServiceStatusResponse>), RequestError>
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]
name: &str,
namespace: &str,
body: &Service,
optional: ReplaceNamespacedServiceOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedServiceResponse>), RequestError>
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]
name: &str,
namespace: &str,
body: &Service,
optional: ReplaceNamespacedServiceStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedServiceStatusResponse>), RequestError>
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]
namespace: &str,
optional: WatchNamespacedServiceOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedServiceResponse>), RequestError>
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]
optional: WatchServiceForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchServiceForAllNamespacesResponse>), RequestError>
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]
fn api_version() -> &'static str
[src]
fn group() -> &'static str
[src]
fn kind() -> &'static str
[src]
fn version() -> &'static str
[src]
impl Metadata for Service
[src]
impl Clone for Service
[src]
fn clone(&self) -> Service
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<Service> for Service
[src]
impl Default for Service
[src]
impl Debug for Service
[src]
impl Serialize for Service
[src]
impl<'de> Deserialize<'de> for Service
[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>,