Documentation ¶
Index ¶
- type BundleKey
- type FakeBundle
- func (s *FakeBundle) Disable() error
- func (s *FakeBundle) Enable() (boshsys.FileSystem, string, error)
- func (s *FakeBundle) GetInstallPath() (boshsys.FileSystem, string, error)
- func (s *FakeBundle) Install(sourcePath string) (boshsys.FileSystem, string, error)
- func (s *FakeBundle) InstallWithoutContents() (boshsys.FileSystem, string, error)
- func (s *FakeBundle) IsInstalled() (bool, error)
- func (s *FakeBundle) Uninstall() error
- type FakeBundleCollection
- type FakeBundleInstallCallBack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleKey ¶
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)
type FakeBundleInstallCallBack ¶
type FakeBundleInstallCallBack func()
Click to show internal directories.
Click to hide internal directories.