public class BuildConfiguration extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BuildConfiguration.Builder
Builds an immutable
BuildConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
static BuildConfiguration.Builder |
builder()
Creates a new
BuildConfiguration.Builder to build a BuildConfiguration. |
boolean |
getAllowInsecureRegistries()
Gets whether or not to allow insecure registries (ignoring certificate validation failure or
communicating over HTTP if all else fail).
|
com.google.common.collect.ImmutableSet<String> |
getAllTargetImageTags() |
Cache |
getApplicationLayersCache()
Gets the
Cache for application layers. |
ImageConfiguration |
getBaseImageConfiguration() |
Cache |
getBaseImageLayersCache()
Gets the
Cache for base image layers. |
ContainerConfiguration |
getContainerConfiguration() |
EventHandlers |
getEventHandlers() |
ExecutorService |
getExecutorService() |
com.google.common.collect.ImmutableList<LayerConfiguration> |
getLayerConfigurations()
Gets the configurations for building the layers.
|
Class<? extends BuildableManifestTemplate> |
getTargetFormat() |
ImageConfiguration |
getTargetImageConfiguration() |
String |
getToolName() |
boolean |
isOffline()
Gets whether or not to run the build in offline mode.
|
RegistryClient.Factory |
newBaseImageRegistryClientFactory()
Creates a new
RegistryClient.Factory for the base image with fields from the build
configuration. |
RegistryClient.Factory |
newTargetImageRegistryClientFactory()
Creates a new
RegistryClient.Factory for the target image with fields from the build
configuration. |
public static BuildConfiguration.Builder builder()
BuildConfiguration.Builder to build a BuildConfiguration.BuildConfiguration.Builderpublic ImageConfiguration getBaseImageConfiguration()
public ImageConfiguration getTargetImageConfiguration()
public com.google.common.collect.ImmutableSet<String> getAllTargetImageTags()
@Nullable public ContainerConfiguration getContainerConfiguration()
public Class<? extends BuildableManifestTemplate> getTargetFormat()
public String getToolName()
public EventHandlers getEventHandlers()
public ExecutorService getExecutorService()
public Cache getBaseImageLayersCache()
Cache for base image layers.Cache for base image layerspublic Cache getApplicationLayersCache()
Cache for application layers.Cache for application layerspublic boolean getAllowInsecureRegistries()
true if insecure connections will be allowed; false otherwisepublic boolean isOffline()
true if the build will run in offline mode; false otherwisepublic com.google.common.collect.ImmutableList<LayerConfiguration> getLayerConfigurations()
public RegistryClient.Factory newBaseImageRegistryClientFactory()
RegistryClient.Factory for the base image with fields from the build
configuration.RegistryClient.Factorypublic RegistryClient.Factory newTargetImageRegistryClientFactory()
RegistryClient.Factory for the target image with fields from the build
configuration.RegistryClient.FactoryCopyright © 2019. All rights reserved.