Class SkopeoExecutorService


  • public class SkopeoExecutorService
    extends Object
    Enables executing the skopeo binary with specific arguments.
    • 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 system
        skopeoConfiguration - Contains skopeo specific configuration, such as getSrcTlsVerify
        delegate - 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 copy
        destinationImage - target for the image
        Throws:
        org.apache.maven.plugin.MojoExecutionException - In case the skopeo copy command exits unsuccessfully.