pub struct Request {
    pub url_path: String,
}
Expand description

A Kubernetes request builder

Takes a base_path and supplies constructors for common operations The extra operations all return http::Request objects.

Fields

url_path: String

The path component of a url

Implementations

New request with a resource’s url path

Convenience methods found from API conventions

List a collection of a resource

Watch a resource at a given version

Get a single instance

Create an instance of a resource

Delete an instance of a resource

Delete a collection of a resource

Patch an instance of a resource

Requires a serialized merge-patch+json at the moment.

Replace an instance of a resource

Requires metadata.resourceVersion set in data

Subresources

Get an instance of the subresource

Patch an instance of the subresource

Replace an instance of the subresource

Get a pod logs

Create an eviction

This is supported on crate feature ws only.

Attach to a pod

This is supported on crate feature ws only.

Execute command in a pod

This is supported on crate feature ws only.

Request to forward ports of a pod

Restart a resource

Cordon a resource

Uncordon a resource

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.