Struct Pod

Source
pub struct Pod {
    pub metadata: ObjectMeta,
    pub spec: Option<PodSpec>,
    pub status: Option<PodStatus>,
}
Expand description

Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.

Fields§

§metadata: ObjectMeta

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

§spec: Option<PodSpec>

Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status

§status: Option<PodStatus>

Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status

Implementations§

Source§

impl Pod

Source

pub fn connect_delete_namespaced_pod_proxy( name: &str, namespace: &str, optional: ConnectDeleteNamespacedPodProxyOptional<'_>, ) -> Result<Request<Vec<u8>>, RequestError>

connect DELETE requests to proxy of Pod

§Arguments
  • name

    name of the PodProxyOptions

  • namespace

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

  • optional

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

Source§

impl Pod

Source

pub fn connect_delete_namespaced_pod_proxy_with_path( name: &str, namespace: &str, path: &str, optional: ConnectDeleteNamespacedPodProxyWithPathOptional<'_>, ) -> Result<Request<Vec<u8>>, RequestError>

connect DELETE requests to proxy of Pod

§Arguments
  • name

    name of the PodProxyOptions

  • 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.

Source§

impl Pod

Source

pub fn connect_get_namespaced_pod_attach( name: &str, namespace: &str, optional: ConnectGetNamespacedPodAttachOptional<'_>, ) -> Result<Request<Vec<u8>>, RequestError>

connect GET requests to attach of Pod

§Arguments
  • name

    name of the PodAttachOptions

  • namespace

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

  • optional

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

Source§

impl Pod

Source

pub fn connect_get_namespaced_pod_exec( name: &str, namespace: &str, optional: ConnectGetNamespacedPodExecOptional<'_>, ) -> Result<Request<Vec<u8>>, RequestError>

connect GET requests to exec of Pod

§Arguments
  • name

    name of the PodExecOptions

  • namespace

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

  • optional

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

Source§

impl Pod

Source

pub fn connect_get_namespaced_pod_portforward( name: &str, namespace: &str, optional: ConnectGetNamespacedPodPortforwardOptional, ) -> Result<Request<Vec<u8>>, RequestError>

connect GET requests to portforward of Pod

§Arguments
  • name

    name of the PodPortForwardOptions

  • namespace

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

  • optional

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

Source§

impl Pod

Source

pub fn connect_get_namespaced_pod_proxy( name: &str, namespace: &str, optional: ConnectGetNamespacedPodProxyOptional<'_>, ) -> Result<Request<Vec<u8>>, RequestError>

connect GET requests to proxy of Pod

§Arguments
  • name

    name of the PodProxyOptions

  • namespace

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

  • optional

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

Source§

impl Pod

Source

pub fn connect_get_namespaced_pod_proxy_with_path( name: &str, namespace: &str, path: &str, optional: ConnectGetNamespacedPodProxyWithPathOptional<'_>, ) -> Result<Request<Vec<u8>>, RequestError>

connect GET requests to proxy of Pod

§Arguments
  • name

    name of the PodProxyOptions

  • 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.

Source§

impl Pod

Source

pub fn connect_patch_namespaced_pod_proxy( name: &str, namespace: &str, optional: ConnectPatchNamespacedPodProxyOptional<'_>, ) -> Result<Request<Vec<u8>>, RequestError>

connect PATCH requests to proxy of Pod

§Arguments
  • name

    name of the PodProxyOptions

  • namespace

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

  • optional

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

Source§

impl Pod

Source

pub fn connect_patch_namespaced_pod_proxy_with_path( name: &str, namespace: &str, path: &str, optional: ConnectPatchNamespacedPodProxyWithPathOptional<'_>, ) -> Result<Request<Vec<u8>>, RequestError>

connect PATCH requests to proxy of Pod

§Arguments
  • name

    name of the PodProxyOptions

  • 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.

Source§

impl Pod

Source

pub fn connect_post_namespaced_pod_attach( name: &str, namespace: &str, optional: ConnectPostNamespacedPodAttachOptional<'_>, ) -> Result<Request<Vec<u8>>, RequestError>

connect POST requests to attach of Pod

§Arguments
  • name

    name of the PodAttachOptions

  • namespace

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

  • optional

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

Source§

impl Pod

Source

pub fn connect_post_namespaced_pod_exec( name: &str, namespace: &str, optional: ConnectPostNamespacedPodExecOptional<'_>, ) -> Result<Request<Vec<u8>>, RequestError>

connect POST requests to exec of Pod

§Arguments
  • name

    name of the PodExecOptions

  • namespace

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

  • optional

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

Source§

impl Pod

Source

pub fn connect_post_namespaced_pod_portforward( name: &str, namespace: &str, optional: ConnectPostNamespacedPodPortforwardOptional, ) -> Result<Request<Vec<u8>>, RequestError>

connect POST requests to portforward of Pod

§Arguments
  • name

    name of the PodPortForwardOptions

  • namespace

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

  • optional

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

Source§

impl Pod

Source

pub fn connect_post_namespaced_pod_proxy( name: &str, namespace: &str, optional: ConnectPostNamespacedPodProxyOptional<'_>, ) -> Result<Request<Vec<u8>>, RequestError>

connect POST requests to proxy of Pod

§Arguments
  • name

    name of the PodProxyOptions

  • namespace

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

  • optional

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

Source§

impl Pod

Source

pub fn connect_post_namespaced_pod_proxy_with_path( name: &str, namespace: &str, path: &str, optional: ConnectPostNamespacedPodProxyWithPathOptional<'_>, ) -> Result<Request<Vec<u8>>, RequestError>

connect POST requests to proxy of Pod

§Arguments
  • name

    name of the PodProxyOptions

  • 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.

Source§

impl Pod

Source

pub fn connect_put_namespaced_pod_proxy( name: &str, namespace: &str, optional: ConnectPutNamespacedPodProxyOptional<'_>, ) -> Result<Request<Vec<u8>>, RequestError>

connect PUT requests to proxy of Pod

§Arguments
  • name

    name of the PodProxyOptions

  • namespace

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

  • optional

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

Source§

impl Pod

Source

pub fn connect_put_namespaced_pod_proxy_with_path( name: &str, namespace: &str, path: &str, optional: ConnectPutNamespacedPodProxyWithPathOptional<'_>, ) -> Result<Request<Vec<u8>>, RequestError>

connect PUT requests to proxy of Pod

§Arguments
  • name

    name of the PodProxyOptions

  • 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.

Source§

impl Pod

Source

pub fn create_namespaced_pod( namespace: &str, body: &Pod, optional: CreateOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Pod>>), RequestError>

create a Pod

Use the returned crate::ResponseBody<crate::CreateResponse<Self>> constructor, or crate::CreateResponse<Self> 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.

Source§

impl Pod

Source

pub fn delete_collection_namespaced_pod( namespace: &str, delete_optional: DeleteOptional<'_>, list_optional: ListOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<DeleteResponse<List<Pod>>>), RequestError>

delete collection of Pod

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

§Arguments
  • namespace

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

  • delete_optional

    Delete options. Use Default::default() to not pass any.

  • list_optional

    List options. Use Default::default() to not pass any.

Source§

impl Pod

Source

pub fn delete_namespaced_pod( name: &str, namespace: &str, optional: DeleteOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<DeleteResponse<Pod>>), RequestError>

delete a Pod

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

§Arguments
  • name

    name of the Pod

  • namespace

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

  • optional

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

Source§

impl Pod

Source

pub fn list_namespaced_pod( namespace: &str, optional: ListOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ListResponse<Pod>>), RequestError>

list or watch objects of kind Pod

This operation only supports listing all items of this type.

Use the returned crate::ResponseBody<crate::ListResponse<Self>> constructor, or crate::ListResponse<Self> 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.

Source§

impl Pod

Source

pub fn list_pod_for_all_namespaces( optional: ListOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ListResponse<Pod>>), RequestError>

list or watch objects of kind Pod

This operation only supports listing all items of this type.

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

§Arguments
  • optional

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

Source§

impl Pod

Source

pub fn patch_namespaced_pod( name: &str, namespace: &str, body: &Patch, optional: PatchOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<PatchResponse<Pod>>), RequestError>

partially update the specified Pod

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

§Arguments
  • name

    name of the Pod

  • namespace

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

  • body

  • optional

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

Source§

impl Pod

Source

pub fn patch_namespaced_pod_status( name: &str, namespace: &str, body: &Patch, optional: PatchOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<PatchResponse<Pod>>), RequestError>

partially update status of the specified Pod

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

§Arguments
  • name

    name of the Pod

  • namespace

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

  • body

  • optional

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

Source§

impl Pod

Source

pub fn read_namespaced_pod( name: &str, namespace: &str, optional: ReadNamespacedPodOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ReadNamespacedPodResponse>), RequestError>

read the specified Pod

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

§Arguments
  • name

    name of the Pod

  • namespace

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

  • optional

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

Source§

impl Pod

Source

pub fn read_namespaced_pod_log( name: &str, namespace: &str, optional: ReadNamespacedPodLogOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ReadNamespacedPodLogResponse>), RequestError>

read log of the specified Pod

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

§Arguments
  • name

    name of the Pod

  • namespace

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

  • optional

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

Source§

impl Pod

Source

pub fn read_namespaced_pod_status( name: &str, namespace: &str, optional: ReadNamespacedPodStatusOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ReadNamespacedPodStatusResponse>), RequestError>

read status of the specified Pod

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

§Arguments
  • name

    name of the Pod

  • namespace

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

  • optional

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

Source§

impl Pod

Source

pub fn replace_namespaced_pod( name: &str, namespace: &str, body: &Pod, optional: ReplaceOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ReplaceResponse<Pod>>), RequestError>

replace the specified Pod

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

§Arguments
  • name

    name of the Pod

  • namespace

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

  • body

  • optional

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

Source§

impl Pod

Source

pub fn replace_namespaced_pod_status( name: &str, namespace: &str, body: &Pod, optional: ReplaceOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<ReplaceResponse<Pod>>), RequestError>

replace status of the specified Pod

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

§Arguments
  • name

    name of the Pod

  • namespace

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

  • body

  • optional

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

Source§

impl Pod

Source

pub fn watch_namespaced_pod( namespace: &str, optional: WatchOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<WatchResponse<Pod>>), RequestError>

list or watch objects of kind Pod

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

Use the returned crate::ResponseBody<crate::WatchResponse<Self>> constructor, or crate::WatchResponse<Self> 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.

Source§

impl Pod

Source

pub fn watch_pod_for_all_namespaces( optional: WatchOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<WatchResponse<Pod>>), RequestError>

list or watch objects of kind Pod

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

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

§Arguments
  • optional

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

Trait Implementations§

Source§

impl Clone for Pod

Source§

fn clone(&self) -> Pod

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Pod

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for Pod

Source§

fn default() -> Pod

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Pod

Source§

fn deserialize<D>( deserializer: D, ) -> Result<Pod, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl ListableResource for Pod

Source§

const LIST_KIND: &'static str = "PodList"

The kind of the list type of the resource. Read more
Source§

impl Metadata for Pod

Source§

type Ty = ObjectMeta

The type of the metadata object.
Source§

fn metadata(&self) -> &<Pod as Metadata>::Ty

Gets a reference to the metadata of this resource value.
Source§

fn metadata_mut(&mut self) -> &mut <Pod as Metadata>::Ty

Gets a mutable reference to the metadata of this resource value.
Source§

impl PartialEq for Pod

Source§

fn eq(&self, other: &Pod) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Resource for Pod

Source§

const API_VERSION: &'static str = "v1"

The API version of the resource. This is a composite of Resource::GROUP and Resource::VERSION (eg "apiextensions.k8s.io/v1beta1") or just the version for resources without a group (eg "v1"). Read more
Source§

const GROUP: &'static str = ""

The group of the resource, or the empty string if the resource doesn’t have a group.
Source§

const KIND: &'static str = "Pod"

The kind of the resource. Read more
Source§

const VERSION: &'static str = "v1"

The version of the resource.
Source§

const URL_PATH_SEGMENT: &'static str = "pods"

The URL path segment used to construct URLs related to this resource. Read more
Source§

type Scope = NamespaceResourceScope

Indicates whether the resource is namespace-scoped or cluster-scoped or a subresource. Read more
Source§

impl Serialize for Pod

Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Pod

Auto Trait Implementations§

§

impl Freeze for Pod

§

impl RefUnwindSafe for Pod

§

impl Send for Pod

§

impl Sync for Pod

§

impl Unpin for Pod

§

impl UnwindSafe for Pod

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,