artifacts

package
v0.0.93 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GlobMany added in v0.0.44

func GlobMany(dir string, patterns []string) (map[string]GlobEntry, error)

GlobMany performs a glob on many patterns and returns a set of entries (path and file info header) The resulting set of entries is unique by filepath

func PackageModule added in v0.0.44

func PackageModule(dir, filename string, patterns []string, excludeFn func(entry GlobEntry) bool) error

PackageModule creates a tar.gz containing the module files 'filename' allows a developer to specify where to write the tar.gz 'patterns' allows a developer to specify which file patterns are included in the tar.gz This is more effective than the built-in tar command because it won't fail if a pattern doesn't match any files

Types

type GlobEntry added in v0.0.44

type GlobEntry struct {
	Pattern string
	Path    string
	Info    fs.FileInfo
}

type Targzer added in v0.0.44

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

func NewTargzer added in v0.0.44

func NewTargzer(w io.Writer, name string) *Targzer

func (Targzer) AddFile added in v0.0.44

func (t Targzer) AddFile(header *tar.Header, r io.Reader) error

func (*Targzer) Close added in v0.0.44

func (t *Targzer) Close()

Jump to

Keyboard shortcuts

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