fileutil

package
v0.0.50 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compressor

type Compressor interface {
	// CompressFilesInDir returns path to a compressed file
	CompressFilesInDir(dir string) (path string, err error)

	DecompressFileToDir(path string, dir string, options CompressorOptions) (err error)

	// CleanUp cleans up compressed file after it was used
	CleanUp(path string) error
}

func NewTarballCompressor

func NewTarballCompressor(
	cmdRunner boshsys.CmdRunner,
	fs boshsys.FileSystem,
) Compressor

type CompressorOptions

type CompressorOptions struct {
	SameOwner bool
}

type Copier

type Copier interface {
	FilteredCopyToTemp(dir string, filters []string) (tempDir string, err error)
	CleanUp(tempDir string)
}

func NewCpCopier

func NewCpCopier(
	cmdRunner boshsys.CmdRunner,
	fs boshsys.FileSystem,
	logger boshlog.Logger,
) Copier

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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