Class HostConfig
java.lang.Object
io.github.alersrt.pod4j.openapi.model.HostConfig
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class HostConfig
extends Object
Here, \"non-portable\" means \"dependent of the host we are running on\".
Portable information *should* appear in Config.
-
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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBindsItem(String bindsItem) addBlkioDeviceReadBpsItem(ThrottleDevice blkioDeviceReadBpsItem) addBlkioDeviceReadIOpsItem(ThrottleDevice blkioDeviceReadIOpsItem) addBlkioDeviceWriteBpsItem(ThrottleDevice blkioDeviceWriteBpsItem) addBlkioDeviceWriteIOpsItem(ThrottleDevice blkioDeviceWriteIOpsItem) addBlkioWeightDeviceItem(WeightDevice blkioWeightDeviceItem) addCapAddItem(String capAddItem) addCapDropItem(String capDropItem) addConsoleSizeItem(Integer consoleSizeItem) addDeviceCgroupRulesItem(String deviceCgroupRulesItem) addDeviceRequestsItem(DeviceRequest deviceRequestsItem) addDevicesItem(DeviceMapping devicesItem) addDnsItem(String dnsItem) addDnsOptionsItem(String dnsOptionsItem) addDnsSearchItem(String dnsSearchItem) addExtraHostsItem(String extraHostsItem) addGroupAddItem(String groupAddItem) addLinksItem(String linksItem) addMaskedPathsItem(String maskedPathsItem) addMountsItem(Mount mountsItem) addReadonlyPathsItem(String readonlyPathsItem) addSecurityOptItem(String securityOptItem) addUlimitsItem(Ulimit ulimitsItem) addVolumesFromItem(String volumesFromItem) annotations(Map<String, String> annotations) autoRemove(Boolean autoRemove) blkioDeviceReadBps(List<ThrottleDevice> blkioDeviceReadBps) blkioDeviceReadIOps(List<ThrottleDevice> blkioDeviceReadIOps) blkioDeviceWriteBps(List<ThrottleDevice> blkioDeviceWriteBps) blkioDeviceWriteIOps(List<ThrottleDevice> blkioDeviceWriteIOps) blkioWeight(Integer blkioWeight) blkioWeightDevice(List<WeightDevice> blkioWeightDevice) cgroupnsMode(String cgroupnsMode) cgroupParent(String cgroupParent) consoleSize(List<Integer> consoleSize) containerIDFile(String containerIDFile) cpuPercent(Long cpuPercent) cpuRealtimePeriod(Long cpuRealtimePeriod) cpuRealtimeRuntime(Long cpuRealtimeRuntime) cpusetCpus(String cpusetCpus) cpusetMems(String cpusetMems) deviceCgroupRules(List<String> deviceCgroupRules) deviceRequests(List<DeviceRequest> deviceRequests) devices(List<DeviceMapping> devices) dnsOptions(List<String> dnsOptions) booleanextraHosts(List<String> extraHosts) static HostConfigCreate an instance of HostConfig given an JSON stringGet annotationsGet autoRemovegetBinds()Applicable to all platformsGet blkioDeviceReadBpsGet blkioDeviceReadIOpsGet blkioDeviceWriteBpsGet blkioDeviceWriteIOpsGet blkioWeightGet blkioWeightDeviceWe need to override the json decoder to accept both options.We need to override the json decoder to accept both options.Get cgroupCgroupnsMode represents the cgroup namespace mode of the containerApplicable to UNIX platformsGet consoleSizeGet containerIDFileApplicable to WindowsGet cpuPercentGet cpuPeriodGet cpuQuotaGet cpuRealtimePeriodGet cpuRealtimeRuntimeGet cpusetCpusGet cpusetMemsApplicable to all platformsGet deviceCgroupRulesGet deviceRequestsGet devicesgetDns()Get dnsGet dnsOptionsGet dnsSearchGet extraHostsGet groupAddgetInit()Run a custom init inside the container, if null, use the daemon's configured settingsGet ioMaximumBandwidthGet ioMaximumIOpsGet ipcModeIsolation represents the isolation technology of a container.KernelMemory specifies the kernel memory limit (in bytes) for the container.Get kernelMemoryTCPgetLinks()Get linksGet logConfigMaskedPaths is the list of paths to be masked inside the container (this overrides the default set of paths)Get memoryGet memoryReservationGet memorySwapGet memorySwappinessMounts specs used by the containerGet nanoCpusGet networkModeGet oomKillDisableGet oomScoreAdjGet pidModeGet pidsLimitPortMap is a collection of PortBinding indexed by PortGet privilegedGet publishAllPortsReadonlyPaths is the list of paths to be set as read-only inside the container (this overrides the default set of paths)Get readonlyRootfsGet restartPolicyGet runtimeGet securityOptGet shmSizeGet storageOptGet sysctlsgetTmpfs()Get tmpfsGet ulimitsGet usernsModeGet utSModeGet volumeDriverGet volumesFrominthashCode()ioMaximumBandwidth(Integer ioMaximumBandwidth) ioMaximumIOps(Integer ioMaximumIOps) kernelMemory(Long kernelMemory) kernelMemoryTCP(Long kernelMemoryTCP) maskedPaths(List<String> maskedPaths) memoryReservation(Long memoryReservation) memorySwap(Long memorySwap) memorySwappiness(Long memorySwappiness) networkMode(String networkMode) oomKillDisable(Boolean oomKillDisable) oomScoreAdj(Long oomScoreAdj) portBindings(Map<String, List<PortBinding>> portBindings) privileged(Boolean privileged) publishAllPorts(Boolean publishAllPorts) putAnnotationsItem(String key, String annotationsItem) putPortBindingsItem(String key, List<PortBinding> portBindingsItem) putStorageOptItem(String key, String storageOptItem) putSysctlsItem(String key, String sysctlsItem) putTmpfsItem(String key, String tmpfsItem) readonlyPaths(List<String> readonlyPaths) readonlyRootfs(Boolean readonlyRootfs) restartPolicy(RestartPolicy restartPolicy) securityOpt(List<String> securityOpt) voidsetAnnotations(Map<String, String> annotations) voidsetAutoRemove(Boolean autoRemove) voidvoidsetBlkioDeviceReadBps(List<ThrottleDevice> blkioDeviceReadBps) voidsetBlkioDeviceReadIOps(List<ThrottleDevice> blkioDeviceReadIOps) voidsetBlkioDeviceWriteBps(List<ThrottleDevice> blkioDeviceWriteBps) voidsetBlkioDeviceWriteIOps(List<ThrottleDevice> blkioDeviceWriteIOps) voidsetBlkioWeight(Integer blkioWeight) voidsetBlkioWeightDevice(List<WeightDevice> blkioWeightDevice) voidvoidsetCapDrop(List<String> capDrop) voidvoidsetCgroupnsMode(String cgroupnsMode) voidsetCgroupParent(String cgroupParent) voidsetConsoleSize(List<Integer> consoleSize) voidsetContainerIDFile(String containerIDFile) voidsetCpuCount(Long cpuCount) voidsetCpuPercent(Long cpuPercent) voidsetCpuPeriod(Long cpuPeriod) voidsetCpuQuota(Long cpuQuota) voidsetCpuRealtimePeriod(Long cpuRealtimePeriod) voidsetCpuRealtimeRuntime(Long cpuRealtimeRuntime) voidsetCpusetCpus(String cpusetCpus) voidsetCpusetMems(String cpusetMems) voidsetCpuShares(Long cpuShares) voidsetDeviceCgroupRules(List<String> deviceCgroupRules) voidsetDeviceRequests(List<DeviceRequest> deviceRequests) voidsetDevices(List<DeviceMapping> devices) voidvoidsetDnsOptions(List<String> dnsOptions) voidsetDnsSearch(List<String> dnsSearch) voidsetExtraHosts(List<String> extraHosts) voidsetGroupAdd(List<String> groupAdd) voidvoidsetIoMaximumBandwidth(Integer ioMaximumBandwidth) voidsetIoMaximumIOps(Integer ioMaximumIOps) voidsetIpcMode(String ipcMode) voidsetIsolation(String isolation) voidsetKernelMemory(Long kernelMemory) voidsetKernelMemoryTCP(Long kernelMemoryTCP) voidvoidsetLogConfig(LogConfig logConfig) voidsetMaskedPaths(List<String> maskedPaths) voidvoidsetMemoryReservation(Long memoryReservation) voidsetMemorySwap(Long memorySwap) voidsetMemorySwappiness(Long memorySwappiness) voidvoidsetNanoCpus(Long nanoCpus) voidsetNetworkMode(String networkMode) voidsetOomKillDisable(Boolean oomKillDisable) voidsetOomScoreAdj(Long oomScoreAdj) voidsetPidMode(String pidMode) voidsetPidsLimit(Long pidsLimit) voidsetPortBindings(Map<String, List<PortBinding>> portBindings) voidsetPrivileged(Boolean privileged) voidsetPublishAllPorts(Boolean publishAllPorts) voidsetReadonlyPaths(List<String> readonlyPaths) voidsetReadonlyRootfs(Boolean readonlyRootfs) voidsetRestartPolicy(RestartPolicy restartPolicy) voidsetRuntime(String runtime) voidsetSecurityOpt(List<String> securityOpt) voidsetShmSize(Long shmSize) voidsetStorageOpt(Map<String, String> storageOpt) voidsetSysctls(Map<String, String> sysctls) voidvoidsetUlimits(List<Ulimit> ulimits) voidsetUsernsMode(String usernsMode) voidsetUtSMode(String utSMode) voidsetVolumeDriver(String volumeDriver) voidsetVolumesFrom(List<String> volumesFrom) storageOpt(Map<String, String> storageOpt) toJson()Convert an instance of HostConfig to an JSON stringtoString()usernsMode(String usernsMode) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundvolumeDriver(String volumeDriver) volumesFrom(List<String> volumesFrom)
-
Field Details
-
SERIALIZED_NAME_ANNOTATIONS
- See Also:
-
SERIALIZED_NAME_AUTO_REMOVE
- See Also:
-
SERIALIZED_NAME_BINDS
- See Also:
-
SERIALIZED_NAME_BLKIO_DEVICE_READ_BPS
- See Also:
-
SERIALIZED_NAME_BLKIO_DEVICE_READ_I_OPS
- See Also:
-
SERIALIZED_NAME_BLKIO_DEVICE_WRITE_BPS
- See Also:
-
SERIALIZED_NAME_BLKIO_DEVICE_WRITE_I_OPS
- See Also:
-
SERIALIZED_NAME_BLKIO_WEIGHT
- See Also:
-
SERIALIZED_NAME_BLKIO_WEIGHT_DEVICE
- See Also:
-
SERIALIZED_NAME_CAP_ADD
- See Also:
-
SERIALIZED_NAME_CAP_DROP
- See Also:
-
SERIALIZED_NAME_CGROUP
- See Also:
-
SERIALIZED_NAME_CGROUP_PARENT
- See Also:
-
SERIALIZED_NAME_CGROUPNS_MODE
- See Also:
-
SERIALIZED_NAME_CONSOLE_SIZE
- See Also:
-
SERIALIZED_NAME_CONTAINER_I_D_FILE
- See Also:
-
SERIALIZED_NAME_CPU_COUNT
- See Also:
-
SERIALIZED_NAME_CPU_PERCENT
- See Also:
-
SERIALIZED_NAME_CPU_PERIOD
- See Also:
-
SERIALIZED_NAME_CPU_QUOTA
- See Also:
-
SERIALIZED_NAME_CPU_REALTIME_PERIOD
- See Also:
-
SERIALIZED_NAME_CPU_REALTIME_RUNTIME
- See Also:
-
SERIALIZED_NAME_CPU_SHARES
- See Also:
-
SERIALIZED_NAME_CPUSET_CPUS
- See Also:
-
SERIALIZED_NAME_CPUSET_MEMS
- See Also:
-
SERIALIZED_NAME_DEVICE_CGROUP_RULES
- See Also:
-
SERIALIZED_NAME_DEVICE_REQUESTS
- See Also:
-
SERIALIZED_NAME_DEVICES
- See Also:
-
SERIALIZED_NAME_DNS
- See Also:
-
SERIALIZED_NAME_DNS_OPTIONS
- See Also:
-
SERIALIZED_NAME_DNS_SEARCH
- See Also:
-
SERIALIZED_NAME_EXTRA_HOSTS
- See Also:
-
SERIALIZED_NAME_GROUP_ADD
- See Also:
-
SERIALIZED_NAME_IO_MAXIMUM_BANDWIDTH
- See Also:
-
SERIALIZED_NAME_IO_MAXIMUM_I_OPS
- See Also:
-
SERIALIZED_NAME_INIT
- See Also:
-
SERIALIZED_NAME_IPC_MODE
- See Also:
-
SERIALIZED_NAME_ISOLATION
- See Also:
-
SERIALIZED_NAME_KERNEL_MEMORY
- See Also:
-
SERIALIZED_NAME_KERNEL_MEMORY_T_C_P
- See Also:
-
SERIALIZED_NAME_LINKS
- See Also:
-
SERIALIZED_NAME_LOG_CONFIG
- See Also:
-
SERIALIZED_NAME_MASKED_PATHS
- See Also:
-
SERIALIZED_NAME_MEMORY
- See Also:
-
SERIALIZED_NAME_MEMORY_RESERVATION
- See Also:
-
SERIALIZED_NAME_MEMORY_SWAP
- See Also:
-
SERIALIZED_NAME_MEMORY_SWAPPINESS
- See Also:
-
SERIALIZED_NAME_MOUNTS
- See Also:
-
SERIALIZED_NAME_NANO_CPUS
- See Also:
-
SERIALIZED_NAME_NETWORK_MODE
- See Also:
-
SERIALIZED_NAME_OOM_KILL_DISABLE
- See Also:
-
SERIALIZED_NAME_OOM_SCORE_ADJ
- See Also:
-
SERIALIZED_NAME_PID_MODE
- See Also:
-
SERIALIZED_NAME_PIDS_LIMIT
- See Also:
-
SERIALIZED_NAME_PORT_BINDINGS
- See Also:
-
SERIALIZED_NAME_PRIVILEGED
- See Also:
-
SERIALIZED_NAME_PUBLISH_ALL_PORTS
- See Also:
-
SERIALIZED_NAME_READONLY_PATHS
- See Also:
-
SERIALIZED_NAME_READONLY_ROOTFS
- See Also:
-
SERIALIZED_NAME_RESTART_POLICY
- See Also:
-
SERIALIZED_NAME_RUNTIME
- See Also:
-
SERIALIZED_NAME_SECURITY_OPT
- See Also:
-
SERIALIZED_NAME_SHM_SIZE
- See Also:
-
SERIALIZED_NAME_STORAGE_OPT
- See Also:
-
SERIALIZED_NAME_SYSCTLS
- See Also:
-
SERIALIZED_NAME_TMPFS
- See Also:
-
SERIALIZED_NAME_UT_S_MODE
- See Also:
-
SERIALIZED_NAME_ULIMITS
- See Also:
-
SERIALIZED_NAME_USERNS_MODE
- See Also:
-
SERIALIZED_NAME_VOLUME_DRIVER
- See Also:
-
SERIALIZED_NAME_VOLUMES_FROM
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
HostConfig
public HostConfig()
-
-
Method Details
-
annotations
-
putAnnotationsItem
-
getAnnotations
Get annotations- Returns:
- annotations
-
setAnnotations
-
autoRemove
-
getAutoRemove
Get autoRemove- Returns:
- autoRemove
-
setAutoRemove
-
binds
-
addBindsItem
-
getBinds
Applicable to all platforms- Returns:
- binds
-
setBinds
-
blkioDeviceReadBps
-
addBlkioDeviceReadBpsItem
-
getBlkioDeviceReadBps
Get blkioDeviceReadBps- Returns:
- blkioDeviceReadBps
-
setBlkioDeviceReadBps
-
blkioDeviceReadIOps
-
addBlkioDeviceReadIOpsItem
-
getBlkioDeviceReadIOps
Get blkioDeviceReadIOps- Returns:
- blkioDeviceReadIOps
-
setBlkioDeviceReadIOps
-
blkioDeviceWriteBps
-
addBlkioDeviceWriteBpsItem
-
getBlkioDeviceWriteBps
Get blkioDeviceWriteBps- Returns:
- blkioDeviceWriteBps
-
setBlkioDeviceWriteBps
-
blkioDeviceWriteIOps
-
addBlkioDeviceWriteIOpsItem
-
getBlkioDeviceWriteIOps
Get blkioDeviceWriteIOps- Returns:
- blkioDeviceWriteIOps
-
setBlkioDeviceWriteIOps
-
blkioWeight
-
getBlkioWeight
Get blkioWeight- Returns:
- blkioWeight
-
setBlkioWeight
-
blkioWeightDevice
-
addBlkioWeightDeviceItem
-
getBlkioWeightDevice
Get blkioWeightDevice- Returns:
- blkioWeightDevice
-
setBlkioWeightDevice
-
capAdd
-
addCapAddItem
-
getCapAdd
We need to override the json decoder to accept both options.- Returns:
- capAdd
-
setCapAdd
-
capDrop
-
addCapDropItem
-
getCapDrop
We need to override the json decoder to accept both options.- Returns:
- capDrop
-
setCapDrop
-
cgroup
-
getCgroup
Get cgroup- Returns:
- cgroup
-
setCgroup
-
cgroupParent
-
getCgroupParent
Applicable to UNIX platforms- Returns:
- cgroupParent
-
setCgroupParent
-
cgroupnsMode
-
getCgroupnsMode
CgroupnsMode represents the cgroup namespace mode of the container- Returns:
- cgroupnsMode
-
setCgroupnsMode
-
consoleSize
-
addConsoleSizeItem
-
getConsoleSize
Get consoleSize- Returns:
- consoleSize
-
setConsoleSize
-
containerIDFile
-
getContainerIDFile
Get containerIDFile- Returns:
- containerIDFile
-
setContainerIDFile
-
cpuCount
-
getCpuCount
Applicable to Windows- Returns:
- cpuCount
-
setCpuCount
-
cpuPercent
-
getCpuPercent
Get cpuPercent- Returns:
- cpuPercent
-
setCpuPercent
-
cpuPeriod
-
getCpuPeriod
Get cpuPeriod- Returns:
- cpuPeriod
-
setCpuPeriod
-
cpuQuota
-
getCpuQuota
Get cpuQuota- Returns:
- cpuQuota
-
setCpuQuota
-
cpuRealtimePeriod
-
getCpuRealtimePeriod
Get cpuRealtimePeriod- Returns:
- cpuRealtimePeriod
-
setCpuRealtimePeriod
-
cpuRealtimeRuntime
-
getCpuRealtimeRuntime
Get cpuRealtimeRuntime- Returns:
- cpuRealtimeRuntime
-
setCpuRealtimeRuntime
-
cpusetCpus
-
getCpusetCpus
Get cpusetCpus- Returns:
- cpusetCpus
-
setCpusetCpus
-
cpusetMems
-
getCpusetMems
Get cpusetMems- Returns:
- cpusetMems
-
setCpusetMems
-
deviceCgroupRules
-
addDeviceCgroupRulesItem
-
getDeviceCgroupRules
Get deviceCgroupRules- Returns:
- deviceCgroupRules
-
setDeviceCgroupRules
-
deviceRequests
-
addDeviceRequestsItem
-
getDeviceRequests
Get deviceRequests- Returns:
- deviceRequests
-
setDeviceRequests
-
devices
-
addDevicesItem
-
getDevices
Get devices- Returns:
- devices
-
setDevices
-
dns
-
addDnsItem
-
getDns
Get dns- Returns:
- dns
-
setDns
-
dnsOptions
-
addDnsOptionsItem
-
getDnsOptions
Get dnsOptions- Returns:
- dnsOptions
-
setDnsOptions
-
dnsSearch
-
addDnsSearchItem
-
getDnsSearch
Get dnsSearch- Returns:
- dnsSearch
-
setDnsSearch
-
extraHosts
-
addExtraHostsItem
-
getExtraHosts
Get extraHosts- Returns:
- extraHosts
-
setExtraHosts
-
groupAdd
-
addGroupAddItem
-
getGroupAdd
Get groupAdd- Returns:
- groupAdd
-
setGroupAdd
-
ioMaximumBandwidth
-
getIoMaximumBandwidth
Get ioMaximumBandwidth- Returns:
- ioMaximumBandwidth
-
setIoMaximumBandwidth
-
ioMaximumIOps
-
getIoMaximumIOps
Get ioMaximumIOps- Returns:
- ioMaximumIOps
-
setIoMaximumIOps
-
init
-
getInit
Run a custom init inside the container, if null, use the daemon's configured settings- Returns:
- init
-
setInit
-
ipcMode
-
getIpcMode
Get ipcMode- Returns:
- ipcMode
-
setIpcMode
-
isolation
-
getIsolation
Isolation represents the isolation technology of a container. The supported values are platform specific- Returns:
- isolation
-
setIsolation
-
kernelMemory
-
getKernelMemory
KernelMemory specifies the kernel memory limit (in bytes) for the container. Deprecated: kernel 5.4 deprecated kmem.limit_in_bytes.- Returns:
- kernelMemory
-
setKernelMemory
-
kernelMemoryTCP
-
getKernelMemoryTCP
Get kernelMemoryTCP- Returns:
- kernelMemoryTCP
-
setKernelMemoryTCP
-
links
-
addLinksItem
-
getLinks
Get links- Returns:
- links
-
setLinks
-
logConfig
-
getLogConfig
Get logConfig- Returns:
- logConfig
-
setLogConfig
-
maskedPaths
-
addMaskedPathsItem
-
getMaskedPaths
MaskedPaths is the list of paths to be masked inside the container (this overrides the default set of paths)- Returns:
- maskedPaths
-
setMaskedPaths
-
memory
-
getMemory
Get memory- Returns:
- memory
-
setMemory
-
memoryReservation
-
getMemoryReservation
Get memoryReservation- Returns:
- memoryReservation
-
setMemoryReservation
-
memorySwap
-
getMemorySwap
Get memorySwap- Returns:
- memorySwap
-
setMemorySwap
-
memorySwappiness
-
getMemorySwappiness
Get memorySwappiness- Returns:
- memorySwappiness
-
setMemorySwappiness
-
mounts
-
addMountsItem
-
getMounts
Mounts specs used by the container- Returns:
- mounts
-
setMounts
-
nanoCpus
-
getNanoCpus
Get nanoCpus- Returns:
- nanoCpus
-
setNanoCpus
-
networkMode
-
getNetworkMode
Get networkMode- Returns:
- networkMode
-
setNetworkMode
-
oomKillDisable
-
getOomKillDisable
Get oomKillDisable- Returns:
- oomKillDisable
-
setOomKillDisable
-
oomScoreAdj
-
getOomScoreAdj
Get oomScoreAdj- Returns:
- oomScoreAdj
-
setOomScoreAdj
-
pidMode
-
getPidMode
Get pidMode- Returns:
- pidMode
-
setPidMode
-
pidsLimit
-
getPidsLimit
Get pidsLimit- Returns:
- pidsLimit
-
setPidsLimit
-
portBindings
-
putPortBindingsItem
-
getPortBindings
PortMap is a collection of PortBinding indexed by Port- Returns:
- portBindings
-
setPortBindings
-
privileged
-
getPrivileged
Get privileged- Returns:
- privileged
-
setPrivileged
-
publishAllPorts
-
getPublishAllPorts
Get publishAllPorts- Returns:
- publishAllPorts
-
setPublishAllPorts
-
readonlyPaths
-
addReadonlyPathsItem
-
getReadonlyPaths
ReadonlyPaths is the list of paths to be set as read-only inside the container (this overrides the default set of paths)- Returns:
- readonlyPaths
-
setReadonlyPaths
-
readonlyRootfs
-
getReadonlyRootfs
Get readonlyRootfs- Returns:
- readonlyRootfs
-
setReadonlyRootfs
-
restartPolicy
-
getRestartPolicy
Get restartPolicy- Returns:
- restartPolicy
-
setRestartPolicy
-
runtime
-
getRuntime
Get runtime- Returns:
- runtime
-
setRuntime
-
securityOpt
-
addSecurityOptItem
-
getSecurityOpt
Get securityOpt- Returns:
- securityOpt
-
setSecurityOpt
-
shmSize
-
getShmSize
Get shmSize- Returns:
- shmSize
-
setShmSize
-
storageOpt
-
putStorageOptItem
-
getStorageOpt
Get storageOpt- Returns:
- storageOpt
-
setStorageOpt
-
sysctls
-
putSysctlsItem
-
getSysctls
Get sysctls- Returns:
- sysctls
-
setSysctls
-
tmpfs
-
putTmpfsItem
-
getTmpfs
Get tmpfs- Returns:
- tmpfs
-
setTmpfs
-
utSMode
-
getUtSMode
Get utSMode- Returns:
- utSMode
-
setUtSMode
-
ulimits
-
addUlimitsItem
-
getUlimits
Get ulimits- Returns:
- ulimits
-
setUlimits
-
usernsMode
-
getUsernsMode
Get usernsMode- Returns:
- usernsMode
-
setUsernsMode
-
volumeDriver
-
getVolumeDriver
Get volumeDriver- Returns:
- volumeDriver
-
setVolumeDriver
-
volumesFrom
-
addVolumesFromItem
-
getVolumesFrom
Get volumesFrom- Returns:
- volumesFrom
-
setVolumesFrom
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to HostConfig
-
fromJson
Create an instance of HostConfig given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of HostConfig
- Throws:
IOException- if the JSON string is invalid with respect to HostConfig
-
toJson
Convert an instance of HostConfig to an JSON string- Returns:
- JSON string
-