untar

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntryResult

type EntryResult struct {
	Path      string // path on filesystem
	Digest    digest.Digest
	Finalizer func() error
}

func Entry

func Entry(ctx context.Context, root string, hdr *tar.Header, r io.Reader) (*EntryResult, error)

Entry untars a tar entry.

Entry contains a portion from https://github.com/containerd/containerd/blob/v1.7.3/archive/tar.go#L159-L327 .

Jump to

Keyboard shortcuts

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