layer

package
v2.0.3+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DigestSize

func DigestSize(srcHub *registry.Registry, srcImage string, uploadLayer []digest.Digest) int64

DigestSize returns total upload size

func MissingLayers

func MissingLayers(destHub *registry.Registry, destImage string, srcLayers []manifestV1.FSLayer) []digest.Digest

MissingLayers computes list of layers required to be uploaded. Upload is optimized by skipping existing layers

func UploadLayer

func UploadLayer(destHub *registry.Registry, destImage string, srcHub *registry.Registry, srcImage string, layer digest.Digest)

UploadLayer uploads image layer with option to track upload progress

func UploadLayerWithProgress

func UploadLayerWithProgress(destHub *registry.Registry, destImage string, srcHub *registry.Registry, srcImage string, layer digest.Digest, totalReader *chan int64)

UploadLayerWithProgress uploads image layer with option to track upload progress

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL