containerwriter

package
v0.0.0-...-04e5504 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerTarWriter

type ContainerTarWriter struct {
	// contains filtered or unexported fields
}

ContainerTarWriter provides a TarWriter implementation that handles ID shifting and hardlink tracking for containers

func NewContainerTarWriter

func NewContainerTarWriter(writer io.Writer, idmapSet *idmap.IdmapSet) *ContainerTarWriter

NewContainerTarWriter returns a ContainerTarWriter for the provided target Writer and id map

func (*ContainerTarWriter) Close

func (ctw *ContainerTarWriter) Close() error

Close finishes writing the tarball

func (*ContainerTarWriter) WriteFile

func (ctw *ContainerTarWriter) WriteFile(offset int, path string, fi os.FileInfo) error

WriteFile adds a file to the tarball

Jump to

Keyboard shortcuts

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