Package nl.lexemmens.podman.service
Class SkopeoExecutorService
- java.lang.Object
-
- nl.lexemmens.podman.service.SkopeoExecutorService
-
public class SkopeoExecutorService extends Object
Enables executing the skopeo binary with specific arguments.
-
-
Constructor Summary
Constructors Constructor Description SkopeoExecutorService(org.apache.maven.plugin.logging.Log log, SkopeoConfiguration skopeoConfiguration, CommandExecutorDelegate delegate)Constructs a new instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopy(String sourceImage, String destinationImage)Implementation of the skopeo copy command.
-
-
-
Constructor Detail
-
SkopeoExecutorService
public SkopeoExecutorService(org.apache.maven.plugin.logging.Log log, SkopeoConfiguration skopeoConfiguration, CommandExecutorDelegate delegate)Constructs a new instance of this class.- Parameters:
log- Used to access Maven's log systemskopeoConfiguration- Contains skopeo specific configuration, such as getSrcTlsVerifydelegate- A delegate executor that executed the actual command
-
-
Method Detail
-
copy
public void copy(String sourceImage, String destinationImage) throws org.apache.maven.plugin.MojoExecutionException
Implementation of the skopeo copy command.- Parameters:
sourceImage- source image to copydestinationImage- target for the image- Throws:
org.apache.maven.plugin.MojoExecutionException- In case the skopeo copy command exits unsuccessfully.
-
-