k8s v0.5.0-rc.2 K8s.Client.DynamicHTTPProvider
Allows for registration of K8s.Client.Provider
handlers per-process.
Used internally by the test suite for testing/mocking Kubernetes responses.
Link to this section Summary
Link to this section Functions
Link to this function
child_spec(init_arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
List all registered handlers
Lookup the handler module for this process
Link to this function
register(this_pid, module_or_function)
Register the handler mdoule for this process
Link to this function
request(method, url, body, headers, opts)
Dispatch request/5
to the module registered in the current process.
If the current process is not register, check its parent. This is useful when requests are made from child processes e.g.: (Task.async/1
)
Starts this provider.