Class PodmanConfiguration
- java.lang.Object
-
- nl.lexemmens.podman.config.podman.PodmanConfiguration
-
public class PodmanConfiguration extends Object
Holds all configuration that should be applied when executing the Podman command, such as whether TLS Verification should be used and which directory Podman should use as its base/root directory.
-
-
Field Summary
Fields Modifier and Type Field Description protected FilerootPodman's root directory.protected FilerunDirectoryThe directory from which podman should be run.protected FilerunRootPodman's root directory for state information.protected TlsVerifytlsVerifyWhether Podman should verify TLS/SSL certificates.
-
Constructor Summary
Constructors Constructor Description PodmanConfiguration()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetRoot()Returns the root directory that Podman should useFilegetRunDirectory()Returns the directory from which Podman should be executed.FilegetRunRoot()Returns the runroot directory that Podman should use for saving state informationTlsVerifygetTlsVerify()Returns the value of the tlsVerify settingvoidinitAndValidate(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.logging.Log log)Validates and initializes this configuration
-
-
-
Field Detail
-
tlsVerify
@Parameter(property="podman.tls.verify", defaultValue="NOT_SPECIFIED", required=true) protected TlsVerify tlsVerifyWhether Podman should verify TLS/SSL certificates. Defaults to true.
-
root
@Parameter(property="podman.root") protected File root
Podman's root directory.Storage root dir in which data, including images, is stored (default: “/var/lib/containers/storage” for UID 0, “$HOME/.local/share/containers/storage” for other users). Default root dir configured in /etc/containers/storage.conf.
-
runRoot
@Parameter(property="podman.run.root") protected File runRoot
Podman's root directory for state information.Storage state directory where all state information is stored (default: “/var/run/containers/storage” for UID 0, “/var/run/user/$UID/run” for other users). Default state dir configured in /etc/containers/storage.conf.
-
runDirectory
@Parameter(property="podman.run.dir") protected File runDirectory
The directory from which podman should be run.Defaults to the directory the Containerfile is located
-
-
Method Detail
-
getTlsVerify
public TlsVerify getTlsVerify()
Returns the value of the tlsVerify setting- Returns:
- The value of the TLS Verify setting
-
getRoot
public File getRoot()
Returns the root directory that Podman should use- Returns:
- Podman's root directory
-
getRunRoot
public File getRunRoot()
Returns the runroot directory that Podman should use for saving state information- Returns:
- Podman's runroot directory
-
getRunDirectory
public File getRunDirectory()
Returns the directory from which Podman should be executed.- Returns:
- The directory where Podman should be executed from.
-
initAndValidate
public void initAndValidate(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.logging.Log log)Validates and initializes this configuration- Parameters:
project- The current Maven Project.log- Access to Maven's log system for informational purposes.
-
-