expander

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseExpanders

func BaseExpanders(filesLimit int, fileSizeLimit int64) map[string]Expander

BaseExpanders creates the set of base expanders that are used to expand the different types of files

Types

type Expander

type Expander interface {
	Expand(src, dst string, dir bool, mode os.FileMode) error
}

Expander is an interface which defines the methods that an expander must implement in order expand a type

type TarExpander

type TarExpander struct {
	FileSizeLimit int64
	FilesLimit    int
}

func (*TarExpander) Expand

func (t *TarExpander) Expand(dst, src string, dir bool, umask os.FileMode) error

Jump to

Keyboard shortcuts

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