Interface KubernetesCrudPersistence
-
- All Superinterfaces:
Resetable
- All Known Implementing Classes:
KubernetesCrudDispatcher
public interface KubernetesCrudPersistence extends Resetable
-
-
Field Summary
Fields Modifier and Type Field Description static StringCREATION_TIMESTAMPstatic StringGENERATIONstatic StringMETADATAstatic StringRESOURCE_VERSIONstatic StringUID
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default JsonNodeasNode(String resourceBody)default JsonNodeasNode(Map.Entry<io.fabric8.mockwebserver.crud.AttributeSet,String> resource)Map.Entry<io.fabric8.mockwebserver.crud.AttributeSet,String>findResource(io.fabric8.mockwebserver.crud.AttributeSet attributes)io.fabric8.mockwebserver.crud.AttributeSetgetKey(String path)booleanisStatusSubresourceEnabledForResource(String path)default JsonNodemerge(JsonNode baseResource, String updatedResource)default voidpreserveMetadata(JsonNode currentResource, JsonNode updatedResource)voidprocessEvent(String path, io.fabric8.mockwebserver.crud.AttributeSet pathAttributes, io.fabric8.mockwebserver.crud.AttributeSet oldAttributes, GenericKubernetesResource resource, String newState)longrequestResourceVersion()static booleanshouldIncreaseGeneration(JsonNode differences)static booleanshouldIncreaseGeneration(JsonNode existing, JsonNode source)default voidtouchGeneration(JsonNode currentResource, JsonNode updatedResource)default voidtouchResourceVersion(JsonNode currentResource, JsonNode updatedResource)
-
-
-
Field Detail
-
METADATA
static final String METADATA
- See Also:
- Constant Field Values
-
UID
static final String UID
- See Also:
- Constant Field Values
-
CREATION_TIMESTAMP
static final String CREATION_TIMESTAMP
- See Also:
- Constant Field Values
-
RESOURCE_VERSION
static final String RESOURCE_VERSION
- See Also:
- Constant Field Values
-
GENERATION
static final String GENERATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
requestResourceVersion
long requestResourceVersion()
-
getKey
io.fabric8.mockwebserver.crud.AttributeSet getKey(String path)
-
findResource
Map.Entry<io.fabric8.mockwebserver.crud.AttributeSet,String> findResource(io.fabric8.mockwebserver.crud.AttributeSet attributes)
-
isStatusSubresourceEnabledForResource
boolean isStatusSubresourceEnabledForResource(String path)
-
processEvent
void processEvent(String path, io.fabric8.mockwebserver.crud.AttributeSet pathAttributes, io.fabric8.mockwebserver.crud.AttributeSet oldAttributes, GenericKubernetesResource resource, String newState)
-
asNode
default JsonNode asNode(Map.Entry<io.fabric8.mockwebserver.crud.AttributeSet,String> resource) throws KubernetesCrudDispatcherException
-
asNode
default JsonNode asNode(String resourceBody) throws KubernetesCrudDispatcherException
-
merge
default JsonNode merge(JsonNode baseResource, String updatedResource) throws KubernetesCrudDispatcherException
-
touchResourceVersion
default void touchResourceVersion(JsonNode currentResource, JsonNode updatedResource)
-
shouldIncreaseGeneration
static boolean shouldIncreaseGeneration(JsonNode existing, JsonNode source)
-
shouldIncreaseGeneration
static boolean shouldIncreaseGeneration(JsonNode differences)
-
-