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 RemoveRepository
- type RemoveRepositoryConfig
- type Uninstall
- type UninstallConfig
- type Update
- type UpdateConfig
- 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 map[string]*state.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 RemoveRepository ¶ added in v1.0.0
type RemoveRepository struct {
// contains filtered or unexported fields
}
func NewRemoveRepository ¶ added in v1.0.0
func NewRemoveRepository(config RemoveRepositoryConfig) *RemoveRepository
func (RemoveRepository) Execute ¶ added in v1.0.0
func (r RemoveRepository) Execute() error
type RemoveRepositoryConfig ¶ added in v1.0.0
type RemoveRepositoryConfig struct { SourcesList map[string]*state.SourceInfo RepositoriesPath string Alias string }
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 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