public class RegistryService extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RegistryService.RegistryConfig |
Modifier and Type | Method and Description |
---|---|
void |
pullImageWithPolicy(String image,
ImagePullManager pullManager,
RegistryService.RegistryConfig registryConfig,
boolean hasImage)
Check an image, and, if
autoPull is set to true, fetch it. |
void |
pushImages(Collection<ImageConfiguration> imageConfigs,
int retries,
RegistryService.RegistryConfig registryConfig,
boolean skipTag)
Push a set of images to a registry
|
public void pushImages(Collection<ImageConfiguration> imageConfigs, int retries, RegistryService.RegistryConfig registryConfig, boolean skipTag) throws DockerAccessException, org.apache.maven.plugin.MojoExecutionException
imageConfigs
- images to push (but only if they have a build configuration)retries
- how often to retryregistryConfig
- a global registry configurationskipTag
- flag to skip pushing tagged imagesDockerAccessException
org.apache.maven.plugin.MojoExecutionException
public void pullImageWithPolicy(String image, ImagePullManager pullManager, RegistryService.RegistryConfig registryConfig, boolean hasImage) throws DockerAccessException, org.apache.maven.plugin.MojoExecutionException
autoPull
is set to true, fetch it. Otherwise if the image
is not existent, throw an errorregistryConfig
- registry configurationDockerAccessException
org.apache.maven.plugin.MojoExecutionException
Copyright © 2021. All rights reserved.