imagetar

package
v0.26.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageLayerWriterFilter

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

func NewImageLayerWriterCheck

func NewImageLayerWriterCheck(includeNonDistributable bool) ImageLayerWriterFilter

func (ImageLayerWriterFilter) ShouldLayerBeIncluded

func (f ImageLayerWriterFilter) ShouldLayerBeIncluded(layer regv1.Layer) (bool, error)

type Logger

type Logger interface {
	WriteStr(str string, args ...interface{}) error
}

type TarReader

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

func NewTarReader

func NewTarReader(path string) TarReader

func (TarReader) Read

func (r TarReader) Read() ([]imagedesc.ImageOrIndex, error)

type TarWriter

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

func NewTarWriter

func NewTarWriter(ids *imagedesc.ImageRefDescriptors, dstOpener func() (io.WriteCloser, error), opts TarWriterOpts, ui goui.UI, imageLayerWriterCheck ImageLayerWriterFilter) *TarWriter

NewTarWriter constructor returning a mechanism to write image refs / layers to a tarball on disk.

func (*TarWriter) Write

func (w *TarWriter) Write() error

type TarWriterOpts

type TarWriterOpts struct {
	Concurrency int
}

Jump to

Keyboard shortcuts

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