Documentation ¶
Index ¶
- type Bundle
- type BundleCollection
- type BundleDefinition
- type FileBundle
- func (b FileBundle) Disable() error
- func (b FileBundle) Enable() (boshsys.FileSystem, string, error)
- func (b FileBundle) GetInstallPath() (boshsys.FileSystem, string, error)
- func (b FileBundle) Install(sourcePath string) (boshsys.FileSystem, string, error)
- func (b FileBundle) InstallWithoutContents() (boshsys.FileSystem, string, error)
- func (b FileBundle) IsInstalled() (bool, error)
- func (b FileBundle) Uninstall() error
- type FileBundleCollection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundle ¶
type Bundle interface { Install(sourcePath string) (fs boshsys.FileSystem, path string, err error) InstallWithoutContents() (fs boshsys.FileSystem, path string, err error) Uninstall() (err error) IsInstalled() (bool, error) GetInstallPath() (fs boshsys.FileSystem, path string, err error) Enable() (fs boshsys.FileSystem, path string, err error) Disable() (err error) }
type BundleCollection ¶
type BundleCollection interface { Get(defintion BundleDefinition) (bundle Bundle, err error) List() ([]Bundle, error) }
type BundleDefinition ¶
BundleDefinition uniquely identifies an asset within a BundleCollection (e.g. Job, Package)
type FileBundle ¶
type FileBundle struct {
// contains filtered or unexported fields
}
func NewFileBundle ¶
func NewFileBundle( installPath, enablePath string, fs boshsys.FileSystem, logger boshlog.Logger, ) FileBundle
func (FileBundle) Disable ¶
func (b FileBundle) Disable() error
func (FileBundle) Enable ¶
func (b FileBundle) Enable() (boshsys.FileSystem, string, error)
func (FileBundle) GetInstallPath ¶
func (b FileBundle) GetInstallPath() (boshsys.FileSystem, string, error)
func (FileBundle) Install ¶
func (b FileBundle) Install(sourcePath string) (boshsys.FileSystem, string, error)
func (FileBundle) InstallWithoutContents ¶
func (b FileBundle) InstallWithoutContents() (boshsys.FileSystem, string, error)
func (FileBundle) IsInstalled ¶
func (b FileBundle) IsInstalled() (bool, error)
func (FileBundle) Uninstall ¶
func (b FileBundle) Uninstall() error
type FileBundleCollection ¶
type FileBundleCollection struct {
// contains filtered or unexported fields
}
func NewFileBundleCollection ¶
func NewFileBundleCollection( installPath, enablePath, name string, fs boshsys.FileSystem, logger boshlog.Logger, ) FileBundleCollection
func (FileBundleCollection) Get ¶
func (bc FileBundleCollection) Get(definition BundleDefinition) (Bundle, error)
func (FileBundleCollection) List ¶
func (bc FileBundleCollection) List() ([]Bundle, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.