java.lang.Object
cn.taketoday.buildpack.platform.docker.type.Binding

public final class Binding extends Object
Volume bindings to apply when creating a container.
从以下版本开始:
4.0
作者:
Scott Frederick, Harry Yang
  • 字段详细资料

    • value

      private final String value
  • 构造器详细资料

    • Binding

      private Binding(String value)
  • 方法详细资料

    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • of

      public static Binding of(String value)
      Create a Binding with the specified value containing a host source, container destination, and options.
      参数:
      value - the volume binding value
      返回:
      a new Binding instance
    • from

      public static Binding from(VolumeName sourceVolume, String destination)
      Create a Binding from the specified source and destination.
      参数:
      sourceVolume - the volume binding host source
      destination - the volume binding container destination
      返回:
      a new Binding instance
    • from

      public static Binding from(String source, String destination)
      Create a Binding from the specified source and destination.
      参数:
      source - the volume binding host source
      destination - the volume binding container destination
      返回:
      a new Binding instance