Versions in this module Expand all Collapse all v0 v0.6.0 Nov 8, 2019 v0.5.0 Jun 15, 2018 Changes in this version + type DeserializedTar struct + Content map[string]*TarEntry + Order []string + func NewDeserializedTar() *DeserializedTar + func (dt *DeserializedTar) Append(te *TarEntry) error + func (dt *DeserializedTar) Remove(p string) error + func (dt *DeserializedTar) Serialize(output io.Writer) (int64, error) + type DockerImageConfig struct + Architecture string + Config map[string]interface{} + Container string + ContainerConfig map[string]interface{} + Created string + DockerVersion string + History []map[string]interface{} + OS string + RootFS struct{ ... } + type DockerImageManifest struct + Config string + Layers []string + RepoTags []string + type DockerImageSquasher struct + func (dis *DockerImageSquasher) DeserializeTarStream(ctx context.Context, in io.Reader) (*DeserializedTar, int64, error) + func (dis *DockerImageSquasher) Squash(ctx context.Context, input io.Reader, output io.Writer) (*SquashInfo, error) + type DockerLayerJSON struct + Architecture string + Config map[string]interface{} + Container string + ContainerConfig map[string]interface{} + Created string + DockerVersion string + ID string + OS string + Parent string + type ImageSquasher interface + Squash func(context.Context, io.Reader, io.Writer) (*SquashInfo, error) + func NewDockerImageSquasher(logger *log.Logger) ImageSquasher + type SquashInfo struct + FilesRemoved []WhiteoutFile + FilesRemovedCount uint + InputBytes uint64 + LayersRemoved uint + OutputBytes uint64 + SizeDifference int64 + SizePctDifference float64 + type TarEntry struct + Contents []byte + Header *tar.Header + Index uint64 + type WhiteoutFile struct + Name string + Size uint64