fakes

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: May 28, 2015 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCompressor

type FakeCompressor struct {
	CompressFilesInDirDir         string
	CompressFilesInDirTarballPath string
	CompressFilesInDirErr         error

	DecompressFileToDirTarballPaths []string
	DecompressFileToDirDirs         []string
	DecompressFileToDirOptions      []boshcmd.CompressorOptions
	DecompressFileToDirErr          error
	DecompressFileToDirCallBack     func()

	CleanUpTarballPath string
	CleanUpErr         error
}

func NewFakeCompressor

func NewFakeCompressor() *FakeCompressor

func (*FakeCompressor) CleanUp

func (fc *FakeCompressor) CleanUp(tarballPath string) error

func (*FakeCompressor) CompressFilesInDir

func (fc *FakeCompressor) CompressFilesInDir(dir string) (string, error)

func (*FakeCompressor) DecompressFileToDir

func (fc *FakeCompressor) DecompressFileToDir(tarballPath string, dir string, options boshcmd.CompressorOptions) (err error)

type FakeCopier

type FakeCopier struct {
	FilteredCopyToTempTempDir string
	FilteredCopyToTempError   error
	FilteredCopyToTempDir     string
	FilteredCopyToTempFilters []string

	CleanUpTempDir string
}

func NewFakeCopier

func NewFakeCopier() (copier *FakeCopier)

func (*FakeCopier) CleanUp

func (c *FakeCopier) CleanUp(tempDir string)

func (*FakeCopier) FilteredCopyToTemp

func (c *FakeCopier) FilteredCopyToTemp(dir string, filters []string) (tempDir string, err error)

Jump to

Keyboard shortcuts

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