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

public final class LayerId extends Object
A layer ID as used inside a Docker image of the form algorithm: hash.
从以下版本开始:
4.0
作者:
Phillip Webb
  • 字段详细资料

    • value

      private final String value
    • algorithm

      private final String algorithm
    • hash

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

  • 方法详细资料

    • getAlgorithm

      public String getAlgorithm()
      Return the algorithm of layer.
      返回:
      the algorithm
    • getHash

      public String getHash()
      Return the hash of the layer.
      返回:
      the layer hash
    • equals

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

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

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

      public static LayerId of(String value)
      Create a new LayerId with the specified value.
      参数:
      value - the layer ID value of the form algorithm: hash
      返回:
      a new layer ID instance
    • ofSha256Digest

      public static LayerId ofSha256Digest(byte[] digest)
      Create a new LayerId from a SHA-256 digest.
      参数:
      digest - the digest
      返回:
      a new layer ID instance