Documentation ¶
Overview ¶
Package workflow is a generated GoMock package.
Package workflow is a generated GoMock package.
Index ¶
- Variables
- type AddRepository
- type AddRepositoryConfig
- type Executor
- type Install
- type InstallConfig
- type Installer
- type MockExecutor
- type MockExecutorMockRecorder
- type MockInstaller
- type MockInstallerMockRecorder
- type Uninstall
- type UninstallConfig
- type Update
- type UpdateConfig
- type UpdateRepository
- type UpdateRepositoryConfig
- type Upgrade
- type UpgradeConfig
- type UpgradeVM
- type UpgradeVMConfig
- type VMInstaller
- type VMInstallerConfig
- type Workflow
Constants ¶
This section is empty.
Variables ¶
var ErrAlreadyUpdated = errors.New("already up-to-date")
Functions ¶
This section is empty.
Types ¶
type AddRepository ¶
type AddRepository struct {
// contains filtered or unexported fields
}
func NewAddRepository ¶
func NewAddRepository(config AddRepositoryConfig) *AddRepository
func (AddRepository) Execute ¶
func (a AddRepository) Execute() error
type AddRepositoryConfig ¶
type AddRepositoryConfig struct { SourcesList storage.Storage[storage.SourceInfo] Alias, URL string Branch plumbing.ReferenceName }
type Install ¶
type Install struct {
// contains filtered or unexported fields
}
func NewInstall ¶
func NewInstall(config InstallConfig) *Install
type InstallConfig ¶
type MockExecutor ¶
type MockExecutor struct {
// contains filtered or unexported fields
}
MockExecutor is a mock of Executor interface.
func NewMockExecutor ¶
func NewMockExecutor(ctrl *gomock.Controller) *MockExecutor
NewMockExecutor creates a new mock instance.
func (*MockExecutor) EXPECT ¶
func (m *MockExecutor) EXPECT() *MockExecutorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExecutor) Execute ¶
func (m *MockExecutor) Execute(arg0 Workflow) error
Execute mocks base method.
type MockExecutorMockRecorder ¶
type MockExecutorMockRecorder struct {
// contains filtered or unexported fields
}
MockExecutorMockRecorder is the mock recorder for MockExecutor.
func (*MockExecutorMockRecorder) Execute ¶
func (mr *MockExecutorMockRecorder) Execute(arg0 interface{}) *gomock.Call
Execute indicates an expected call of Execute.
type MockInstaller ¶
type MockInstaller struct {
// contains filtered or unexported fields
}
MockInstaller is a mock of Installer interface.
func NewMockInstaller ¶
func NewMockInstaller(ctrl *gomock.Controller) *MockInstaller
NewMockInstaller creates a new mock instance.
func (*MockInstaller) Decompress ¶
func (m *MockInstaller) Decompress(source, dest string) error
Decompress mocks base method.
func (*MockInstaller) Download ¶
func (m *MockInstaller) Download(url, path string) error
Download mocks base method.
func (*MockInstaller) EXPECT ¶
func (m *MockInstaller) EXPECT() *MockInstallerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockInstallerMockRecorder ¶
type MockInstallerMockRecorder struct {
// contains filtered or unexported fields
}
MockInstallerMockRecorder is the mock recorder for MockInstaller.
func (*MockInstallerMockRecorder) Decompress ¶
func (mr *MockInstallerMockRecorder) Decompress(source, dest interface{}) *gomock.Call
Decompress indicates an expected call of Decompress.
func (*MockInstallerMockRecorder) Download ¶
func (mr *MockInstallerMockRecorder) Download(url, path interface{}) *gomock.Call
Download indicates an expected call of Download.
func (*MockInstallerMockRecorder) Install ¶
func (mr *MockInstallerMockRecorder) Install(workingDir interface{}, args ...interface{}) *gomock.Call
Install indicates an expected call of Install.
type Uninstall ¶
type Uninstall struct {
// contains filtered or unexported fields
}
func NewUninstall ¶
func NewUninstall(config UninstallConfig) *Uninstall
type UninstallConfig ¶
type Update ¶
type Update struct {
// contains filtered or unexported fields
}
func NewUpdate ¶
func NewUpdate(config UpdateConfig) *Update
type UpdateConfig ¶
type UpdateConfig struct { Executor Executor Registry storage.Storage[storage.RepoList] InstalledVMs storage.Storage[storage.InstallInfo] SourcesList storage.Storage[storage.SourceInfo] DB database.Database TmpPath string PluginPath string Installer Installer RepositoriesPath string Auth http.BasicAuth GitFactory git.Factory RepoFactory storage.RepositoryFactory Fs afero.Fs }
type UpdateRepository ¶
type UpdateRepository struct {
// contains filtered or unexported fields
}
func NewUpdateRepository ¶
func NewUpdateRepository(config UpdateRepositoryConfig) *UpdateRepository
func (*UpdateRepository) Execute ¶
func (u *UpdateRepository) Execute() error
type UpdateRepositoryConfig ¶
type UpdateRepositoryConfig struct { RepoName string RepositoryPath string AliasBytes []byte PreviousCommit plumbing.Hash LatestCommit plumbing.Hash SourceInfo storage.SourceInfo Repository storage.Repository Registry storage.Storage[storage.RepoList] SourcesList storage.Storage[storage.SourceInfo] Fs afero.Fs }
type Upgrade ¶
type Upgrade struct {
// contains filtered or unexported fields
}
func NewUpgrade ¶
func NewUpgrade(config UpgradeConfig) *Upgrade
type UpgradeConfig ¶
type UpgradeVM ¶
type UpgradeVM struct {
// contains filtered or unexported fields
}
func NewUpgradeVM ¶
func NewUpgradeVM(config UpgradeVMConfig) *UpgradeVM
type UpgradeVMConfig ¶
type VMInstaller ¶
func NewVMInstaller ¶
func NewVMInstaller(config VMInstallerConfig) *VMInstaller
func (VMInstaller) Decompress ¶
func (t VMInstaller) Decompress(source string, dest string) error