Expand description
Crate with types and traits necessary for interacting with the Kubernetes API
This crate provides the minimal apimachinery necessary to make requests to the kubernetes API.
It does not export export a client, but it also has almost no dependencies.
Everything in this crate is re-exported from kube
(even with zero features) under kube::core
.
Re-exports§
pub use duration::Duration;
pub use dynamic::ApiResource;
pub use dynamic::DynamicObject;
pub use crd::CustomResourceExt;
pub use gvk::GroupVersion;
pub use gvk::GroupVersionKind;
pub use gvk::GroupVersionResource;
pub use metadata::PartialObjectMeta;
pub use metadata::PartialObjectMetaExt;
pub use metadata::TypeMeta;
pub use object::NotUsed;
pub use object::Object;
pub use object::ObjectList;
pub use request::Request;
pub use response::Status;
pub use watch::WatchEvent;
Modules§
- Contains types useful for implementing custom resource conversion webhooks.
- Traits and tyes for CustomResources
- Type information structs for API discovery
- Kubernetes
Duration
s. - Contains types for using resource kinds not known at compile-time.
- Type information structs for dynamic resources.
- Metadata structs used in traits, lists, and dynamic objects.
- Generic object and objectlist wrappers.
- A port of request parameter *Optionals from apimachinery/types.go
- Request builder type for arbitrary api types
- Generic api response types
- Utilities for managing
CustomResourceDefinition
schemas - Request builder types and parameters for subresources
- Utils and helpers
- Types for the watch api
Structs§
- Indicates that a
Resource
is cluster-scoped. - Indicates that a
Resource
is of an indeterminate dynamic scope. - An error response from the API.
- ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.
- Indicates that a
Resource
is namespace-scoped. - ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
- Indicates that a
Resource
is neither cluster-scoped nor namespace-scoped.
Enums§
- Version parser for Kubernetes version patterns
Traits§
- An accessor trait for a kubernetes Resource.
- Helper methods for resources.
- The scope of a
Resource
.
Functions§
- Helper function that creates the
apiVersion
field from the group and version strings.