internal

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPythonRemovePatterns = []glob.Glob{
	glob.MustCompile("__pycache__"),
	glob.MustCompile("**/__pycache__"),
	glob.MustCompile("**.a"),
	glob.MustCompile("**.pdb"),
	glob.MustCompile("**.pyc"),
	glob.MustCompile("**/test_*.py"),
	glob.MustCompile("**/*.dist-info"),
}

Functions

func AddToTar

func AddToTar(tw *tar.Writer, pth string, name string, filter func(h *tar.Header, size int64) (*tar.Header, error)) error

func CleanupPythonDir

func CleanupPythonDir(dir string, keepPatterns []glob.Glob) error

func Exists

func Exists(path string) bool

func ExtractTarStream

func ExtractTarStream(r io.Reader, targetPath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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