commands

package
v0.0.0-...-9a89ba0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCpCopier

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

func NewTarballCompressor

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

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
}

type CompressorOptions

type CompressorOptions struct {
	SameOwner bool
}

type Copier

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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