archive

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WalkTarGzFiles added in v0.5.0

func WalkTarGzFiles(ctx context.Context, path string, walkFn FileWalkFn) (err error)

func WalkZipFiles added in v0.5.0

func WalkZipFiles(ctx context.Context, path string, walkFn FileWalkFn) (err error)

Types

type FileWalkFn added in v0.5.0

type FileWalkFn func(ctx context.Context, path string, size int64, contents io.Reader) (proceed bool, err error)

FileWalkFn is called by a WalkFn on each file contained in an archive.

type WalkFn added in v0.5.0

type WalkFn func(ctx context.Context, path string, walkFn FileWalkFn) error

A WalkFn iterates through an archive, calling FileWalkFn on each member file.

Jump to

Keyboard shortcuts

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