Versions in this module Expand all Collapse all v1 v1.0.1 Jul 6, 2015 Changes in this version type FakeDocker + func (f *FakeDocker) CheckAndPullImage(name string) (*dockerclient.Image, error) + func (f *FakeDocker) CheckImage(name string) (*dockerclient.Image, error) type FakeGit + func (f *FakeGit) GetInfo(repo string) *api.SourceInfo v0 v0.5.1 May 18, 2015 Changes in this version + type FakeCallbackInvoker struct + CallbackURL string + Messages []string + Result []string + Success bool + func (f *FakeCallbackInvoker) ExecuteCallback(callbackURL string, success bool, messages []string) []string + type FakeCmdRunner struct + Args []string + Err error + Name string + Opts util.CommandOpts + func (f *FakeCmdRunner) Run(name string, args ...string) error + func (f *FakeCmdRunner) RunWithOptions(opts util.CommandOpts, name string, args ...string) error + type FakeDocker struct + BuildImageError error + BuildImageOpts docker.BuildImageOptions + CommitContainerError error + CommitContainerOpts docker.CommitContainerOptions + CommitContainerResult string + DefaultURLError error + DefaultURLImage string + DefaultURLResult string + GetImageIDError error + GetImageIDImage string + GetImageIDResult string + GetImageUserError error + GetImageUserImage string + GetImageUserResult string + LocalRegistryError error + LocalRegistryImage string + LocalRegistryResult bool + PullError error + PullResult bool + RemoveContainerError error + RemoveContainerID string + RemoveImageError error + RemoveImageName string + RunContainerCmd []string + RunContainerContainerID string + RunContainerError error + RunContainerErrorBeforeStart bool + RunContainerOpts docker.RunContainerOptions + func (f *FakeDocker) BuildImage(opts docker.BuildImageOptions) error + func (f *FakeDocker) CheckAndPull(name string) (*dockerclient.Image, error) + func (f *FakeDocker) CommitContainer(opts docker.CommitContainerOptions) (string, error) + func (f *FakeDocker) GetImageID(image string) (string, error) + func (f *FakeDocker) GetImageUser(image string) (string, error) + func (f *FakeDocker) GetScriptsURL(image string) (string, error) + func (f *FakeDocker) IsImageInLocalRegistry(imageName string) (bool, error) + func (f *FakeDocker) IsImageOnBuild(imageName string) bool + func (f *FakeDocker) PullImage(imageName string) (*dockerclient.Image, error) + func (f *FakeDocker) RemoveContainer(id string) error + func (f *FakeDocker) RemoveImage(name string) error + func (f *FakeDocker) RunContainer(opts docker.RunContainerOptions) error + type FakeDownloader struct + Err map[string]error + Target []string + URL []url.URL + func (f *FakeDownloader) Download(url *url.URL, target string) error + type FakeFile struct + Dir bool + FMode os.FileMode + FileName string + func (f *FakeFile) IsDir() bool + func (f *FakeFile) ModTime() time.Time + func (f *FakeFile) Mode() os.FileMode + func (f *FakeFile) Name() string + func (f *FakeFile) Size() int64 + func (f *FakeFile) Sys() interface{} + type FakeFileSystem struct + ChmodError map[string]error + ChmodFile []string + ChmodMode os.FileMode + CopyDest string + CopyError error + CopySource string + ExistsFile []string + ExistsResult map[string]bool + Files []os.FileInfo + MkdirAllDir []string + MkdirAllError error + MkdirDir string + MkdirError error + OpenCloseError error + OpenContent string + OpenError error + OpenFile string + OpenFileResult *FakeReadCloser + RemoveDirError error + RemoveDirName string + RenameError error + RenameFrom string + RenameTo string + WorkingDirCalled bool + WorkingDirError error + WorkingDirResult string + WriteFileContent string + WriteFileError error + WriteFileName string + func (f *FakeFileSystem) Chmod(file string, mode os.FileMode) error + func (f *FakeFileSystem) Copy(sourcePath, targetPath string) error + func (f *FakeFileSystem) CreateWorkingDirectory() (string, error) + func (f *FakeFileSystem) Exists(file string) bool + func (f *FakeFileSystem) Mkdir(dirname string) error + func (f *FakeFileSystem) MkdirAll(dirname string) error + func (f *FakeFileSystem) Open(file string) (io.ReadCloser, error) + func (f *FakeFileSystem) ReadDir(p string) ([]os.FileInfo, error) + func (f *FakeFileSystem) RemoveDirectory(dir string) error + func (f *FakeFileSystem) Rename(from, to string) error + func (f *FakeFileSystem) Stat(p string) (os.FileInfo, error) + func (f *FakeFileSystem) WriteFile(file string, data []byte) error + type FakeGit struct + CheckoutError error + CheckoutRef string + CheckoutRepo string + CloneError error + CloneSource string + CloneTarget string + ValidCloneSpecResult bool + ValidCloneSpecSource string + func (f *FakeGit) Checkout(repo, ref string) error + func (f *FakeGit) Clone(source, target string) error + func (f *FakeGit) ValidCloneSpec(source string) bool + type FakeInstaller struct + DstDir []string + Error error + Scripts [][]string + func (f *FakeInstaller) InstallOptional(scripts []string, dstDir string) []api.InstallResult + func (f *FakeInstaller) InstallRequired(scripts []string, dstDir string) ([]api.InstallResult, error) + type FakeReadCloser struct + CloseCalled bool + CloseError error + func (f *FakeReadCloser) Close() error + type FakeTar struct + CreateTarBase string + CreateTarDir string + CreateTarError error + CreateTarResult string + ExtractTarDir string + ExtractTarError error + ExtractTarReader io.Reader + func (f *FakeTar) CreateTarFile(base, dir string) (string, error) + func (f *FakeTar) ExtractTarStream(dir string, reader io.Reader) error