public interface KubernetesCrudPersistence extends Resetable
| Modifier and Type | Field and Description |
|---|---|
static String |
CREATION_TIMESTAMP |
static String |
GENERATION |
static String |
METADATA |
static String |
RESOURCE_VERSION |
static String |
UID |
| Modifier and Type | Method and Description |
|---|---|
default com.fasterxml.jackson.databind.JsonNode |
asNode(Map.Entry<io.fabric8.mockwebserver.crud.AttributeSet,String> resource) |
default com.fasterxml.jackson.databind.JsonNode |
asNode(String resourceBody) |
Map.Entry<io.fabric8.mockwebserver.crud.AttributeSet,String> |
findResource(io.fabric8.mockwebserver.crud.AttributeSet attributes) |
io.fabric8.mockwebserver.crud.AttributeSet |
getKey(String path) |
boolean |
isStatusSubresourceEnabledForResource(String path) |
default com.fasterxml.jackson.databind.JsonNode |
merge(com.fasterxml.jackson.databind.JsonNode baseResource,
String updatedResource) |
default void |
preserveMetadata(com.fasterxml.jackson.databind.JsonNode currentResource,
com.fasterxml.jackson.databind.JsonNode updatedResource) |
void |
processEvent(String path,
io.fabric8.mockwebserver.crud.AttributeSet pathAttributes,
io.fabric8.mockwebserver.crud.AttributeSet oldAttributes,
String newState) |
long |
requestResourceVersion() |
static boolean |
shouldIncreaseGeneration(com.fasterxml.jackson.databind.JsonNode differences) |
static boolean |
shouldIncreaseGeneration(com.fasterxml.jackson.databind.JsonNode existing,
com.fasterxml.jackson.databind.JsonNode source) |
default void |
touchGeneration(com.fasterxml.jackson.databind.JsonNode currentResource,
com.fasterxml.jackson.databind.JsonNode updatedResource) |
default void |
touchResourceVersion(com.fasterxml.jackson.databind.JsonNode currentResource,
com.fasterxml.jackson.databind.JsonNode updatedResource) |
static final String METADATA
static final String UID
static final String CREATION_TIMESTAMP
static final String RESOURCE_VERSION
static final String GENERATION
long requestResourceVersion()
io.fabric8.mockwebserver.crud.AttributeSet getKey(String path)
Map.Entry<io.fabric8.mockwebserver.crud.AttributeSet,String> findResource(io.fabric8.mockwebserver.crud.AttributeSet attributes)
boolean isStatusSubresourceEnabledForResource(String path)
void processEvent(String path, io.fabric8.mockwebserver.crud.AttributeSet pathAttributes, io.fabric8.mockwebserver.crud.AttributeSet oldAttributes, String newState)
default com.fasterxml.jackson.databind.JsonNode asNode(Map.Entry<io.fabric8.mockwebserver.crud.AttributeSet,String> resource) throws KubernetesCrudDispatcherException
default com.fasterxml.jackson.databind.JsonNode asNode(String resourceBody) throws KubernetesCrudDispatcherException
default com.fasterxml.jackson.databind.JsonNode merge(com.fasterxml.jackson.databind.JsonNode baseResource,
String updatedResource)
throws KubernetesCrudDispatcherException
default void preserveMetadata(com.fasterxml.jackson.databind.JsonNode currentResource,
com.fasterxml.jackson.databind.JsonNode updatedResource)
default void touchResourceVersion(com.fasterxml.jackson.databind.JsonNode currentResource,
com.fasterxml.jackson.databind.JsonNode updatedResource)
default void touchGeneration(com.fasterxml.jackson.databind.JsonNode currentResource,
com.fasterxml.jackson.databind.JsonNode updatedResource)
static boolean shouldIncreaseGeneration(com.fasterxml.jackson.databind.JsonNode existing,
com.fasterxml.jackson.databind.JsonNode source)
static boolean shouldIncreaseGeneration(com.fasterxml.jackson.databind.JsonNode differences)
Copyright © 2015–2023 Red Hat. All rights reserved.