public class ArchiveService extends Object
Constructor and Description |
---|
ArchiveService(AssemblyManager assemblyManager,
KitLogger log) |
Modifier and Type | Method and Description |
---|---|
File |
createChangedFilesArchive(List<AssemblyFileEntry> entries,
File assemblyDir,
String imageName,
org.eclipse.jkube.kit.config.image.build.JKubeConfiguration jKubeConfiguration)
Create an tar archive from a set of assembly files.
|
File |
createDockerBuildArchive(org.eclipse.jkube.kit.config.image.ImageConfiguration imageConfig,
org.eclipse.jkube.kit.config.image.build.JKubeConfiguration params)
Create the tar file container the source for building an image.
|
File |
createDockerBuildArchive(org.eclipse.jkube.kit.config.image.ImageConfiguration imageConfig,
org.eclipse.jkube.kit.config.image.build.JKubeConfiguration params,
ArchiverCustomizer customizer)
Create the tar file container the source for building an image.
|
AssemblyFiles |
getAssemblyFiles(org.eclipse.jkube.kit.config.image.ImageConfiguration imageConfig,
org.eclipse.jkube.kit.config.image.build.JKubeConfiguration jKubeConfiguration)
Get a mapping of original to destination files which a covered by an assembly.
|
public ArchiveService(AssemblyManager assemblyManager, KitLogger log)
public File createDockerBuildArchive(org.eclipse.jkube.kit.config.image.ImageConfiguration imageConfig, org.eclipse.jkube.kit.config.image.build.JKubeConfiguration params) throws IOException
imageConfig
- the image configurationparams
- mojo params for the projectIOException
- if during creation of the tar an error occurs.public File createDockerBuildArchive(org.eclipse.jkube.kit.config.image.ImageConfiguration imageConfig, org.eclipse.jkube.kit.config.image.build.JKubeConfiguration params, ArchiverCustomizer customizer) throws IOException
imageConfig
- the image configurationparams
- mojo params for the projectcustomizer
- final customizer to be applied to the tar before being generatedIOException
- if during creation of the tar an error occurs.public AssemblyFiles getAssemblyFiles(org.eclipse.jkube.kit.config.image.ImageConfiguration imageConfig, org.eclipse.jkube.kit.config.image.build.JKubeConfiguration jKubeConfiguration) throws IOException
imageConfig
- image config for which to get files. The build- and assembly configuration in this image
config must not be null.jKubeConfiguration
- needed for tracking the assemblyIOException
- IO Exceptionpublic File createChangedFilesArchive(List<AssemblyFileEntry> entries, File assemblyDir, String imageName, org.eclipse.jkube.kit.config.image.build.JKubeConfiguration jKubeConfiguration) throws IOException
entries
- changed files. List must not be empty or nullassemblyDir
- assembly directoryimageName
- image's namejKubeConfiguration
- maven build contextIOException
- in case of any I/O exceptionCopyright © 2020. All rights reserved.