extract

package
v0.0.0-...-89ee09f Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extractor

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

func NewExtractor

func NewExtractor(imageRepo *ImageRepo, manifestParser *ManifestParser, imageConfigParser *ImageConfigParser, layerReformatter *layer.LayerReformatter) *Extractor

func (*Extractor) ExtractLayerToPath

func (e *Extractor) ExtractLayerToPath(imagePath, imageTarballLayerPath, layerPath string, extractorOptions *ExtractorOptions) error

func (*Extractor) GetImageLayerInfos

func (e *Extractor) GetImageLayerInfos(imagePath string) ([]*layerInfo, error)

type ExtractorOptions

type ExtractorOptions struct {
	StripPax bool
}

type ImageConfigParser

type ImageConfigParser struct{}

func NewImageConfigParser

func NewImageConfigParser() *ImageConfigParser

func (*ImageConfigParser) HistoryCommands

func (p *ImageConfigParser) HistoryCommands(imageConfigBuffer *bytes.Buffer) ([]string, error)

func (*ImageConfigParser) LayerIDs

func (p *ImageConfigParser) LayerIDs(imageConfigBuffer *bytes.Buffer) ([]string, error)

type ImageRepo

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

func NewImageRepo

func NewImageRepo() *ImageRepo

func (*ImageRepo) Copy

func (i *ImageRepo) Copy(imagePath, filename string, writer io.Writer) error

type ManifestParser

type ManifestParser struct{}

func NewManifestParser

func NewManifestParser() *ManifestParser

func (*ManifestParser) ImageConfigFilename

func (p *ManifestParser) ImageConfigFilename(manifestBuffer *bytes.Buffer) (string, error)

func (*ManifestParser) LayerPaths

func (p *ManifestParser) LayerPaths(manifestBuffer *bytes.Buffer) ([]string, error)

Jump to

Keyboard shortcuts

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