Crate krator[][src]

Expand description

Exposes an API for creating state-machine-based Kubernetes Operators.

Re-exports

pub use state::SharedState;
pub use state::State;
pub use state::Transition;
pub use state::TransitionTo;

Modules

state

Used to define a state machine.

util

Provides some utility functions for Krator.

Structs

ControllerBuilder

Builder pattern for registering a controller or operator.

Manager

Coordinates one or more controllers and the main entrypoint for starting the application.

Manifest

Wrapper for ObjectState::Manifest type which reflects the latest version of the object’s manifest.

OperatorRuntime

Accepts a type implementing the Operator trait and watches for resources of the associated Manifest type, running the associated state machine for each. Optionally filter by kube::api::ListParams.

Store

Defines Store type for caching Kubernetes objects locally.

Traits

ObjectState

Interface for types which capture data related to a specific object that is passed between the object’s state handlers.

ObjectStatus

Interface for types which represent the Kubernetes status of an object.

Operator

Interface for creating an operator.

Watchable

Trait alias for types which can be watched.