public class KubernetesCrudDispatcher
extends io.fabric8.mockwebserver.crud.CrudDispatcher
| Modifier and Type | Field and Description |
|---|---|
static int |
HTTP_UNPROCESSABLE_ENTITY |
| Constructor and Description |
|---|
KubernetesCrudDispatcher() |
KubernetesCrudDispatcher(KubernetesAttributesExtractor attributeExtractor,
KubernetesResponseComposer responseComposer) |
KubernetesCrudDispatcher(List<CustomResourceDefinitionContext> crdContexts) |
| Modifier and Type | Method and Description |
|---|---|
okhttp3.mockwebserver.MockResponse |
handleCreate(String path,
String s)
Adds the specified object to the in-memory db.
|
okhttp3.mockwebserver.MockResponse |
handleDelete(String path)
Performs a delete for the corresponding object from the in-memory db.
|
okhttp3.mockwebserver.MockResponse |
handleGet(String path)
Performs a get for the corresponding object from the in-memory db.
|
okhttp3.mockwebserver.MockResponse |
handlePatch(okhttp3.mockwebserver.RecordedRequest request)
Patches the specified object to the in-memory db.
|
okhttp3.mockwebserver.MockResponse |
handleUpdate(String path,
String s)
Replace the object on `path` endpoint with the object represented by `s`
|
okhttp3.mockwebserver.MockResponse |
handleWatch(String path)
Watch the resource list on `path` endpoint
|
public static final int HTTP_UNPROCESSABLE_ENTITY
public KubernetesCrudDispatcher()
public KubernetesCrudDispatcher(List<CustomResourceDefinitionContext> crdContexts)
public KubernetesCrudDispatcher(KubernetesAttributesExtractor attributeExtractor, KubernetesResponseComposer responseComposer)
public okhttp3.mockwebserver.MockResponse handleCreate(String path, String s)
handleCreate in class io.fabric8.mockwebserver.crud.CrudDispatcherpath - Strings - StringMockResponsepublic okhttp3.mockwebserver.MockResponse handleUpdate(String path, String s)
handleUpdate in class io.fabric8.mockwebserver.crud.CrudDispatcherpath - Strings - StringMockResponsepublic okhttp3.mockwebserver.MockResponse handleGet(String path)
handleGet in class io.fabric8.mockwebserver.crud.CrudDispatcherpath - The path.MockResponsepublic okhttp3.mockwebserver.MockResponse handlePatch(okhttp3.mockwebserver.RecordedRequest request)
handlePatch in class io.fabric8.mockwebserver.crud.CrudDispatcherMockResponsepublic okhttp3.mockwebserver.MockResponse handleDelete(String path)
handleDelete in class io.fabric8.mockwebserver.crud.CrudDispatcherpath - StringMockResponsepublic okhttp3.mockwebserver.MockResponse handleWatch(String path)
path - StringMockResponseCopyright © 2015–2020 Red Hat. All rights reserved.