Crate kube_core[][src]

Expand description

Crate with types and traits necessary for interacting with the Kubernetes API

This crate is available as a minimal alternative to kube where a client is not available. The same information here is always re-exported from kube under kube::core.

Re-exports

pub use dynamic::DynamicObject;
pub use crd::CustomResourceExt;
pub use gvk::GroupVersion;
pub use gvk::GroupVersionKind;
pub use gvk::GroupVersionResource;
pub use request::Request;
pub use watch::WatchEvent;

Modules

crd

Traits and tyes for CustomResources

discovery

Type information structs for API discovery

dynamic

Contains types for using resource kinds not known at compile-time.

gvk

Type information structs for dynamic resources.

metadata

Metadata structs used in traits, lists, and dynamic objects.

object

Generic object and objectlist wrappers.

params

A port of request parameter *Optionals from apimachinery/types.go

request

Request builder type for arbitrary api types

response

Generic api response types

subresource

Request builder types and parameters for subresources

watch

Types for the watch api

Structs

ErrorResponse

An error response from the API.

Enums

Error

Core error types.

Traits

Resource

An accessor trait for a kubernetes Resource.

ResourceExt

Helper methods for resources.

Type Definitions

Result

Convient alias for Result<T, Error>