Documentation ¶
Index ¶
- type Bundle
- type BundleCollection
- type BundleDefinition
- type FileBundle
- func (b FileBundle) Disable() error
- func (b FileBundle) Enable() (string, error)
- func (b FileBundle) GetInstallPath() (string, error)
- func (b FileBundle) Install(sourcePath, pathInBundle string) (string, error)
- func (b FileBundle) InstallWithoutContents() (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 BundleCollection ¶
type BundleCollection interface { Get(definition 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, fileMode os.FileMode, fs boshsys.FileSystem, timeProvider clock.Clock, compressor fileutil.Compressor, detector tarpath.Detector, logger boshlog.Logger, ) FileBundle
func (FileBundle) Disable ¶
func (b FileBundle) Disable() error
func (FileBundle) Enable ¶
func (b FileBundle) Enable() (string, error)
func (FileBundle) GetInstallPath ¶
func (b FileBundle) GetInstallPath() (string, error)
func (FileBundle) Install ¶
func (b FileBundle) Install(sourcePath, pathInBundle string) (string, error)
func (FileBundle) InstallWithoutContents ¶
func (b FileBundle) InstallWithoutContents() (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, fileMode os.FileMode, fs boshsys.FileSystem, timeProvider clock.Clock, compressor fileutil.Compressor, 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.