Class SpecGenerator
java.lang.Object
io.github.alersrt.pod4j.openapi.model.SpecGenerator
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class SpecGenerator
extends Object
implements Serializable
SpecGenerator creates an OCI spec and Libpod configuration options to create a container based on the given configuration.
- 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 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 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 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 TypeMethodDescriptionaddCapAddItem(String capAddItem) addCapDropItem(String capDropItem) addChrootDirectoriesItem(String chrootDirectoriesItem) addCniNetworksItem(String cniNetworksItem) addCommandItem(String commandItem) addContainerCreateCommandItem(String containerCreateCommandItem) addDependencyContainersItem(String dependencyContainersItem) addDeviceCgroupRuleItem(LinuxDeviceCgroup deviceCgroupRuleItem) addDevicesFromItem(String devicesFromItem) addDevicesItem(LinuxDevice devicesItem) addDnsOptionItem(String dnsOptionItem) addDnsSearchItem(String dnsSearchItem) addDnsServerItem(String dnsServerItem) addEntrypointItem(String entrypointItem) addEnvmergeItem(String envmergeItem) addGroupsItem(String groupsItem) addHostaddItem(String hostaddItem) addHostDeviceListItem(LinuxDevice hostDeviceListItem) addHostusersItem(String hostusersItem) addImageVolumesItem(ImageVolume imageVolumesItem) addMaskItem(String maskItem) addMountsItem(Mount mountsItem) addOverlayVolumesItem(OverlayVolume overlayVolumesItem) addPortmappingsItem(PortMapping portmappingsItem) addProcfsOptsItem(String procfsOptsItem) addRLimitsItem(POSIXRlimit rLimitsItem) addSecretsItem(Secret secretsItem) addSelinuxOptsItem(String selinuxOptsItem) addUnmaskItem(String unmaskItem) addUnsetenvItem(String unsetenvItem) addVolumesFromItem(String volumesFromItem) addVolumesItem(NamedVolume volumesItem) annotations(Map<String, String> annotations) apparmorProfile(String apparmorProfile) baseHostsFile(String baseHostsFile) cgroupParent(String cgroupParent) cgroupsMode(String cgroupsMode) chrootDirectories(List<String> chrootDirectories) cniNetworks(List<String> cniNetworks) conmonPidFile(String conmonPidFile) containerCreateCommand(List<String> containerCreateCommand) createWorkingDir(Boolean createWorkingDir) dependencyContainers(List<String> dependencyContainers) deviceCgroupRule(List<LinuxDeviceCgroup> deviceCgroupRule) devices(List<LinuxDevice> devices) devicesFrom(List<String> devicesFrom) entrypoint(List<String> entrypoint) booleanstatic SpecGeneratorCreate an instance of SpecGenerator given an JSON stringAnnotations are key-value options passed into the container runtime that can be used to trigger special behavior.ApparmorProfile is the name of the Apparmor profile the container will use.BaseHostsFile is the base file to create the `/etc/hosts` file inside the container.CapAdd are capabilities which will be added to the container.CapDrop are capabilities which will be removed from the container.@Valid NamespaceGet cgroupnsCgroupParent is the container's Cgroup parent.CgroupsMode sets a policy for how cgroups will be created for the container, including the ability to disable creation entirely.ChrootDirs is an additional set of directories that need to be treated as root directories.CNINetworks is a list of CNI networks to join the container to.Command is the container's command.ConmonPidFile is a path at which a PID file for Conmon will be placed.ContainerCreateCommand is the command that was used to create this container.Create the working directory if it doesn't exist.DependencyContainers is an array of containers this container depends on.@Valid List<LinuxDeviceCgroup>DeviceCgroupRule are device cgroup rules that allow containers to use additional types of devices.@Valid List<LinuxDevice>Devices are devices that will be added to the container.DevicesFrom specifies that this container will mount the device(s) from other container(s).DNSOptions is a set of DNS options that will be used in the container's resolv.conf, replacing the host's DNS options which are used by default.DNSSearch is a set of DNS search domains that will be used in the container's resolv.conf, replacing the host's DNS search domains which are used by default.DNSServers is a set of DNS servers that will be used in the container's resolv.conf, replacing the host's DNS Servers which are used by default.Entrypoint is the container's entrypoint.getEnv()Env is a set of environment variables that will be set in the container.EnvHost indicates that the host environment should be added to container Optional.EnvMerge takes the specified environment variables from image and preprocess them before injecting them into the container.Expose is a number of ports that will be forwarded to the container if PublishExposedPorts is set.GroupEntry specifies an arbitrary string to append to the container's /etc/group file.Groups are a list of supplemental groups the container's user will be granted access to.HealthCheckOnFailureAction defines how Podman reacts when a container's health status turns unhealthy.@Valid Schema2HealthConfigGet healthconfigHealthLogDestination defines the destination where the log is storedHealthMaxLogCount 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)HostAdd is a set of hosts which will be added to the container's etc/hosts file.@Valid List<LinuxDevice>HostDeviceList is used to recreate the mounted device on inherited containersHostname is the container's hostname.HostUsers is a list of host usernames or UIDs to add to the container etc/passwd fileEnvHTTPProxy indicates that the http host proxy environment variables should be added to container Optional.@Valid IDMappingOptionsGet idmappingsgetImage()Image is the image the container will be based on.ImageArch is the user-specified image architecture.ImageOS is the user-specified OS of the image.ImageVariant is the user-specified image variant.ImageVolumeMode indicates how image volumes will be created.@Valid List<ImageVolume>Image volumes bind-mount a container-image mount into the container.getInit()Init specifies that an init binary will be mounted into the container, and will be used as PID1.InitContainerType describes if this container is an init container and if so, what type: always or once.InitPath specifies the path to the init binary that will be added if Init is specified above.@Valid LinuxIntelRdtGet intelRdt@Valid NamespacegetIpcns()Get ipcnsLabelNested indicates whether or not the container is allowed to run fully nested containers including SELinux labelling.Labels are key-value pairs that are used to add metadata to containers.@Valid LogConfigLibpodGet logConfigurationPasswd is a container run option that determines if we are validating users/groups before running the containergetMask()Mask is the path we want to mask in the container.Mounts are mounts that will be added to the container.getName()Name is the name the container will be given.@Valid NamespacegetNetns()Get netnsNetworkOptions are additional options for each network Optional.@Valid Map<String,PerNetworkOptions> Map of networks names or ids that the container should join.NoNewPrivileges is whether the container will set the no new privileges flag on create, which disables gaining additional privileges (e.g.OCIRuntime is the name of the OCI runtime that will be used to create the container.OOMScoreAdj adjusts the score used by the OOM killer to determine processes to kill for the container's process.@Valid List<OverlayVolume>Overlay volumes are named volumes that will be added to the container.PasswdEntry specifies an arbitrary string to append to the container's /etc/passwd file.@Valid LinuxPersonalityGet personality@Valid NamespacegetPidns()Get pidnsgetPod()Pod is the ID of the pod the container will join.@Valid List<PortMapping>PortBindings is a set of ports to map into the container.Privileged is whether the container is privileged.ProcOpts are the options used for the proc mount.PublishExposedPorts will publish ports specified in the image to random unused ports (guaranteed to be above 1024) on the host.RawImageName is the user-specified and unprocessed input referring to a local or a remote image.ReadOnlyFilesystem indicates that everything will be mounted as read-only.ReadWriteTmpfs indicates that when running with a ReadOnlyFilesystem mount temporary file systems.Remove indicates if the container should be removed once it has been started and exits.RemoveImage indicates that the container should remove the image it was created from after it exits.@Valid LinuxResourcesGet resourceLimitsRestartPolicy is the container's restart policy - an action which will be taken when the container exits.RestartRetries is the number of attempts that will be made to restart the container.@Valid List<POSIXRlimit>Rlimits are POSIX rlimits to apply to the container.Rootfs is the path to a directory that will be used as the container's root filesystem.RootfsMapping specifies if there are UID/GID mappings to apply to the rootfs.RootfsOverlay tells if rootfs is actually an overlay on top of base path.RootfsPropagation is the rootfs propagation mode for the container.Determine how to handle the NOTIFY_SOCKET - do we participate or pass it through \"container\" - let the OCI runtime deal with it, advertise conmon's MAINPID \"conmon-only\" - advertise conmon's MAINPID, send READY when started, don't pass to OCI \"ignore\" - unset NOTIFY_SOCKET Optional.SeccompPolicy determines which seccomp profile gets applied the container.SeccompProfilePath is the path to a JSON file containing the container's Seccomp profile.EnvSecrets are secrets that will be set as environment variables Optional.Secrets are the secrets that will be added to the container Optional.SelinuxProcessLabel is the process label the container will use.ShmSize is the size of the tmpfs to mount in at /dev/shm, in bytes.ShmSizeSystemd is the size of systemd-specific tmpfs mounts specifically /run, /run/lock, /var/log/journal and /tmp.@Valid StartupHealthCheckGet startupHealthConfiggetStdin()Stdin is whether the container will keep its STDIN open.It implements the [os.Signal] interface.StopTimeout is a timeout between the container's stop signal being sent and SIGKILL being sent.StorageOpts is the container's storage options Optional.Sysctl sets kernel parameters for the containerSystemd is whether the container will be started in systemd mode.Terminal is whether the container will create a PTY.@Valid Map<String,LinuxThrottleDevice> IO read rate limit per cgroup per device, bytes per second@Valid Map<String,LinuxThrottleDevice> IO read rate limit per cgroup per device, IO per second@Valid Map<String,LinuxThrottleDevice> IO write rate limit per cgroup per device, bytes per second@Valid Map<String,LinuxThrottleDevice> IO write rate limit per cgroup per device, IO per secondTimeout is a maximum time in seconds the container will run before main process is sent SIGKILL.Timezone is the timezone inside the container.getUmask()Umask is the umask the init process of the container will be run with.CgroupConf are key-value options passed into the container runtime that are used to configure cgroup v2.Unmask a path in the container.UnsetEnv unsets the specified default environment variables from the image or from built-in or containers.conf Optional.UnsetEnvAll unsetall default environment variables from the image or from built-in or containers.conf UnsetEnvAll unsets all default environment variables from the image or from built-in Optional.UseImageHostname indicates that /etc/hostname should not be managed by Podman, and instead sourced from the image.UseImageHosts indicates that /etc/hosts should not be managed by Podman, and instead sourced from the image.UseImageResolvConf indicates that resolv.conf should not be managed by Podman, but instead sourced from the image.getUser()User is the user the container will be run as.@Valid NamespaceGet userns@Valid NamespacegetUtsns()Get utsnsVolatile specifies whether the container storage can be optimized at the cost of not syncing all the dirty files in memory.@Valid List<NamedVolume>Volumes are named volumes that will be added to the container.VolumesFrom is a set of containers whose volumes will be added to this container.@Valid Map<String,LinuxWeightDevice> Weight per cgroup per device, can override BlkioWeightWorkDir is the container's working directory.groupEntry(String groupEntry) inthashCode()healthCheckOnFailureAction(Long healthCheckOnFailureAction) healthconfig(Schema2HealthConfig healthconfig) healthLogDestination(String healthLogDestination) healthMaxLogCount(Integer healthMaxLogCount) healthMaxLogSize(Integer healthMaxLogSize) hostDeviceList(List<LinuxDevice> hostDeviceList) idmappings(IDMappingOptions idmappings) imageVariant(String imageVariant) imageVolumeMode(String imageVolumeMode) imageVolumes(List<ImageVolume> imageVolumes) initContainerType(String initContainerType) intelRdt(LinuxIntelRdt intelRdt) labelNested(Boolean labelNested) logConfiguration(LogConfigLibpod logConfiguration) managePassword(Boolean managePassword) networkOptions(Map<String, List<String>> networkOptions) networks(Map<String, PerNetworkOptions> networks) noNewPrivileges(Boolean noNewPrivileges) ociRuntime(String ociRuntime) oomScoreAdj(Long oomScoreAdj) overlayVolumes(List<OverlayVolume> overlayVolumes) passwdEntry(String passwdEntry) personality(LinuxPersonality personality) portmappings(List<PortMapping> portmappings) privileged(Boolean privileged) procfsOpts(List<String> procfsOpts) publishImagePorts(Boolean publishImagePorts) putAnnotationsItem(String key, String annotationsItem) putEnvItem(String key, String envItem) putLabelsItem(String key, String labelsItem) putNetworkOptionsItem(String key, List<String> networkOptionsItem) putNetworksItem(String key, PerNetworkOptions networksItem) putSecretEnvItem(String key, String secretEnvItem) putStorageOptsItem(String key, String storageOptsItem) putSysctlItem(String key, String sysctlItem) putThrottleReadBpsDeviceItem(String key, LinuxThrottleDevice throttleReadBpsDeviceItem) putThrottleReadIOPSDeviceItem(String key, LinuxThrottleDevice throttleReadIOPSDeviceItem) putThrottleWriteBpsDeviceItem(String key, LinuxThrottleDevice throttleWriteBpsDeviceItem) putThrottleWriteIOPSDeviceItem(String key, LinuxThrottleDevice throttleWriteIOPSDeviceItem) putUnifiedItem(String key, String unifiedItem) putWeightDeviceItem(String key, LinuxWeightDevice weightDeviceItem) rawImageName(String rawImageName) readOnlyFilesystem(Boolean readOnlyFilesystem) readWriteTmpfs(Boolean readWriteTmpfs) removeImage(Boolean removeImage) resourceLimits(LinuxResources resourceLimits) restartPolicy(String restartPolicy) restartTries(Integer restartTries) rLimits(List<POSIXRlimit> rLimits) rootfsMapping(String rootfsMapping) rootfsOverlay(Boolean rootfsOverlay) rootfsPropagation(String rootfsPropagation) sdnotifyMode(String sdnotifyMode) seccompPolicy(String seccompPolicy) seccompProfilePath(String seccompProfilePath) selinuxOpts(List<String> selinuxOpts) voidsetAnnotations(Map<String, String> annotations) voidsetApparmorProfile(String apparmorProfile) voidsetBaseHostsFile(String baseHostsFile) voidvoidsetCapDrop(List<String> capDrop) voidsetCgroupns(Namespace cgroupns) voidsetCgroupParent(String cgroupParent) voidsetCgroupsMode(String cgroupsMode) voidsetChrootDirectories(List<String> chrootDirectories) voidsetCniNetworks(List<String> cniNetworks) voidsetCommand(List<String> command) voidsetConmonPidFile(String conmonPidFile) voidsetContainerCreateCommand(List<String> containerCreateCommand) voidsetCreateWorkingDir(Boolean createWorkingDir) voidsetDependencyContainers(List<String> dependencyContainers) voidsetDeviceCgroupRule(List<LinuxDeviceCgroup> deviceCgroupRule) voidsetDevices(List<LinuxDevice> devices) voidsetDevicesFrom(List<String> devicesFrom) voidsetDnsOption(List<String> dnsOption) voidsetDnsSearch(List<String> dnsSearch) voidsetDnsServer(List<String> dnsServer) voidsetEntrypoint(List<String> entrypoint) voidvoidsetEnvHost(Boolean envHost) voidsetEnvmerge(List<String> envmerge) voidvoidsetGroupEntry(String groupEntry) voidvoidsetHealthCheckOnFailureAction(Long healthCheckOnFailureAction) voidsetHealthconfig(Schema2HealthConfig healthconfig) voidsetHealthLogDestination(String healthLogDestination) voidsetHealthMaxLogCount(Integer healthMaxLogCount) voidsetHealthMaxLogSize(Integer healthMaxLogSize) voidsetHostadd(List<String> hostadd) voidsetHostDeviceList(List<LinuxDevice> hostDeviceList) voidsetHostname(String hostname) voidsetHostusers(List<String> hostusers) voidsetHttpproxy(Boolean httpproxy) voidsetIdmappings(IDMappingOptions idmappings) voidvoidsetImageArch(String imageArch) voidsetImageOs(String imageOs) voidsetImageVariant(String imageVariant) voidsetImageVolumeMode(String imageVolumeMode) voidsetImageVolumes(List<ImageVolume> imageVolumes) voidvoidsetInitContainerType(String initContainerType) voidsetInitPath(String initPath) voidsetIntelRdt(LinuxIntelRdt intelRdt) voidvoidsetLabelNested(Boolean labelNested) voidvoidsetLogConfiguration(LogConfigLibpod logConfiguration) voidsetManagePassword(Boolean managePassword) voidvoidvoidvoidvoidsetNetworkOptions(Map<String, List<String>> networkOptions) voidsetNetworks(Map<String, PerNetworkOptions> networks) voidsetNoNewPrivileges(Boolean noNewPrivileges) voidsetOciRuntime(String ociRuntime) voidsetOomScoreAdj(Long oomScoreAdj) voidsetOverlayVolumes(List<OverlayVolume> overlayVolumes) voidsetPasswdEntry(String passwdEntry) voidsetPersonality(LinuxPersonality personality) voidvoidvoidsetPortmappings(List<PortMapping> portmappings) voidsetPrivileged(Boolean privileged) voidsetProcfsOpts(List<String> procfsOpts) voidsetPublishImagePorts(Boolean publishImagePorts) voidsetRawImageName(String rawImageName) voidsetReadOnlyFilesystem(Boolean readOnlyFilesystem) voidsetReadWriteTmpfs(Boolean readWriteTmpfs) voidvoidsetRemoveImage(Boolean removeImage) voidsetResourceLimits(LinuxResources resourceLimits) voidsetRestartPolicy(String restartPolicy) voidsetRestartTries(Integer restartTries) voidsetrLimits(List<POSIXRlimit> rLimits) voidvoidsetRootfsMapping(String rootfsMapping) voidsetRootfsOverlay(Boolean rootfsOverlay) voidsetRootfsPropagation(String rootfsPropagation) voidsetSdnotifyMode(String sdnotifyMode) voidsetSeccompPolicy(String seccompPolicy) voidsetSeccompProfilePath(String seccompProfilePath) voidsetSecretEnv(Map<String, String> secretEnv) voidsetSecrets(List<Secret> secrets) voidsetSelinuxOpts(List<String> selinuxOpts) voidsetShmSize(Long shmSize) voidsetShmSizeSystemd(Long shmSizeSystemd) voidsetStartupHealthConfig(StartupHealthCheck startupHealthConfig) voidvoidsetStopSignal(Long stopSignal) voidsetStopTimeout(Integer stopTimeout) voidsetStorageOpts(Map<String, String> storageOpts) voidvoidsetSystemd(String systemd) voidsetTerminal(Boolean terminal) voidsetThrottleReadBpsDevice(Map<String, LinuxThrottleDevice> throttleReadBpsDevice) voidsetThrottleReadIOPSDevice(Map<String, LinuxThrottleDevice> throttleReadIOPSDevice) voidsetThrottleWriteBpsDevice(Map<String, LinuxThrottleDevice> throttleWriteBpsDevice) voidsetThrottleWriteIOPSDevice(Map<String, LinuxThrottleDevice> throttleWriteIOPSDevice) voidsetTimeout(Integer timeout) voidsetTimezone(String timezone) voidvoidsetUnified(Map<String, String> unified) voidvoidsetUnsetenv(List<String> unsetenv) voidsetUnsetenvall(Boolean unsetenvall) voidsetUseImageHostname(Boolean useImageHostname) voidsetUseImageHosts(Boolean useImageHosts) voidsetUseImageResolveConf(Boolean useImageResolveConf) voidvoidvoidvoidsetVolatile(Boolean _volatile) voidsetVolumes(List<NamedVolume> volumes) voidsetVolumesFrom(List<String> volumesFrom) voidsetWeightDevice(Map<String, LinuxWeightDevice> weightDevice) voidsetWorkDir(String workDir) shmSizeSystemd(Long shmSizeSystemd) startupHealthConfig(StartupHealthCheck startupHealthConfig) stopSignal(Long stopSignal) stopTimeout(Integer stopTimeout) storageOpts(Map<String, String> storageOpts) throttleReadBpsDevice(Map<String, LinuxThrottleDevice> throttleReadBpsDevice) throttleReadIOPSDevice(Map<String, LinuxThrottleDevice> throttleReadIOPSDevice) throttleWriteBpsDevice(Map<String, LinuxThrottleDevice> throttleWriteBpsDevice) throttleWriteIOPSDevice(Map<String, LinuxThrottleDevice> throttleWriteIOPSDevice) toJson()Convert an instance of SpecGenerator to an JSON stringtoString()unsetenvall(Boolean unsetenvall) useImageHostname(Boolean useImageHostname) useImageHosts(Boolean useImageHosts) useImageResolveConf(Boolean useImageResolveConf) static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues foundvolumes(List<NamedVolume> volumes) volumesFrom(List<String> volumesFrom) weightDevice(Map<String, LinuxWeightDevice> weightDevice)
-
Field Details
-
SERIALIZED_NAME_NETWORKS
- See Also:
-
SERIALIZED_NAME_ANNOTATIONS
- See Also:
-
SERIALIZED_NAME_APPARMOR_PROFILE
- See Also:
-
SERIALIZED_NAME_BASE_HOSTS_FILE
- See Also:
-
SERIALIZED_NAME_CAP_ADD
- See Also:
-
SERIALIZED_NAME_CAP_DROP
- See Also:
-
SERIALIZED_NAME_CGROUP_PARENT
- See Also:
-
SERIALIZED_NAME_CGROUPNS
- See Also:
-
SERIALIZED_NAME_CGROUPS_MODE
- See Also:
-
SERIALIZED_NAME_CHROOT_DIRECTORIES
- See Also:
-
SERIALIZED_NAME_CNI_NETWORKS
- See Also:
-
SERIALIZED_NAME_COMMAND
- See Also:
-
SERIALIZED_NAME_CONMON_PID_FILE
- See Also:
-
SERIALIZED_NAME_CONTAINER_CREATE_COMMAND
- See Also:
-
SERIALIZED_NAME_CREATE_WORKING_DIR
- See Also:
-
SERIALIZED_NAME_DEPENDENCY_CONTAINERS
- See Also:
-
SERIALIZED_NAME_DEVICE_CGROUP_RULE
- See Also:
-
SERIALIZED_NAME_DEVICES
- See Also:
-
SERIALIZED_NAME_DEVICES_FROM
- See Also:
-
SERIALIZED_NAME_DNS_OPTION
- See Also:
-
SERIALIZED_NAME_DNS_SEARCH
- See Also:
-
SERIALIZED_NAME_DNS_SERVER
- See Also:
-
SERIALIZED_NAME_ENTRYPOINT
- See Also:
-
SERIALIZED_NAME_ENV
- See Also:
-
SERIALIZED_NAME_ENV_HOST
- See Also:
-
SERIALIZED_NAME_ENVMERGE
- See Also:
-
SERIALIZED_NAME_EXPOSE
- See Also:
-
SERIALIZED_NAME_GROUP_ENTRY
- See Also:
-
SERIALIZED_NAME_GROUPS
- See Also:
-
SERIALIZED_NAME_HEALTH_CHECK_ON_FAILURE_ACTION
- See Also:
-
SERIALIZED_NAME_HEALTH_LOG_DESTINATION
- See Also:
-
SERIALIZED_NAME_HEALTH_MAX_LOG_COUNT
- See Also:
-
SERIALIZED_NAME_HEALTH_MAX_LOG_SIZE
- See Also:
-
SERIALIZED_NAME_HEALTHCONFIG
- See Also:
-
SERIALIZED_NAME_HOST_DEVICE_LIST
- See Also:
-
SERIALIZED_NAME_HOSTADD
- See Also:
-
SERIALIZED_NAME_HOSTNAME
- See Also:
-
SERIALIZED_NAME_HOSTUSERS
- See Also:
-
SERIALIZED_NAME_HTTPPROXY
- See Also:
-
SERIALIZED_NAME_IDMAPPINGS
- See Also:
-
SERIALIZED_NAME_IMAGE
- See Also:
-
SERIALIZED_NAME_IMAGE_ARCH
- See Also:
-
SERIALIZED_NAME_IMAGE_OS
- See Also:
-
SERIALIZED_NAME_IMAGE_VARIANT
- See Also:
-
SERIALIZED_NAME_IMAGE_VOLUME_MODE
- See Also:
-
SERIALIZED_NAME_IMAGE_VOLUMES
- See Also:
-
SERIALIZED_NAME_INIT
- See Also:
-
SERIALIZED_NAME_INIT_CONTAINER_TYPE
- See Also:
-
SERIALIZED_NAME_INIT_PATH
- See Also:
-
SERIALIZED_NAME_INTEL_RDT
- See Also:
-
SERIALIZED_NAME_IPCNS
- See Also:
-
SERIALIZED_NAME_LABEL_NESTED
- See Also:
-
SERIALIZED_NAME_LABELS
- See Also:
-
SERIALIZED_NAME_LOG_CONFIGURATION
- See Also:
-
SERIALIZED_NAME_MANAGE_PASSWORD
- See Also:
-
SERIALIZED_NAME_MASK
- See Also:
-
SERIALIZED_NAME_MOUNTS
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_NETNS
- See Also:
-
SERIALIZED_NAME_NETWORK_OPTIONS
- See Also:
-
SERIALIZED_NAME_NO_NEW_PRIVILEGES
- See Also:
-
SERIALIZED_NAME_OCI_RUNTIME
- See Also:
-
SERIALIZED_NAME_OOM_SCORE_ADJ
- See Also:
-
SERIALIZED_NAME_OVERLAY_VOLUMES
- See Also:
-
SERIALIZED_NAME_PASSWD_ENTRY
- See Also:
-
SERIALIZED_NAME_PERSONALITY
- See Also:
-
SERIALIZED_NAME_PIDNS
- See Also:
-
SERIALIZED_NAME_POD
- See Also:
-
SERIALIZED_NAME_PORTMAPPINGS
- See Also:
-
SERIALIZED_NAME_PRIVILEGED
- See Also:
-
SERIALIZED_NAME_PROCFS_OPTS
- See Also:
-
SERIALIZED_NAME_PUBLISH_IMAGE_PORTS
- See Also:
-
SERIALIZED_NAME_R_LIMITS
- See Also:
-
SERIALIZED_NAME_RAW_IMAGE_NAME
- See Also:
-
SERIALIZED_NAME_READ_ONLY_FILESYSTEM
- See Also:
-
SERIALIZED_NAME_READ_WRITE_TMPFS
- See Also:
-
SERIALIZED_NAME_REMOVE
- See Also:
-
SERIALIZED_NAME_REMOVE_IMAGE
- See Also:
-
SERIALIZED_NAME_RESOURCE_LIMITS
- See Also:
-
SERIALIZED_NAME_RESTART_POLICY
- See Also:
-
SERIALIZED_NAME_RESTART_TRIES
- See Also:
-
SERIALIZED_NAME_ROOTFS
- See Also:
-
SERIALIZED_NAME_ROOTFS_MAPPING
- See Also:
-
SERIALIZED_NAME_ROOTFS_OVERLAY
- See Also:
-
SERIALIZED_NAME_ROOTFS_PROPAGATION
- See Also:
-
SERIALIZED_NAME_SDNOTIFY_MODE
- See Also:
-
SERIALIZED_NAME_SECCOMP_POLICY
- See Also:
-
SERIALIZED_NAME_SECCOMP_PROFILE_PATH
- See Also:
-
SERIALIZED_NAME_SECRET_ENV
- See Also:
-
SERIALIZED_NAME_SECRETS
- See Also:
-
SERIALIZED_NAME_SELINUX_OPTS
- See Also:
-
SERIALIZED_NAME_SHM_SIZE
- See Also:
-
SERIALIZED_NAME_SHM_SIZE_SYSTEMD
- See Also:
-
SERIALIZED_NAME_STARTUP_HEALTH_CONFIG
- See Also:
-
SERIALIZED_NAME_STDIN
- See Also:
-
SERIALIZED_NAME_STOP_SIGNAL
- See Also:
-
SERIALIZED_NAME_STOP_TIMEOUT
- See Also:
-
SERIALIZED_NAME_STORAGE_OPTS
- See Also:
-
SERIALIZED_NAME_SYSCTL
- See Also:
-
SERIALIZED_NAME_SYSTEMD
- See Also:
-
SERIALIZED_NAME_TERMINAL
- See Also:
-
SERIALIZED_NAME_THROTTLE_READ_BPS_DEVICE
- See Also:
-
SERIALIZED_NAME_THROTTLE_READ_I_O_P_S_DEVICE
- See Also:
-
SERIALIZED_NAME_THROTTLE_WRITE_BPS_DEVICE
- See Also:
-
SERIALIZED_NAME_THROTTLE_WRITE_I_O_P_S_DEVICE
- See Also:
-
SERIALIZED_NAME_TIMEOUT
- See Also:
-
SERIALIZED_NAME_TIMEZONE
- See Also:
-
SERIALIZED_NAME_UMASK
- See Also:
-
SERIALIZED_NAME_UNIFIED
- See Also:
-
SERIALIZED_NAME_UNMASK
- See Also:
-
SERIALIZED_NAME_UNSETENV
- See Also:
-
SERIALIZED_NAME_UNSETENVALL
- See Also:
-
SERIALIZED_NAME_USE_IMAGE_HOSTNAME
- See Also:
-
SERIALIZED_NAME_USE_IMAGE_HOSTS
- See Also:
-
SERIALIZED_NAME_USE_IMAGE_RESOLVE_CONF
- See Also:
-
SERIALIZED_NAME_USER
- See Also:
-
SERIALIZED_NAME_USERNS
- See Also:
-
SERIALIZED_NAME_UTSNS
- See Also:
-
SERIALIZED_NAME_VOLATILE
- See Also:
-
SERIALIZED_NAME_VOLUMES
- See Also:
-
SERIALIZED_NAME_VOLUMES_FROM
- See Also:
-
SERIALIZED_NAME_WEIGHT_DEVICE
- See Also:
-
SERIALIZED_NAME_WORK_DIR
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SpecGenerator
public SpecGenerator()
-
-
Method Details
-
networks
-
putNetworksItem
-
getNetworks
Map of networks names or ids that the container should join. You can request additional settings for each network, you can set network aliases, static ips, static mac address and the network interface name for this container on the specific network. If the map is empty and the bridge network mode is set the container will be joined to the default network. Optional.- Returns:
- networks
-
setNetworks
-
annotations
-
putAnnotationsItem
-
getAnnotations
Annotations are key-value options passed into the container runtime that can be used to trigger special behavior. Optional.- Returns:
- annotations
-
setAnnotations
-
apparmorProfile
-
getApparmorProfile
ApparmorProfile is the name of the Apparmor profile the container will use. Optional.- Returns:
- apparmorProfile
-
setApparmorProfile
-
baseHostsFile
-
getBaseHostsFile
BaseHostsFile is the base file to create the `/etc/hosts` file inside the container. This must either be an absolute path to a file on the host system, or one of the special flags `image` or `none`. If it is empty it defaults to the base_hosts_file configuration in containers.conf. Optional.- Returns:
- baseHostsFile
-
setBaseHostsFile
-
capAdd
-
addCapAddItem
-
getCapAdd
CapAdd are capabilities which will be added to the container. Conflicts with Privileged. Optional.- Returns:
- capAdd
-
setCapAdd
-
capDrop
-
addCapDropItem
-
getCapDrop
CapDrop are capabilities which will be removed from the container. Conflicts with Privileged. Optional.- Returns:
- capDrop
-
setCapDrop
-
cgroupParent
-
getCgroupParent
CgroupParent is the container's Cgroup parent. If not set, the default for the current cgroup driver will be used. Optional.- Returns:
- cgroupParent
-
setCgroupParent
-
cgroupns
-
getCgroupns
Get cgroupns- Returns:
- cgroupns
-
setCgroupns
-
cgroupsMode
-
getCgroupsMode
CgroupsMode sets a policy for how cgroups will be created for the container, including the ability to disable creation entirely. Optional.- Returns:
- cgroupsMode
-
setCgroupsMode
-
chrootDirectories
-
addChrootDirectoriesItem
-
getChrootDirectories
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. Optional.- Returns:
- chrootDirectories
-
setChrootDirectories
-
cniNetworks
-
addCniNetworksItem
-
getCniNetworks
CNINetworks is a list of CNI networks to join the container to. If this list is empty, the default CNI network will be joined instead. If at least one entry is present, we will not join the default network (unless it is part of this list). Only available if NetNS is set to bridge. Optional. Deprecated: as of podman 4.0 use \"Networks\" instead.- Returns:
- cniNetworks
-
setCniNetworks
-
command
-
addCommandItem
-
getCommand
Command is the container's command. If not given and Image is specified, this will be populated by the image's configuration. Optional.- Returns:
- command
-
setCommand
-
conmonPidFile
-
getConmonPidFile
ConmonPidFile is a path at which a PID file for Conmon will be placed. If not given, a default location will be used. Optional.- Returns:
- conmonPidFile
-
setConmonPidFile
-
containerCreateCommand
-
addContainerCreateCommandItem
-
getContainerCreateCommand
ContainerCreateCommand is the command that was used to create this container. This will be shown in the output of Inspect() on the container, and may also be used by some tools that wish to recreate the container (e.g. `podman generate systemd --new`). Optional.- Returns:
- containerCreateCommand
-
setContainerCreateCommand
-
createWorkingDir
-
getCreateWorkingDir
Create the working directory if it doesn't exist. If unset, it doesn't create it. Optional.- Returns:
- createWorkingDir
-
setCreateWorkingDir
-
dependencyContainers
-
addDependencyContainersItem
-
getDependencyContainers
DependencyContainers is an array of containers this container depends on. Dependency containers must be started before this container. Dependencies can be specified by name or full/partial ID. Optional.- Returns:
- dependencyContainers
-
setDependencyContainers
-
deviceCgroupRule
-
addDeviceCgroupRuleItem
-
getDeviceCgroupRule
DeviceCgroupRule are device cgroup rules that allow containers to use additional types of devices.- Returns:
- deviceCgroupRule
-
setDeviceCgroupRule
-
devices
-
addDevicesItem
-
getDevices
Devices are devices that will be added to the container. Optional.- Returns:
- devices
-
setDevices
-
devicesFrom
-
addDevicesFromItem
-
getDevicesFrom
DevicesFrom specifies that this container will mount the device(s) from other container(s). Optional.- Returns:
- devicesFrom
-
setDevicesFrom
-
dnsOption
-
addDnsOptionItem
-
getDnsOption
DNSOptions is a set of DNS options that will be used in the container's resolv.conf, replacing the host's DNS options which are used by default. Conflicts with UseImageResolvConf. Optional.- Returns:
- dnsOption
-
setDnsOption
-
dnsSearch
-
addDnsSearchItem
-
getDnsSearch
DNSSearch is a set of DNS search domains that will be used in the container's resolv.conf, replacing the host's DNS search domains which are used by default. Conflicts with UseImageResolvConf. Optional.- Returns:
- dnsSearch
-
setDnsSearch
-
dnsServer
-
addDnsServerItem
-
getDnsServer
DNSServers is a set of DNS servers that will be used in the container's resolv.conf, replacing the host's DNS Servers which are used by default. Conflicts with UseImageResolvConf. Optional.- Returns:
- dnsServer
-
setDnsServer
-
entrypoint
-
addEntrypointItem
-
getEntrypoint
Entrypoint is the container's entrypoint. If not given and Image is specified, this will be populated by the image's configuration. Optional.- Returns:
- entrypoint
-
setEntrypoint
-
env
-
putEnvItem
-
getEnv
Env is a set of environment variables that will be set in the container. Optional.- Returns:
- env
-
setEnv
-
envHost
-
getEnvHost
EnvHost indicates that the host environment should be added to container Optional.- Returns:
- envHost
-
setEnvHost
-
envmerge
-
addEnvmergeItem
-
getEnvmerge
EnvMerge takes the specified environment variables from image and preprocess them before injecting them into the container. Optional.- Returns:
- envmerge
-
setEnvmerge
-
expose
-
getExpose
Expose is a number of ports that will be forwarded to the container if PublishExposedPorts is set. Expose is a map of uint16 (port number) to a string representing protocol i.e map[uint16]string. Allowed protocols are \"tcp\", \"udp\", and \"sctp\", or some combination of the three separated by commas. If protocol is set to \"\" we will assume TCP. Only available if NetNS is set to Bridge or Slirp, and PublishExposedPorts is set. Optional.- Returns:
- expose
-
setExpose
-
groupEntry
-
getGroupEntry
GroupEntry specifies an arbitrary string to append to the container's /etc/group file. Optional.- Returns:
- groupEntry
-
setGroupEntry
-
groups
-
addGroupsItem
-
getGroups
Groups are a list of supplemental groups the container's user will be granted access to. Optional.- Returns:
- groups
-
setGroups
-
healthCheckOnFailureAction
-
getHealthCheckOnFailureAction
HealthCheckOnFailureAction defines how Podman reacts when a container's health status turns unhealthy.- Returns:
- healthCheckOnFailureAction
-
setHealthCheckOnFailureAction
-
healthLogDestination
-
getHealthLogDestination
HealthLogDestination defines the destination where the log is stored- Returns:
- healthLogDestination
-
setHealthLogDestination
-
healthMaxLogCount
-
getHealthMaxLogCount
HealthMaxLogCount is maximum number of attempts in the HealthCheck log file. ('0' value means an infinite number of attempts in the log file)- Returns:
- healthMaxLogCount
-
setHealthMaxLogCount
-
healthMaxLogSize
-
getHealthMaxLogSize
HealthMaxLogSize is the maximum length in characters of stored HealthCheck log (\"0\" value means an infinite log length)- Returns:
- healthMaxLogSize
-
setHealthMaxLogSize
-
healthconfig
-
getHealthconfig
Get healthconfig- Returns:
- healthconfig
-
setHealthconfig
-
hostDeviceList
-
addHostDeviceListItem
-
getHostDeviceList
HostDeviceList is used to recreate the mounted device on inherited containers- Returns:
- hostDeviceList
-
setHostDeviceList
-
hostadd
-
addHostaddItem
-
getHostadd
HostAdd is a set of hosts which will be added to the container's etc/hosts file. Conflicts with UseImageHosts. Optional.- Returns:
- hostadd
-
setHostadd
-
hostname
-
getHostname
Hostname is the container's hostname. If not set, the hostname will not be modified (if UtsNS is not private) or will be set to the container ID (if UtsNS is private). Conflicts with UtsNS if UtsNS is not set to private. Optional.- Returns:
- hostname
-
setHostname
-
hostusers
-
addHostusersItem
-
getHostusers
HostUsers is a list of host usernames or UIDs to add to the container etc/passwd file- Returns:
- hostusers
-
setHostusers
-
httpproxy
-
getHttpproxy
EnvHTTPProxy indicates that the http host proxy environment variables should be added to container Optional.- Returns:
- httpproxy
-
setHttpproxy
-
idmappings
-
getIdmappings
Get idmappings- Returns:
- idmappings
-
setIdmappings
-
image
-
getImage
Image is the image the container will be based on. The image will be used as the container's root filesystem, and its environment vars, volumes, and other configuration will be applied to the container. Conflicts with Rootfs. At least one of Image or Rootfs must be specified.- Returns:
- image
-
setImage
-
imageArch
-
getImageArch
ImageArch is the user-specified image architecture. Used to select a different variant from a manifest list. Optional.- Returns:
- imageArch
-
setImageArch
-
imageOs
-
getImageOs
ImageOS is the user-specified OS of the image. Used to select a different variant from a manifest list. Optional.- Returns:
- imageOs
-
setImageOs
-
imageVariant
-
getImageVariant
ImageVariant is the user-specified image variant. Used to select a different variant from a manifest list. Optional.- Returns:
- imageVariant
-
setImageVariant
-
imageVolumeMode
-
getImageVolumeMode
ImageVolumeMode indicates how image volumes will be created. Supported modes are \"ignore\" (do not create), \"tmpfs\" (create as tmpfs), and \"anonymous\" (create as anonymous volumes). The default if unset is anonymous. Optional.- Returns:
- imageVolumeMode
-
setImageVolumeMode
-
imageVolumes
-
addImageVolumesItem
-
getImageVolumes
Image volumes bind-mount a container-image mount into the container. Optional.- Returns:
- imageVolumes
-
setImageVolumes
-
init
-
getInit
Init specifies that an init binary will be mounted into the container, and will be used as PID1. Optional.- Returns:
- init
-
setInit
-
initContainerType
-
getInitContainerType
InitContainerType describes if this container is an init container and if so, what type: always or once. Optional.- Returns:
- initContainerType
-
setInitContainerType
-
initPath
-
getInitPath
InitPath specifies the path to the init binary that will be added if Init is specified above. If not specified, the default set in the Libpod config will be used. Ignored if Init above is not set. Optional.- Returns:
- initPath
-
setInitPath
-
intelRdt
-
getIntelRdt
Get intelRdt- Returns:
- intelRdt
-
setIntelRdt
-
ipcns
-
getIpcns
Get ipcns- Returns:
- ipcns
-
setIpcns
-
labelNested
-
getLabelNested
LabelNested indicates whether or not the container is allowed to run fully nested containers including SELinux labelling. Optional.- Returns:
- labelNested
-
setLabelNested
-
labels
-
putLabelsItem
-
getLabels
Labels are key-value pairs that are used to add metadata to containers. Optional.- Returns:
- labels
-
setLabels
-
logConfiguration
-
getLogConfiguration
Get logConfiguration- Returns:
- logConfiguration
-
setLogConfiguration
-
managePassword
-
getManagePassword
Passwd is a container run option that determines if we are validating users/groups before running the container- Returns:
- managePassword
-
setManagePassword
-
mask
-
addMaskItem
-
getMask
Mask is the path we want to mask in the container. This masks the paths given in addition to the default list. Optional- Returns:
- mask
-
setMask
-
mounts
-
addMountsItem
-
getMounts
Mounts are mounts that will be added to the container. These will supersede Image Volumes and VolumesFrom volumes where there are conflicts. Optional.- Returns:
- mounts
-
setMounts
-
name
-
getName
Name is the name the container will be given. If no name is provided, one will be randomly generated. Optional.- Returns:
- name
-
setName
-
netns
-
getNetns
Get netns- Returns:
- netns
-
setNetns
-
networkOptions
-
putNetworkOptionsItem
-
getNetworkOptions
NetworkOptions are additional options for each network Optional.- Returns:
- networkOptions
-
setNetworkOptions
-
noNewPrivileges
-
getNoNewPrivileges
NoNewPrivileges is whether the container will set the no new privileges flag on create, which disables gaining additional privileges (e.g. via setuid) in the container. Optional.- Returns:
- noNewPrivileges
-
setNoNewPrivileges
-
ociRuntime
-
getOciRuntime
OCIRuntime is the name of the OCI runtime that will be used to create the container. If not specified, the default will be used. Optional.- Returns:
- ociRuntime
-
setOciRuntime
-
oomScoreAdj
-
getOomScoreAdj
OOMScoreAdj adjusts the score used by the OOM killer to determine processes to kill for the container's process. Optional.- Returns:
- oomScoreAdj
-
setOomScoreAdj
-
overlayVolumes
-
addOverlayVolumesItem
-
getOverlayVolumes
Overlay volumes are named volumes that will be added to the container. Optional.- Returns:
- overlayVolumes
-
setOverlayVolumes
-
passwdEntry
-
getPasswdEntry
PasswdEntry specifies an arbitrary string to append to the container's /etc/passwd file. Optional.- Returns:
- passwdEntry
-
setPasswdEntry
-
personality
-
getPersonality
Get personality- Returns:
- personality
-
setPersonality
-
pidns
-
getPidns
Get pidns- Returns:
- pidns
-
setPidns
-
pod
-
getPod
Pod is the ID of the pod the container will join. Optional.- Returns:
- pod
-
setPod
-
portmappings
-
addPortmappingsItem
-
getPortmappings
PortBindings is a set of ports to map into the container. Only available if NetNS is set to bridge, slirp, or pasta. Optional.- Returns:
- portmappings
-
setPortmappings
-
privileged
-
getPrivileged
Privileged is whether the container is privileged. Privileged does the following: Adds all devices on the system to the container. Adds all capabilities to the container. Disables Seccomp, SELinux, and Apparmor confinement. (Though SELinux can be manually re-enabled). TODO: this conflicts with things. TODO: this does more. Optional.- Returns:
- privileged
-
setPrivileged
-
procfsOpts
-
addProcfsOptsItem
-
getProcfsOpts
ProcOpts are the options used for the proc mount.- Returns:
- procfsOpts
-
setProcfsOpts
-
publishImagePorts
-
getPublishImagePorts
PublishExposedPorts will publish ports specified in the image to random unused ports (guaranteed to be above 1024) on the host. This is based on ports set in Expose below, and any ports specified by the Image (if one is given). Only available if NetNS is set to Bridge or Slirp. Optional.- Returns:
- publishImagePorts
-
setPublishImagePorts
-
rLimits
-
addRLimitsItem
-
getrLimits
Rlimits are POSIX rlimits to apply to the container. Optional.- Returns:
- rLimits
-
setrLimits
-
rawImageName
-
getRawImageName
RawImageName is the user-specified and unprocessed input referring to a local or a remote image. Optional, but strongly encouraged to be set if Image is set.- Returns:
- rawImageName
-
setRawImageName
-
readOnlyFilesystem
-
getReadOnlyFilesystem
ReadOnlyFilesystem indicates that everything will be mounted as read-only. Optional.- Returns:
- readOnlyFilesystem
-
setReadOnlyFilesystem
-
readWriteTmpfs
-
getReadWriteTmpfs
ReadWriteTmpfs indicates that when running with a ReadOnlyFilesystem mount temporary file systems. Optional.- Returns:
- readWriteTmpfs
-
setReadWriteTmpfs
-
remove
-
getRemove
Remove indicates if the container should be removed once it has been started and exits. Optional.- Returns:
- remove
-
setRemove
-
removeImage
-
getRemoveImage
RemoveImage indicates that the container should remove the image it was created from after it exits. Only allowed if Remove is set to true and Image, not Rootfs, is in use. Optional.- Returns:
- removeImage
-
setRemoveImage
-
resourceLimits
-
getResourceLimits
Get resourceLimits- Returns:
- resourceLimits
-
setResourceLimits
-
restartPolicy
-
getRestartPolicy
RestartPolicy is the container's restart policy - an action which will be taken when the container exits. If not given, the default policy, which does nothing, will be used. Optional.- Returns:
- restartPolicy
-
setRestartPolicy
-
restartTries
-
getRestartTries
RestartRetries is the number of attempts that will be made to restart the container. Only available when RestartPolicy is set to \"on-failure\". Optional.- Returns:
- restartTries
-
setRestartTries
-
rootfs
-
getRootfs
Rootfs is the path to a directory that will be used as the container's root filesystem. No modification will be made to the directory, it will be directly mounted into the container as root. Conflicts with Image. At least one of Image or Rootfs must be specified.- Returns:
- rootfs
-
setRootfs
-
rootfsMapping
-
getRootfsMapping
RootfsMapping specifies if there are UID/GID mappings to apply to the rootfs. Optional.- Returns:
- rootfsMapping
-
setRootfsMapping
-
rootfsOverlay
-
getRootfsOverlay
RootfsOverlay tells if rootfs is actually an overlay on top of base path. Optional.- Returns:
- rootfsOverlay
-
setRootfsOverlay
-
rootfsPropagation
-
getRootfsPropagation
RootfsPropagation is the rootfs propagation mode for the container. If not set, the default of rslave will be used. Optional.- Returns:
- rootfsPropagation
-
setRootfsPropagation
-
sdnotifyMode
-
getSdnotifyMode
Determine how to handle the NOTIFY_SOCKET - do we participate or pass it through \"container\" - let the OCI runtime deal with it, advertise conmon's MAINPID \"conmon-only\" - advertise conmon's MAINPID, send READY when started, don't pass to OCI \"ignore\" - unset NOTIFY_SOCKET Optional.- Returns:
- sdnotifyMode
-
setSdnotifyMode
-
seccompPolicy
-
getSeccompPolicy
SeccompPolicy determines which seccomp profile gets applied the container. valid values: empty,default,image- Returns:
- seccompPolicy
-
setSeccompPolicy
-
seccompProfilePath
-
getSeccompProfilePath
SeccompProfilePath is the path to a JSON file containing the container's Seccomp profile. If not specified, no Seccomp profile will be used. Optional.- Returns:
- seccompProfilePath
-
setSeccompProfilePath
-
secretEnv
-
putSecretEnvItem
-
getSecretEnv
EnvSecrets are secrets that will be set as environment variables Optional.- Returns:
- secretEnv
-
setSecretEnv
-
secrets
-
addSecretsItem
-
getSecrets
Secrets are the secrets that will be added to the container Optional.- Returns:
- secrets
-
setSecrets
-
selinuxOpts
-
addSelinuxOptsItem
-
getSelinuxOpts
SelinuxProcessLabel is the process label the container will use. If SELinux is enabled and this is not specified, a label will be automatically generated if not specified. Optional.- Returns:
- selinuxOpts
-
setSelinuxOpts
-
shmSize
-
getShmSize
ShmSize is the size of the tmpfs to mount in at /dev/shm, in bytes. Conflicts with ShmSize if IpcNS is not private. Optional.- Returns:
- shmSize
-
setShmSize
-
shmSizeSystemd
-
getShmSizeSystemd
ShmSizeSystemd is the size of systemd-specific tmpfs mounts specifically /run, /run/lock, /var/log/journal and /tmp. Optional- Returns:
- shmSizeSystemd
-
setShmSizeSystemd
-
startupHealthConfig
-
getStartupHealthConfig
Get startupHealthConfig- Returns:
- startupHealthConfig
-
setStartupHealthConfig
-
stdin
-
getStdin
Stdin is whether the container will keep its STDIN open. Optional.- Returns:
- stdin
-
setStdin
-
stopSignal
-
getStopSignal
It implements the [os.Signal] interface.- Returns:
- stopSignal
-
setStopSignal
-
stopTimeout
-
getStopTimeout
StopTimeout is a timeout between the container's stop signal being sent and SIGKILL being sent. If not provided, the default will be used. If 0 is used, stop signal will not be sent, and SIGKILL will be sent instead. Optional.- Returns:
- stopTimeout
-
setStopTimeout
-
storageOpts
-
putStorageOptsItem
-
getStorageOpts
StorageOpts is the container's storage options Optional.- Returns:
- storageOpts
-
setStorageOpts
-
sysctl
-
putSysctlItem
-
getSysctl
Sysctl sets kernel parameters for the container- Returns:
- sysctl
-
setSysctl
-
systemd
-
getSystemd
Systemd is whether the container will be started in systemd mode. Valid options are \"true\", \"false\", and \"always\". \"true\" enables this mode only if the binary run in the container is sbin/init or systemd. \"always\" unconditionally enables systemd mode. \"false\" unconditionally disables systemd mode. If enabled, mounts and stop signal will be modified. If set to \"always\" or set to \"true\" and conditionally triggered, conflicts with StopSignal. If not specified, \"false\" will be assumed. Optional.- Returns:
- systemd
-
setSystemd
-
terminal
-
getTerminal
Terminal is whether the container will create a PTY. Optional.- Returns:
- terminal
-
setTerminal
-
throttleReadBpsDevice
-
putThrottleReadBpsDeviceItem
public SpecGenerator putThrottleReadBpsDeviceItem(String key, LinuxThrottleDevice throttleReadBpsDeviceItem) -
getThrottleReadBpsDevice
IO read rate limit per cgroup per device, bytes per second- Returns:
- throttleReadBpsDevice
-
setThrottleReadBpsDevice
-
throttleReadIOPSDevice
-
putThrottleReadIOPSDeviceItem
public SpecGenerator putThrottleReadIOPSDeviceItem(String key, LinuxThrottleDevice throttleReadIOPSDeviceItem) -
getThrottleReadIOPSDevice
IO read rate limit per cgroup per device, IO per second- Returns:
- throttleReadIOPSDevice
-
setThrottleReadIOPSDevice
-
throttleWriteBpsDevice
-
putThrottleWriteBpsDeviceItem
public SpecGenerator putThrottleWriteBpsDeviceItem(String key, LinuxThrottleDevice throttleWriteBpsDeviceItem) -
getThrottleWriteBpsDevice
IO write rate limit per cgroup per device, bytes per second- Returns:
- throttleWriteBpsDevice
-
setThrottleWriteBpsDevice
-
throttleWriteIOPSDevice
public SpecGenerator throttleWriteIOPSDevice(Map<String, LinuxThrottleDevice> throttleWriteIOPSDevice) -
putThrottleWriteIOPSDeviceItem
public SpecGenerator putThrottleWriteIOPSDeviceItem(String key, LinuxThrottleDevice throttleWriteIOPSDeviceItem) -
getThrottleWriteIOPSDevice
IO write rate limit per cgroup per device, IO per second- Returns:
- throttleWriteIOPSDevice
-
setThrottleWriteIOPSDevice
-
timeout
-
getTimeout
Timeout is a maximum time in seconds the container will run before main process is sent SIGKILL. If 0 is used, signal will not be sent. Container can run indefinitely if they do not stop after the default termination signal. Optional.- Returns:
- timeout
-
setTimeout
-
timezone
-
getTimezone
Timezone is the timezone inside the container. Local means it has the same timezone as the host machine Optional.- Returns:
- timezone
-
setTimezone
-
umask
-
getUmask
Umask is the umask the init process of the container will be run with.- Returns:
- umask
-
setUmask
-
unified
-
putUnifiedItem
-
getUnified
CgroupConf are key-value options passed into the container runtime that are used to configure cgroup v2. Optional.- Returns:
- unified
-
setUnified
-
unmask
-
addUnmaskItem
-
getUnmask
Unmask a path in the container. Some paths are masked by default, preventing them from being accessed within the container; this undoes that masking. If ALL is passed, all paths will be unmasked. Optional.- Returns:
- unmask
-
setUnmask
-
unsetenv
-
addUnsetenvItem
-
getUnsetenv
UnsetEnv unsets the specified default environment variables from the image or from built-in or containers.conf Optional.- Returns:
- unsetenv
-
setUnsetenv
-
unsetenvall
-
getUnsetenvall
UnsetEnvAll unsetall default environment variables from the image or from built-in or containers.conf UnsetEnvAll unsets all default environment variables from the image or from built-in Optional.- Returns:
- unsetenvall
-
setUnsetenvall
-
useImageHostname
-
getUseImageHostname
UseImageHostname indicates that /etc/hostname should not be managed by Podman, and instead sourced from the image. Optional.- Returns:
- useImageHostname
-
setUseImageHostname
-
useImageHosts
-
getUseImageHosts
UseImageHosts indicates that /etc/hosts should not be managed by Podman, and instead sourced from the image. Conflicts with HostAdd. Optional.- Returns:
- useImageHosts
-
setUseImageHosts
-
useImageResolveConf
-
getUseImageResolveConf
UseImageResolvConf indicates that resolv.conf should not be managed by Podman, but instead sourced from the image. Conflicts with DNSServer, DNSSearch, DNSOption. Optional.- Returns:
- useImageResolveConf
-
setUseImageResolveConf
-
user
-
getUser
User is the user the container will be run as. Can be given as a UID or a username; if a username, it will be resolved within the container, using the container's /etc/passwd. If unset, the container will be run as root. Optional.- Returns:
- user
-
setUser
-
userns
-
getUserns
Get userns- Returns:
- userns
-
setUserns
-
utsns
-
getUtsns
Get utsns- Returns:
- utsns
-
setUtsns
-
_volatile
-
getVolatile
Volatile specifies whether the container storage can be optimized at the cost of not syncing all the dirty files in memory. Optional.- Returns:
- _volatile
-
setVolatile
-
volumes
-
addVolumesItem
-
getVolumes
Volumes are named volumes that will be added to the container. These will supersede Image Volumes and VolumesFrom volumes where there are conflicts. Optional.- Returns:
- volumes
-
setVolumes
-
volumesFrom
-
addVolumesFromItem
-
getVolumesFrom
VolumesFrom is a set of containers whose volumes will be added to this container. The name or ID of the container must be provided, and may optionally be followed by a : and then one or more comma-separated options. Valid options are 'ro', 'rw', and 'z'. Options will be used for all volumes sourced from the container. Optional.- Returns:
- volumesFrom
-
setVolumesFrom
-
weightDevice
-
putWeightDeviceItem
-
getWeightDevice
Weight per cgroup per device, can override BlkioWeight- Returns:
- weightDevice
-
setWeightDevice
-
workDir
-
getWorkDir
WorkDir is the container's working directory. If unset, the default, /, will be used. Optional.- Returns:
- workDir
-
setWorkDir
-
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 SpecGenerator
-
fromJson
Create an instance of SpecGenerator given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SpecGenerator
- Throws:
IOException- if the JSON string is invalid with respect to SpecGenerator
-
toJson
Convert an instance of SpecGenerator to an JSON string- Returns:
- JSON string
-