imagetar

package
v0.43.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 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 {
	Logf(str string, args ...interface{})
}

type TarReader

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

func NewTarReader

func NewTarReader(path string) TarReader

func (TarReader) PresentLayers

func (r TarReader) PresentLayers() ([]v1.Layer, error)

PresentLayers retrieves all the layers that are present in a tar file

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, logger Logger, imageLayerWriterCheck ImageLayerWriterFilter,
	layersFromOtherSource []regv1.Layer) *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