Expand description
Mock Kubernetes client in Rust
Structs§
- Kubernetes
Mocker - 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§
- Mock
Error - Represents errors generated during
mocker.expect()
. - Mock
Return - An enum to represent the possible return values from the API.
- Mock
RunError - Represents possible errors during
mocker.run()
. - Mock
Watch - 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 duringmocker.run()
.