public class KubernetesCrudDispatcher
extends io.fabric8.mockwebserver.crud.CrudDispatcher
| Constructor and Description |
|---|
KubernetesCrudDispatcher() |
KubernetesCrudDispatcher(KubernetesCrudAttributesExtractor attributeExtractor,
io.fabric8.mockwebserver.crud.ResponseComposer responseComposer) |
KubernetesCrudDispatcher(List<CustomResourceDefinitionContext> crdContexts) |
| Modifier and Type | Method and Description |
|---|---|
okhttp3.mockwebserver.MockResponse |
dispatch(okhttp3.mockwebserver.RecordedRequest request) |
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(String path,
String s)
Patches the specified object to the in-memory db.
|
okhttp3.mockwebserver.MockResponse |
handleReplace(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 KubernetesCrudDispatcher()
public KubernetesCrudDispatcher(List<CustomResourceDefinitionContext> crdContexts)
public KubernetesCrudDispatcher(KubernetesCrudAttributesExtractor attributeExtractor, io.fabric8.mockwebserver.crud.ResponseComposer responseComposer)
public okhttp3.mockwebserver.MockResponse dispatch(okhttp3.mockwebserver.RecordedRequest request)
dispatch in class io.fabric8.mockwebserver.crud.CrudDispatcherpublic okhttp3.mockwebserver.MockResponse handleCreate(String path, String s)
handleCreate in class io.fabric8.mockwebserver.crud.CrudDispatcherpath - Strings - StringMockResponsepublic okhttp3.mockwebserver.MockResponse handleReplace(String path, String s)
path - Strings - StringMockResponsepublic okhttp3.mockwebserver.MockResponse handleGet(String path)
handleGet in class io.fabric8.mockwebserver.crud.CrudDispatcherpath - The path.MockResponsepublic okhttp3.mockwebserver.MockResponse handlePatch(String path, String s)
handlePatch in class io.fabric8.mockwebserver.crud.CrudDispatcherpath - path of resources - objectMockResponsepublic 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.