Interface EnvironmentCustomConfigService
- All Known Implementing Classes:
EnvironmentCustomConfigServiceImpl
@ExperimentalApi
public interface EnvironmentCustomConfigService
Provides services and functionality around custom configuration of Environments.
-
Method Summary
Modifier and TypeMethodDescription@NotNull DockerPipelineConfigurationgetDockerPipelineConfiguration(long environmentId) Returns Docker pipeline configuration for a particular environment.getEnvironmentPluginConfig(long environmentId) Returns plugins configuration map of given environment.voidsaveDockerPipelineConfiguration(@NotNull DockerPipelineConfiguration dockerPipelineConfiguration, long environmentId) Set Docker pipeline configuration for a particular environment.voidSaves plugins config for given environment.
-
Method Details
-
getEnvironmentPluginConfig
Returns plugins configuration map of given environment.- Parameters:
environmentId- ID of the environment- Returns:
- configuration map, with one entry per plugin
- Throws:
IllegalArgumentException- if environment with the given ID can't be found
-
saveEnvironmentPluginConfig
void saveEnvironmentPluginConfig(@Nullable @Nullable Map<String, Map<String, String>> config, long environmentId) Saves plugins config for given environment.- Parameters:
config- plugins configuration map, with one entry per pluginenvironmentId- ID of the environment- Throws:
IllegalArgumentException- if environment with the given ID can't be found
-
getDockerPipelineConfiguration
Returns Docker pipeline configuration for a particular environment.- Parameters:
environmentId- ID of the environment- Throws:
IllegalArgumentException- if environment with the given ID can't be found
-
saveDockerPipelineConfiguration
void saveDockerPipelineConfiguration(@NotNull @NotNull DockerPipelineConfiguration dockerPipelineConfiguration, long environmentId) Set Docker pipeline configuration for a particular environment.- Parameters:
dockerPipelineConfiguration- configuration of docker pipelineenvironmentId- ID of the environment- Throws:
IllegalArgumentException- if environment with the given ID can't be found
-