Class InspectContainerConfig
java.lang.Object
io.github.alersrt.pod4j.openapi.model.InspectContainerConfig
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class InspectContainerConfig
extends Object
implements Serializable
InspectContainerConfig holds further data about how a container was initially configured.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddChrootDirsItem(String chrootDirsItem) addCmdItem(String cmdItem) addCreateCommandItem(String createCommandItem) addEntrypointItem(String entrypointItem) addEnvItem(String envItem) addSecretsItem(InspectSecret secretsItem) annotations(Map<String, String> annotations) attachStderr(Boolean attachStderr) attachStdin(Boolean attachStdin) attachStdout(Boolean attachStdout) chrootDirs(List<String> chrootDirs) createCommand(List<String> createCommand) domainname(String domainname) entrypoint(List<String> entrypoint) booleanexposedPorts(Map<String, Object> exposedPorts) static InspectContainerConfigCreate an instance of InspectContainerConfig given an JSON stringContainer annotationsUnused, at presentUnused, at presentUnused, at presentChrootDirs is an additional set of directories that need to be treated as root directories.getCmd()Container commandCreateCommand is the full command plus arguments of the process the container has been created with.Container domain name - unused at presentContainer entrypointgetEnv()Container environment variablesExposedPorts includes ports the container has exposed.@Valid Schema2HealthConfigGet healthcheckHealthMaxLogCount is maximum number of attempts in the HealthCheck log file.HealthMaxLogSize is the maximum length in characters of stored HealthCheck log (\"0\" value means an infinite log length)HealthcheckOnFailureAction defines an action to take once the container turns unhealthy.HealthLogDestination defines the destination where the log is storedContainer hostnamegetImage()Container imageContainer labelsOn-build arguments - presently unused.Whether the container leaves STDIN openPasswd determines whether or not podman can add entries to /etc/passwd and /etc/groupSdNotifyMode is the sd-notify mode of the container.SdNotifySocket is the NOTIFY_SOCKET in use by/configured for the container.@Valid List<InspectSecret>Secrets are the secrets mounted in the container@Valid StartupHealthCheckGet startupHealthCheckWhether STDIN is only left open once.Container stop signalStopTimeout is time before container is stopped when calling stopSystemdMode is whether the container is running in systemd mode.Timeout is time before container is killed by conmonTimezone is the timezone inside the container.getTty()Whether the container creates a TTYgetUmask()Umask is the umask inside the container.getUser()User the container was launched withUnused, at present.Container working directoryinthashCode()healthcheck(Schema2HealthConfig healthcheck) healthcheckMaxLogCount(Integer healthcheckMaxLogCount) healthcheckMaxLogSize(Integer healthcheckMaxLogSize) healthcheckOnFailureAction(String healthcheckOnFailureAction) healthLogDestination(String healthLogDestination) putAnnotationsItem(String key, String annotationsItem) putExposedPortsItem(String key, Object exposedPortsItem) putLabelsItem(String key, String labelsItem) putVolumesItem(String key, Object volumesItem) sdNotifyMode(String sdNotifyMode) sdNotifySocket(String sdNotifySocket) secrets(List<InspectSecret> secrets) voidsetAnnotations(Map<String, String> annotations) voidsetAttachStderr(Boolean attachStderr) voidsetAttachStdin(Boolean attachStdin) voidsetAttachStdout(Boolean attachStdout) voidsetChrootDirs(List<String> chrootDirs) voidvoidsetCreateCommand(List<String> createCommand) voidsetDomainname(String domainname) voidsetEntrypoint(List<String> entrypoint) voidvoidsetExposedPorts(Map<String, Object> exposedPorts) voidsetHealthcheck(Schema2HealthConfig healthcheck) voidsetHealthcheckMaxLogCount(Integer healthcheckMaxLogCount) voidsetHealthcheckMaxLogSize(Integer healthcheckMaxLogSize) voidsetHealthcheckOnFailureAction(String healthcheckOnFailureAction) voidsetHealthLogDestination(String healthLogDestination) voidsetHostname(String hostname) voidvoidvoidsetOnBuild(String onBuild) voidsetOpenStdin(Boolean openStdin) voidvoidsetSdNotifyMode(String sdNotifyMode) voidsetSdNotifySocket(String sdNotifySocket) voidsetSecrets(List<InspectSecret> secrets) voidsetStartupHealthCheck(StartupHealthCheck startupHealthCheck) voidsetStdinOnce(Boolean stdinOnce) voidsetStopSignal(String stopSignal) voidsetStopTimeout(Integer stopTimeout) voidsetSystemdMode(Boolean systemdMode) voidsetTimeout(Integer timeout) voidsetTimezone(String timezone) voidvoidvoidvoidsetVolumes(Map<String, Object> volumes) voidsetWorkingDir(String workingDir) startupHealthCheck(StartupHealthCheck startupHealthCheck) stopSignal(String stopSignal) stopTimeout(Integer stopTimeout) systemdMode(Boolean systemdMode) toJson()Convert an instance of InspectContainerConfig to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues foundworkingDir(String workingDir)
-
Field Details
-
SERIALIZED_NAME_ANNOTATIONS
- See Also:
-
SERIALIZED_NAME_ATTACH_STDERR
- See Also:
-
SERIALIZED_NAME_ATTACH_STDIN
- See Also:
-
SERIALIZED_NAME_ATTACH_STDOUT
- See Also:
-
SERIALIZED_NAME_CHROOT_DIRS
- See Also:
-
SERIALIZED_NAME_CMD
- See Also:
-
SERIALIZED_NAME_CREATE_COMMAND
- See Also:
-
SERIALIZED_NAME_DOMAINNAME
- See Also:
-
SERIALIZED_NAME_ENTRYPOINT
- See Also:
-
SERIALIZED_NAME_ENV
- See Also:
-
SERIALIZED_NAME_EXPOSED_PORTS
- See Also:
-
SERIALIZED_NAME_HEALTH_LOG_DESTINATION
- See Also:
-
SERIALIZED_NAME_HEALTHCHECK
- See Also:
-
SERIALIZED_NAME_HEALTHCHECK_MAX_LOG_COUNT
- See Also:
-
SERIALIZED_NAME_HEALTHCHECK_MAX_LOG_SIZE
- See Also:
-
SERIALIZED_NAME_HEALTHCHECK_ON_FAILURE_ACTION
- See Also:
-
SERIALIZED_NAME_HOSTNAME
- See Also:
-
SERIALIZED_NAME_IMAGE
- See Also:
-
SERIALIZED_NAME_LABELS
- See Also:
-
SERIALIZED_NAME_ON_BUILD
- See Also:
-
SERIALIZED_NAME_OPEN_STDIN
- See Also:
-
SERIALIZED_NAME_PASSWD
- See Also:
-
SERIALIZED_NAME_SECRETS
- See Also:
-
SERIALIZED_NAME_STARTUP_HEALTH_CHECK
- See Also:
-
SERIALIZED_NAME_STDIN_ONCE
- See Also:
-
SERIALIZED_NAME_STOP_SIGNAL
- See Also:
-
SERIALIZED_NAME_STOP_TIMEOUT
- See Also:
-
SERIALIZED_NAME_SYSTEMD_MODE
- See Also:
-
SERIALIZED_NAME_TIMEOUT
- See Also:
-
SERIALIZED_NAME_TIMEZONE
- See Also:
-
SERIALIZED_NAME_TTY
- See Also:
-
SERIALIZED_NAME_UMASK
- See Also:
-
SERIALIZED_NAME_USER
- See Also:
-
SERIALIZED_NAME_VOLUMES
- See Also:
-
SERIALIZED_NAME_WORKING_DIR
- See Also:
-
SERIALIZED_NAME_SD_NOTIFY_MODE
- See Also:
-
SERIALIZED_NAME_SD_NOTIFY_SOCKET
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
InspectContainerConfig
public InspectContainerConfig()
-
-
Method Details
-
annotations
-
putAnnotationsItem
-
getAnnotations
Container annotations- Returns:
- annotations
-
setAnnotations
-
attachStderr
-
getAttachStderr
Unused, at present- Returns:
- attachStderr
-
setAttachStderr
-
attachStdin
-
getAttachStdin
Unused, at present- Returns:
- attachStdin
-
setAttachStdin
-
attachStdout
-
getAttachStdout
Unused, at present- Returns:
- attachStdout
-
setAttachStdout
-
chrootDirs
-
addChrootDirsItem
-
getChrootDirs
ChrootDirs is an additional set of directories that need to be treated as root directories. Standard bind mounts will be mounted into paths relative to these directories.- Returns:
- chrootDirs
-
setChrootDirs
-
cmd
-
addCmdItem
-
getCmd
Container command- Returns:
- cmd
-
setCmd
-
createCommand
-
addCreateCommandItem
-
getCreateCommand
CreateCommand is the full command plus arguments of the process the container has been created with.- Returns:
- createCommand
-
setCreateCommand
-
domainname
-
getDomainname
Container domain name - unused at present- Returns:
- domainname
-
setDomainname
-
entrypoint
-
addEntrypointItem
-
getEntrypoint
Container entrypoint- Returns:
- entrypoint
-
setEntrypoint
-
env
-
addEnvItem
-
getEnv
Container environment variables- Returns:
- env
-
setEnv
-
exposedPorts
-
putExposedPortsItem
-
getExposedPorts
ExposedPorts includes ports the container has exposed.- Returns:
- exposedPorts
-
setExposedPorts
-
healthLogDestination
-
getHealthLogDestination
HealthLogDestination defines the destination where the log is stored- Returns:
- healthLogDestination
-
setHealthLogDestination
-
healthcheck
-
getHealthcheck
Get healthcheck- Returns:
- healthcheck
-
setHealthcheck
-
healthcheckMaxLogCount
-
getHealthcheckMaxLogCount
HealthMaxLogCount is maximum number of attempts in the HealthCheck log file. ('0' value means an infinite number of attempts in the log file)- Returns:
- healthcheckMaxLogCount
-
setHealthcheckMaxLogCount
-
healthcheckMaxLogSize
-
getHealthcheckMaxLogSize
HealthMaxLogSize is the maximum length in characters of stored HealthCheck log (\"0\" value means an infinite log length)- Returns:
- healthcheckMaxLogSize
-
setHealthcheckMaxLogSize
-
healthcheckOnFailureAction
-
getHealthcheckOnFailureAction
HealthcheckOnFailureAction defines an action to take once the container turns unhealthy.- Returns:
- healthcheckOnFailureAction
-
setHealthcheckOnFailureAction
-
hostname
-
getHostname
Container hostname- Returns:
- hostname
-
setHostname
-
image
-
getImage
Container image- Returns:
- image
-
setImage
-
labels
-
putLabelsItem
-
getLabels
Container labels- Returns:
- labels
-
setLabels
-
onBuild
-
getOnBuild
On-build arguments - presently unused. More of Buildah's domain.- Returns:
- onBuild
-
setOnBuild
-
openStdin
-
getOpenStdin
Whether the container leaves STDIN open- Returns:
- openStdin
-
setOpenStdin
-
passwd
-
getPasswd
Passwd determines whether or not podman can add entries to /etc/passwd and /etc/group- Returns:
- passwd
-
setPasswd
-
secrets
-
addSecretsItem
-
getSecrets
Secrets are the secrets mounted in the container- Returns:
- secrets
-
setSecrets
-
startupHealthCheck
-
getStartupHealthCheck
Get startupHealthCheck- Returns:
- startupHealthCheck
-
setStartupHealthCheck
-
stdinOnce
-
getStdinOnce
Whether STDIN is only left open once. Presently not supported by Podman, unused.- Returns:
- stdinOnce
-
setStdinOnce
-
stopSignal
-
getStopSignal
Container stop signal- Returns:
- stopSignal
-
setStopSignal
-
stopTimeout
-
getStopTimeout
StopTimeout is time before container is stopped when calling stop- Returns:
- stopTimeout
-
setStopTimeout
-
systemdMode
-
getSystemdMode
SystemdMode is whether the container is running in systemd mode. In systemd mode, the container configuration is customized to optimize running systemd in the container.- Returns:
- systemdMode
-
setSystemdMode
-
timeout
-
getTimeout
Timeout is time before container is killed by conmon- Returns:
- timeout
-
setTimeout
-
timezone
-
getTimezone
Timezone is the timezone inside the container. Local means it has the same timezone as the host machine- Returns:
- timezone
-
setTimezone
-
tty
-
getTty
Whether the container creates a TTY- Returns:
- tty
-
setTty
-
umask
-
getUmask
Umask is the umask inside the container.- Returns:
- umask
-
setUmask
-
user
-
getUser
User the container was launched with- Returns:
- user
-
setUser
-
volumes
-
putVolumesItem
-
getVolumes
Unused, at present. I've never seen this field populated.- Returns:
- volumes
-
setVolumes
-
workingDir
-
getWorkingDir
Container working directory- Returns:
- workingDir
-
setWorkingDir
-
sdNotifyMode
-
getSdNotifyMode
SdNotifyMode is the sd-notify mode of the container.- Returns:
- sdNotifyMode
-
setSdNotifyMode
-
sdNotifySocket
-
getSdNotifySocket
SdNotifySocket is the NOTIFY_SOCKET in use by/configured for the container.- Returns:
- sdNotifySocket
-
setSdNotifySocket
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to InspectContainerConfig
-
fromJson
Create an instance of InspectContainerConfig given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of InspectContainerConfig
- Throws:
IOException- if the JSON string is invalid with respect to InspectContainerConfig
-
toJson
Convert an instance of InspectContainerConfig to an JSON string- Returns:
- JSON string
-