Interface DockerHandler
-
- All Known Implementing Classes:
DefaultDockerHandlerImpl,TestDockerHandler
@ExperimentalApi public interface DockerHandlerImplementations provide UI options for the Job/Environment Docker tab. Experimental API, work in progress.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidappendConfiguration(BuildConfiguration buildConfiguration, Map<String,Object> webFragmentsContextMap, boolean enabled)voiddisable(BuildDefinition buildDefinition, Job job)Called for Docker isolation options that were not selected in Job related UIs.voiddisable(Environment environment)Called for Docker isolation options that were not selected in Environment related UIs.voidenableAndUpdate(BuildDefinition buildDefinition, Job job, Map<String,Object> webFragmentsContextMap)Called for the selected Docker isolation option in Job related UIs.voidenableAndUpdate(Environment environment, Map<String,Object> webFragmentsContextMap)Called for the selected Docker isolation option in Environment related UIs.StringgetEditHtml()Renders the edit page.StringgetIsolationType()Identifier of Docker isolation type.StringgetViewHtml()Renders the view page.booleanisEnabled()Returns enablement state of the implementation.ErrorCollectionvalidateConfig(Map<String,Object> webFragmentsContextMap)Construct configuration from webFragmentContextMap and validate that the config is valid.
-
-
-
Method Detail
-
getEditHtml
String getEditHtml()
Renders the edit page.
-
getViewHtml
String getViewHtml()
Renders the view page.
-
isEnabled
boolean isEnabled()
Returns enablement state of the implementation. Typically either 0 or 1 of the implementations are enabled.- Returns:
- true if enabled.
-
getIsolationType
String getIsolationType()
Identifier of Docker isolation type.- Returns:
-
validateConfig
ErrorCollection validateConfig(Map<String,Object> webFragmentsContextMap)
Construct configuration from webFragmentContextMap and validate that the config is valid.- Parameters:
webFragmentsContextMap-- Returns:
-
enableAndUpdate
void enableAndUpdate(BuildDefinition buildDefinition, Job job, Map<String,Object> webFragmentsContextMap)
Called for the selected Docker isolation option in Job related UIs. The implementation is to construct the object from webFragmentsContextMap and store it in provided buildDefinition that is later stored by the infrastructure.- Parameters:
buildDefinition-job-webFragmentsContextMap-
-
enableAndUpdate
void enableAndUpdate(Environment environment, Map<String,Object> webFragmentsContextMap)
Called for the selected Docker isolation option in Environment related UIs. The implementation is to construct the object from webFragmentsContextMap and save the new values.- Parameters:
environment-webFragmentsContextMap-
-
disable
void disable(BuildDefinition buildDefinition, Job job)
Called for Docker isolation options that were not selected in Job related UIs. The implementation is to disable itself, perform cleanup of configuration in provided buildDefition object.- Parameters:
buildDefinition-job-
-
disable
void disable(Environment environment)
Called for Docker isolation options that were not selected in Environment related UIs.- Parameters:
environment-
-
appendConfiguration
void appendConfiguration(BuildConfiguration buildConfiguration, Map<String,Object> webFragmentsContextMap, boolean enabled)
-
-