fakes

package
v0.0.34 Latest Latest
Warning

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

Go to latest
Published: May 19, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BundleKey

type BundleKey struct {
	Name    string
	Version string
}

func NewBundleKey

func NewBundleKey(definition bc.BundleDefinition) BundleKey

type FakeBundle

type FakeBundle struct {
	ActionsCalled []string

	InstallSourcePath string
	InstallCallBack   FakeBundleInstallCallBack
	InstallFs         boshsys.FileSystem
	InstallPath       string
	InstallError      error
	Installed         bool

	IsInstalledErr error

	GetDirPath  string
	GetDirFs    boshsys.FileSystem
	GetDirError error

	EnablePath  string
	EnableFs    boshsys.FileSystem
	EnableError error
	Enabled     bool

	DisableErr error

	UninstallErr error
}

func NewFakeBundle

func NewFakeBundle() (bundle *FakeBundle)

func (*FakeBundle) Disable

func (s *FakeBundle) Disable() error

func (*FakeBundle) Enable

func (s *FakeBundle) Enable() (boshsys.FileSystem, string, error)

func (*FakeBundle) GetInstallPath

func (s *FakeBundle) GetInstallPath() (boshsys.FileSystem, string, error)

func (*FakeBundle) Install

func (s *FakeBundle) Install(sourcePath string) (boshsys.FileSystem, string, error)

func (*FakeBundle) InstallWithoutContents

func (s *FakeBundle) InstallWithoutContents() (boshsys.FileSystem, string, error)

func (*FakeBundle) IsInstalled

func (s *FakeBundle) IsInstalled() (bool, error)

func (*FakeBundle) Uninstall

func (s *FakeBundle) Uninstall() error

type FakeBundleCollection

type FakeBundleCollection struct {
	ListBundles []bc.Bundle
	ListErr     error
	GetErr      error
	// contains filtered or unexported fields
}

func NewFakeBundleCollection

func NewFakeBundleCollection() *FakeBundleCollection

func (*FakeBundleCollection) FakeGet

func (s *FakeBundleCollection) FakeGet(definition bc.BundleDefinition) *FakeBundle

func (*FakeBundleCollection) Get

func (s *FakeBundleCollection) Get(definition bc.BundleDefinition) (bc.Bundle, error)

func (*FakeBundleCollection) List

func (s *FakeBundleCollection) List() ([]bc.Bundle, error)

type FakeBundleInstallCallBack

type FakeBundleInstallCallBack func()

Jump to

Keyboard shortcuts

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