Record Class DevContainerConfig
java.lang.Object
java.lang.Record
io.fluxzero.devserver.DevContainerConfig
public record DevContainerConfig(String image, String runtime, String pull, Map<String,Integer> ports, List<DevContainerConfig.Mount> mounts, String network, String hostGateway, String user, Boolean readOnly, List<String> capDrop, List<String> securityOpt, List<String> command, String driver, Boolean registryInsecure)
extends Record
Declarative container configuration for Docker-compatible runtime CLIs.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDevContainerConfig(String image, String runtime, String pull, Map<String, Integer> ports, List<DevContainerConfig.Mount> mounts, String network, String hostGateway, String user, Boolean readOnly, List<String> capDrop, List<String> securityOpt, List<String> command, String driver, Boolean registryInsecure) Creates an instance of aDevContainerConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncapDrop()Returns the value of thecapDroprecord component.command()Returns the value of thecommandrecord component.driver()Returns the value of thedriverrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehostGatewayrecord component.image()Returns the value of theimagerecord component.mounts()Returns the value of themountsrecord component.network()Returns the value of thenetworkrecord component.ports()Returns the value of theportsrecord component.pull()Returns the value of thepullrecord component.readOnly()Returns the value of thereadOnlyrecord component.Returns the value of theregistryInsecurerecord component.runtime()Returns the value of theruntimerecord component.Returns the value of thesecurityOptrecord component.final StringtoString()Returns a string representation of this record class.user()Returns the value of theuserrecord component.
-
Constructor Details
-
DevContainerConfig
public DevContainerConfig(String image, String runtime, String pull, Map<String, Integer> ports, List<DevContainerConfig.Mount> mounts, String network, String hostGateway, String user, Boolean readOnly, List<String> capDrop, List<String> securityOpt, List<String> command, String driver, Boolean registryInsecure) Creates an instance of aDevContainerConfigrecord class.- Parameters:
image- the value for theimagerecord componentruntime- the value for theruntimerecord componentpull- the value for thepullrecord componentports- the value for theportsrecord componentmounts- the value for themountsrecord componentnetwork- the value for thenetworkrecord componenthostGateway- the value for thehostGatewayrecord componentuser- the value for theuserrecord componentreadOnly- the value for thereadOnlyrecord componentcapDrop- the value for thecapDroprecord componentsecurityOpt- the value for thesecurityOptrecord componentcommand- the value for thecommandrecord componentdriver- the value for thedriverrecord componentregistryInsecure- the value for theregistryInsecurerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
image
Returns the value of theimagerecord component.- Returns:
- the value of the
imagerecord component
-
runtime
Returns the value of theruntimerecord component.- Returns:
- the value of the
runtimerecord component
-
pull
Returns the value of thepullrecord component.- Returns:
- the value of the
pullrecord component
-
ports
-
mounts
Returns the value of themountsrecord component.- Returns:
- the value of the
mountsrecord component
-
network
Returns the value of thenetworkrecord component.- Returns:
- the value of the
networkrecord component
-
hostGateway
Returns the value of thehostGatewayrecord component.- Returns:
- the value of the
hostGatewayrecord component
-
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
readOnly
Returns the value of thereadOnlyrecord component.- Returns:
- the value of the
readOnlyrecord component
-
capDrop
-
securityOpt
-
command
-
driver
Returns the value of thedriverrecord component.- Returns:
- the value of the
driverrecord component
-
registryInsecure
Returns the value of theregistryInsecurerecord component.- Returns:
- the value of the
registryInsecurerecord component
-