接口的使用
cn.taketoday.buildpack.platform.docker.UpdateListener
使用UpdateListener的程序包
程序包
说明
A limited Docker API providing the operations needed by pack.
-
cn.taketoday.buildpack.platform.docker中UpdateListener的使用
修饰符和类型类说明private static final classUpdateListenerused to capture the image digest.private static final classUpdateListenerused to capture the details of an error in a response stream.private static final classUpdateListenerused to ensure an image load response stream.classTotalProgressListener<E extends ImageProgressUpdateEvent>UpdateListenerthat calculates the total progress of the entire image operation and publishesTotalProgressEvent.classUpdateListenerthat calculates the total progress of the entire pull operation and publishesTotalProgressEvent.classUpdateListenerthat calculates the total progress of the entire push operation and publishesTotalProgressEvent.修饰符和类型方法说明static <E extends UpdateEvent>
UpdateListener<E>UpdateListener.none()A no-op update listener that does nothing.修饰符和类型方法说明voidDockerApi.ImageApi.load(ImageArchive archive, UpdateListener<LoadImageUpdateEvent> listener) Load anImageArchiveinto Docker.voidDockerApi.ContainerApi.logs(ContainerReference reference, UpdateListener<LogUpdateEvent> listener) Return and follow logs for a specific container.DockerApi.ImageApi.pull(ImageReference reference, UpdateListener<PullImageUpdateEvent> listener) Pull an image from a registry.DockerApi.ImageApi.pull(ImageReference reference, UpdateListener<PullImageUpdateEvent> listener, String registryAuth) Pull an image from a registry.voidDockerApi.ImageApi.push(ImageReference reference, UpdateListener<PushImageUpdateEvent> listener, String registryAuth) Push an image to a registry.