Class LayerId
java.lang.Object
org.springframework.boot.buildpack.platform.docker.type.LayerId
A layer ID as used inside a Docker image of the form
algorithm: hash
.- Since:
- 2.3.0
- Author:
- Phillip Webb
-
Method Summary
-
Method Details
-
getAlgorithm
Return the algorithm of layer.- Returns:
- the algorithm
-
getHash
Return the hash of the layer.- Returns:
- the layer hash
-
equals
-
hashCode
public int hashCode() -
toString
-
of
Create a newLayerId
with the specified value.- Parameters:
value
- the layer ID value of the formalgorithm: hash
- Returns:
- a new layer ID instance
-
ofSha256Digest
Create a newLayerId
from a SHA-256 digest.- Parameters:
digest
- the digest- Returns:
- a new layer ID instance
-