Crate kubernetes_mock

Source
Expand description

Mock Kubernetes client in Rust

Structs§

KubernetesMocker
The main mocker struct. Holds all the information about expected API calls, and provides functionality to set up expected requests and responses before testing with .run().

Enums§

MockError
Represents errors generated during mocker.expect().
MockReturn
An enum to represent the possible return values from the API.
MockRunError
Represents possible errors during mocker.run().
MockWatch
Used to represent a stream of api.watch() events as a list.

Functions§

make_mocker
Returns (kube client, mock struct). Use the kubernetes client as normal, both during calls to mocker.expect() and then during mocker.run().