类 Layer
java.lang.Object
cn.taketoday.buildpack.platform.docker.type.Layer
- 所有已实现的接口:
Content
A layer that can be written to an
ImageArchive.- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static LayerfromTarArchive(TarArchive tarArchive) Factory method to create a newLayerfrom aTarArchive.getId()Return the ID of the layer.static Layerof(IOConsumer<Layout> layout) intsize()The size of the content in bytes.voidwriteTo(OutputStream outputStream) Write the content to the given output stream.
-
字段详细资料
-
-
id
-
-
构造器详细资料
-
Layer
Layer(TarArchive tarArchive) throws NoSuchAlgorithmException, IOException
-
-
方法详细资料
-
getId
Return the ID of the layer.- 返回:
- the layer ID
-
size
public int size()从接口复制的说明:ContentThe size of the content in bytes. -
writeTo
从接口复制的说明:ContentWrite the content to the given output stream.- 指定者:
writeTo在接口中Content- 参数:
outputStream- the output stream to write to- 抛出:
IOException- on IO error
-
of
- 参数:
layout- the layer layout- 返回:
- a new layer instance
- 抛出:
IOException- on IO error
-
fromTarArchive
Factory method to create a newLayerfrom aTarArchive.- 参数:
tarArchive- the contents of the layer- 返回:
- a new layer instance
- 抛出:
IOException- on error
-