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.
  • 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 a DevContainerConfig record class.
      Parameters:
      image - the value for the image record component
      runtime - the value for the runtime record component
      pull - the value for the pull record component
      ports - the value for the ports record component
      mounts - the value for the mounts record component
      network - the value for the network record component
      hostGateway - the value for the hostGateway record component
      user - the value for the user record component
      readOnly - the value for the readOnly record component
      capDrop - the value for the capDrop record component
      securityOpt - the value for the securityOpt record component
      command - the value for the command record component
      driver - the value for the driver record component
      registryInsecure - the value for the registryInsecure record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • image

      public String image()
      Returns the value of the image record component.
      Returns:
      the value of the image record component
    • runtime

      public String runtime()
      Returns the value of the runtime record component.
      Returns:
      the value of the runtime record component
    • pull

      public String pull()
      Returns the value of the pull record component.
      Returns:
      the value of the pull record component
    • ports

      public Map<String,Integer> ports()
      Returns the value of the ports record component.
      Returns:
      the value of the ports record component
    • mounts

      public List<DevContainerConfig.Mount> mounts()
      Returns the value of the mounts record component.
      Returns:
      the value of the mounts record component
    • network

      public String network()
      Returns the value of the network record component.
      Returns:
      the value of the network record component
    • hostGateway

      public String hostGateway()
      Returns the value of the hostGateway record component.
      Returns:
      the value of the hostGateway record component
    • user

      public String user()
      Returns the value of the user record component.
      Returns:
      the value of the user record component
    • readOnly

      public Boolean readOnly()
      Returns the value of the readOnly record component.
      Returns:
      the value of the readOnly record component
    • capDrop

      public List<String> capDrop()
      Returns the value of the capDrop record component.
      Returns:
      the value of the capDrop record component
    • securityOpt

      public List<String> securityOpt()
      Returns the value of the securityOpt record component.
      Returns:
      the value of the securityOpt record component
    • command

      public List<String> command()
      Returns the value of the command record component.
      Returns:
      the value of the command record component
    • driver

      public String driver()
      Returns the value of the driver record component.
      Returns:
      the value of the driver record component
    • registryInsecure

      public Boolean registryInsecure()
      Returns the value of the registryInsecure record component.
      Returns:
      the value of the registryInsecure record component