Skip to main content

Module client

Module client 

Source
Expand description

API client for interacting with the Kubernetes API

The Client uses standard kube error handling.

This client can be used on its own or in conjuction with the Api type for more structured interaction with the kubernetes API.

The Client can also be used with Discovery to dynamically retrieve the resources served by the kubernetes API.

Modules§

middleware
Middleware types returned from ConfigExt methods.
retry
Retry policy for Kubernetes API requests.

Structs§

APIGroupDiscovery
APIGroupDiscovery holds information about which resources are being served for all version of the API Group. It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version. Versions are in descending order of preference, with the first version being the preferred entry.
APIGroupDiscoveryList
APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery. This is one of the types that can be returned from the /api and /apis endpoint and contains an aggregated list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers) that a cluster supports.
APIResourceDiscovery
APIResourceDiscovery provides information about an API resource for discovery.
APISubresourceDiscovery
APISubresourceDiscovery provides information about an API subresource for discovery.
APIVersionDiscovery
APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.
Body
A request body.
Client
Client for connecting with a Kubernetes cluster.
ClientBuilder
Builder for Client instances with customized tower middleware.
Connection
Represents a WebSocket connection. Value returned by Client::connect.
DiscoveryGroupVersionKind
GroupVersionKind unambiguously identifies a kind. This is a local copy for use in discovery types.

Enums§

AuthError
Client auth errors
OpensslTlsError
Errors from OpenSSL TLS
UpgradeConnectionError
Possible errors from upgrading to a WebSocket connection

Traits§

ConfigExt
Extensions to Config for custom Client.

Type Aliases§

DynBody
HTTP body of a dynamic backing type.