类 VolumeName
java.lang.Object
cn.taketoday.buildpack.platform.docker.type.VolumeName
A Docker volume name.
- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb, Harry Yang
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static StringasHexString(byte[] digest, int digestLength) static <S> VolumeNameFactory method to create a newVolumeNamebased on an object.static <S> VolumeNameFactory method to create a newVolumeNamebased on an object.booleanprivate static StringinthashCode()static VolumeNameFactory method to create aVolumeNamewith a specific value.static VolumeNameFactory method to create a newVolumeNamewith a random name.static VolumeNameFactory method to create a newVolumeNamewith a random name.toString()
-
字段详细资料
-
value
-
-
构造器详细资料
-
VolumeName
-
-
方法详细资料
-
equals
-
hashCode
public int hashCode() -
toString
-
random
Factory method to create a newVolumeNamewith a random name.- 参数:
prefix- the prefix to use with the random name- 返回:
- a randomly named volume
-
random
Factory method to create a newVolumeNamewith a random name.- 参数:
prefix- the prefix to use with the random namerandomLength- the number of chars in the random part of the name- 返回:
- a randomly named volume reference
-
basedOn
Factory method to create a newVolumeNamebased on an object. The resulting name will be based off a SHA-256 digest of the given object'stoString()method.- 类型参数:
S- the source object type- 参数:
source- the source objectprefix- the prefix to use with the volume namesuffix- the suffix to use with the volume namedigestLength- the number of chars in the digest part of the name- 返回:
- a name based off the image reference
-
basedOn
public static <S> VolumeName basedOn(S source, Function<S, String> nameExtractor, String prefix, String suffix, int digestLength) Factory method to create a newVolumeNamebased on an object. The resulting name will be based off a SHA-256 digest of the given object's name.- 类型参数:
S- the source object type- 参数:
source- the source objectnameExtractor- a method to extract the name of the objectprefix- the prefix to use with the volume namesuffix- the suffix to use with the volume namedigestLength- the number of chars in the digest part of the name- 返回:
- a name based off the image reference
-
getDigest
-
asHexString
-
of
Factory method to create aVolumeNamewith a specific value.- 参数:
value- the volume reference value- 返回:
- a new
VolumeNameinstance
-