/** Instantiate with {@link #builder}. */ private BuildConfiguration( ImageConfiguration baseImageConfiguration, ImageConfiguration targetImageConfiguration, ImmutableHashSet <string> additionalTargetImageTags, ContainerConfiguration containerConfiguration, LayersCache baseImageLayersCache, LayersCache applicationLayersCache, ManifestFormat targetFormat, bool allowInsecureRegistries, bool offline, ImmutableArray <ILayerConfiguration> layerConfigurations, string toolName, string toolVersion, IEventHandlers eventHandlers) { this.baseImageConfiguration = baseImageConfiguration; this.targetImageConfiguration = targetImageConfiguration; this.additionalTargetImageTags = additionalTargetImageTags; this.containerConfiguration = containerConfiguration; this.baseImageLayersCache = baseImageLayersCache; this.applicationLayersCache = applicationLayersCache; this.targetFormat = targetFormat; this.allowInsecureRegistries = allowInsecureRegistries; this.offline = offline; this.layerConfigurations = layerConfigurations; this.toolName = toolName; this.toolVersion = toolVersion; this.eventHandlers = eventHandlers; }
private RegistryClient.Factory NewRegistryClientFactory(ImageConfiguration imageConfiguration) { RegistryClient.Factory factory = RegistryClient.CreateFactory( GetEventHandlers(), imageConfiguration.GetImageRegistry(), imageConfiguration.GetImageRepository()) .SetAllowInsecureRegistries(GetAllowInsecureRegistries()); if (GetToolName() != null) { factory.AddUserAgentValue(new ProductInfoHeaderValue(GetToolName(), GetToolVersion())); } return(factory); }
/** * Sets the target image configuration. * * @param imageConfiguration the {@link ImageConfiguration} describing the target image * @return this */ public Builder SetTargetImageConfiguration(ImageConfiguration imageConfiguration) { targetImageConfiguration = imageConfiguration; return(this); }
/** * Sets the base image configuration. * * @param imageConfiguration the {@link ImageConfiguration} describing the base image * @return this */ public Builder SetBaseImageConfiguration(ImageConfiguration imageConfiguration) { baseImageConfiguration = imageConfiguration; return(this); }