Versions in this module Expand all Collapse all v0 v0.1.0 Apr 17, 2025 Changes in this version + var ErrAlreadyUpdated = errors.New("already up-to-date") + type AddRepository struct + func NewAddRepository(config AddRepositoryConfig) *AddRepository + func (a AddRepository) Execute() error + type AddRepositoryConfig struct + Alias string + Branch plumbing.ReferenceName + SourcesList map[string]*state.SourceInfo + URL string + type Executor interface + Execute func(Workflow) error + type Install struct + func NewInstall(config InstallConfig) *Install + func (i Install) Execute() error + type InstallConfig struct + Fs afero.Fs + Installer Installer + Name string + Organization string + Plugin string + PluginPath string + Repo string + Repository state.Repository + StateFile state.File + TmpPath string + type Installer interface + Decompress func(source string, dest string) error + Download func(url string, path string) error + Install func(workingDir string, args ...string) error + type MockExecutor struct + func NewMockExecutor(ctrl *gomock.Controller) *MockExecutor + func (m *MockExecutor) EXPECT() *MockExecutorMockRecorder + func (m *MockExecutor) Execute(arg0 Workflow) error + type MockExecutorMockRecorder struct + func (mr *MockExecutorMockRecorder) Execute(arg0 interface{}) *gomock.Call + type MockInstaller struct + func NewMockInstaller(ctrl *gomock.Controller) *MockInstaller + func (m *MockInstaller) Decompress(source, dest string) error + func (m *MockInstaller) Download(url, path string) error + func (m *MockInstaller) EXPECT() *MockInstallerMockRecorder + func (m *MockInstaller) Install(workingDir string, args ...string) error + type MockInstallerMockRecorder struct + func (mr *MockInstallerMockRecorder) Decompress(source, dest interface{}) *gomock.Call + func (mr *MockInstallerMockRecorder) Download(url, path interface{}) *gomock.Call + func (mr *MockInstallerMockRecorder) Install(workingDir interface{}, args ...interface{}) *gomock.Call + type RemoveRepository struct + func NewRemoveRepository(config RemoveRepositoryConfig) *RemoveRepository + func (r RemoveRepository) Execute() error + type RemoveRepositoryConfig struct + Alias string + RepositoriesPath string + SourcesList map[string]*state.SourceInfo + type Uninstall struct + func NewUninstall(config UninstallConfig) *Uninstall + func (u Uninstall) Execute() error + type UninstallConfig struct + Fs afero.Fs + Name string + Plugin string + PluginPath string + RepoAlias string + StateFile state.File + type Update struct + func NewUpdate(config UpdateConfig) *Update + func (u Update) Execute() error + type UpdateConfig struct + Auth http.BasicAuth + Executor Executor + Fs afero.Fs + Git git.Factory + Installer Installer + PluginPath string + RepoFactory state.RepositoryFactory + RepositoriesPath string + StateFile state.File + TmpPath string + type Upgrade struct + func NewUpgrade(config UpgradeConfig) *Upgrade + func (u *Upgrade) Execute() error + type UpgradeConfig struct + Executor Executor + Fs afero.Fs + Git git.Factory + Installer Installer + PluginPath string + RepoFactory state.RepositoryFactory + StateFile state.File + TmpPath string + type UpgradeVM struct + func NewUpgradeVM(config UpgradeVMConfig) *UpgradeVM + func (u *UpgradeVM) Execute() error + type UpgradeVMConfig struct + Executor Executor + Fs afero.Fs + FullVMName string + Git git.Factory + Installer Installer + PluginPath string + RepoFactory state.RepositoryFactory + StateFile state.File + TmpPath string + type VMInstaller struct + func NewVMInstaller(config VMInstallerConfig) *VMInstaller + func (t VMInstaller) Decompress(source string, dest string) error + func (t VMInstaller) Install(workingDir string, args ...string) error + type VMInstallerConfig struct + Fs afero.Fs + URLClient url.Client + type Workflow interface + Execute func() error