Class ImageConfig
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ImageConfig
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ImageConfig
extends Object
implements Serializable
ImageConfig
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCmdItem(String cmdItem) addEntrypointItem(String entrypointItem) addEnvItem(String envItem) argsEscaped(Boolean argsEscaped) entrypoint(List<String> entrypoint) booleanexposedPorts(Map<String, Object> exposedPorts) static ImageConfigCreate an instance of ImageConfig given an JSON stringArgsEscaped Deprecated: This field is present only for legacy compatibility with Docker and should not be used by new image builders.getCmd()Cmd defines the default arguments to the entrypoint of the container.Entrypoint defines a list of arguments to use as the command to execute when the container starts.getEnv()Env is a list of environment variables to be used in a container.ExposedPorts a set of ports to expose from a container running this image.Labels contains arbitrary metadata for the container.StopSignal contains the system call signal that will be sent to the container to exit.getUser()User defines the username or UID which the process in the container should run as.Volumes is a set of directories describing where the process is likely write data specific to a container instance.WorkingDir sets the current working directory of the entrypoint process in the container.inthashCode()putExposedPortsItem(String key, Object exposedPortsItem) putLabelsItem(String key, String labelsItem) putVolumesItem(String key, Object volumesItem) voidsetArgsEscaped(Boolean argsEscaped) voidvoidsetEntrypoint(List<String> entrypoint) voidvoidsetExposedPorts(Map<String, Object> exposedPorts) voidvoidsetStopSignal(String stopSignal) voidvoidsetVolumes(Map<String, Object> volumes) voidsetWorkingDir(String workingDir) stopSignal(String stopSignal) toJson()Convert an instance of ImageConfig 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_ARGS_ESCAPED
- See Also:
-
SERIALIZED_NAME_CMD
- See Also:
-
SERIALIZED_NAME_ENTRYPOINT
- See Also:
-
SERIALIZED_NAME_ENV
- See Also:
-
SERIALIZED_NAME_EXPOSED_PORTS
- See Also:
-
SERIALIZED_NAME_LABELS
- See Also:
-
SERIALIZED_NAME_STOP_SIGNAL
- See Also:
-
SERIALIZED_NAME_USER
- See Also:
-
SERIALIZED_NAME_VOLUMES
- See Also:
-
SERIALIZED_NAME_WORKING_DIR
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ImageConfig
public ImageConfig()
-
-
Method Details
-
argsEscaped
-
getArgsEscaped
ArgsEscaped Deprecated: This field is present only for legacy compatibility with Docker and should not be used by new image builders. It is used by Docker for Windows images to indicate that the `Entrypoint` or `Cmd` or both, contains only a single element array, that is a pre-escaped, and combined into a single string `CommandLine`. If `true` the value in `Entrypoint` or `Cmd` should be used as-is to avoid double escaping. https://github.com/opencontainers/image-spec/pull/892- Returns:
- argsEscaped
-
setArgsEscaped
-
cmd
-
addCmdItem
-
getCmd
Cmd defines the default arguments to the entrypoint of the container.- Returns:
- cmd
-
setCmd
-
entrypoint
-
addEntrypointItem
-
getEntrypoint
Entrypoint defines a list of arguments to use as the command to execute when the container starts.- Returns:
- entrypoint
-
setEntrypoint
-
env
-
addEnvItem
-
getEnv
Env is a list of environment variables to be used in a container.- Returns:
- env
-
setEnv
-
exposedPorts
-
putExposedPortsItem
-
getExposedPorts
ExposedPorts a set of ports to expose from a container running this image.- Returns:
- exposedPorts
-
setExposedPorts
-
labels
-
putLabelsItem
-
getLabels
Labels contains arbitrary metadata for the container.- Returns:
- labels
-
setLabels
-
stopSignal
-
getStopSignal
StopSignal contains the system call signal that will be sent to the container to exit.- Returns:
- stopSignal
-
setStopSignal
-
user
-
getUser
User defines the username or UID which the process in the container should run as.- Returns:
- user
-
setUser
-
volumes
-
putVolumesItem
-
getVolumes
Volumes is a set of directories describing where the process is likely write data specific to a container instance.- Returns:
- volumes
-
setVolumes
-
workingDir
-
getWorkingDir
WorkingDir sets the current working directory of the entrypoint process in the container.- Returns:
- workingDir
-
setWorkingDir
-
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 ImageConfig
-
fromJson
Create an instance of ImageConfig given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ImageConfig
- Throws:
IOException- if the JSON string is invalid with respect to ImageConfig
-
toJson
Convert an instance of ImageConfig to an JSON string- Returns:
- JSON string
-