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 Exception
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 imagesException
- exceptionpublic void pullImageWithPolicy(String image, ImagePullManager pullManager, RegistryService.RegistryConfig registryConfig, boolean hasImage) throws Exception
autoPull
is set to true, fetch it. Otherwise if the image
is not existent, throw an errorimage
- imagepullManager
- image pull managerregistryConfig
- registry configurationhasImage
- boolean variable indicating it has image or notException
- exceptionCopyright © 2020. All rights reserved.