Class JsonDataImageMapper
java.lang.Object
io.continual.flowcontrol.impl.controller.k8s.impl.JsonDataImageMapper
- All Implemented Interfaces:
ContainerImageMapper
- Direct Known Subclasses:
InlineImageMapper,ModelBackedImageMapper
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionJsonDataImageMapper(io.continual.services.ServiceContainer sc, org.json.JSONObject config) -
Method Summary
Modifier and TypeMethodDescriptiongetImageName(io.continual.flowcontrol.model.FlowControlJob.FlowControlRuntimeSpec rs) Return a container image spec (e.g.protected abstract List<JsonDataImageMapper.Rule> getMap()protected List<JsonDataImageMapper.Rule> readMapData(org.json.JSONObject data)
-
Constructor Details
-
JsonDataImageMapper
public JsonDataImageMapper(io.continual.services.ServiceContainer sc, org.json.JSONObject config) throws io.continual.builder.Builder.BuildFailure - Throws:
io.continual.builder.Builder.BuildFailure
-
-
Method Details
-
getImageName
public String getImageName(io.continual.flowcontrol.model.FlowControlJob.FlowControlRuntimeSpec rs) throws io.continual.flowcontrol.model.FlowControlDeploymentService.RequestException, io.continual.flowcontrol.model.FlowControlDeploymentService.ServiceException Description copied from interface:ContainerImageMapperReturn a container image spec (e.g. "package:version") given a runtime spec.- Specified by:
getImageNamein interfaceContainerImageMapper- Parameters:
rs-- Returns:
- a string suitable as a container name
- Throws:
io.continual.flowcontrol.model.FlowControlDeploymentService.RequestExceptionio.continual.flowcontrol.model.FlowControlDeploymentService.ServiceException
-
getMap
protected abstract List<JsonDataImageMapper.Rule> getMap() throws io.continual.flowcontrol.model.FlowControlDeploymentService.ServiceException- Throws:
io.continual.flowcontrol.model.FlowControlDeploymentService.ServiceException
-
readMapData
protected List<JsonDataImageMapper.Rule> readMapData(org.json.JSONObject data) throws io.continual.flowcontrol.model.FlowControlDeploymentService.ServiceException - Throws:
io.continual.flowcontrol.model.FlowControlDeploymentService.ServiceException
-