Crate kubernetes_mock
source ·Expand description
Mock Kubernetes client in Rust
Structs
- 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
- Represents errors generated during
mocker.expect()
. - An enum to represent the possible return values from the API.
- Represents possible errors during
mocker.run()
. - Used to represent a stream of
api.watch()
events as a list.
Functions
- Returns (kube client, mock struct). Use the kubernetes client as normal, both during calls to
mocker.expect()
and then duringmocker.run()
.