Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockFactory
- func (m *MockFactory) EXPECT() *MockFactoryMockRecorder
- func (m *MockFactory) NewAcceptLeadership() (operation.Operation, error)
- func (m *MockFactory) NewAction(arg0 string) (operation.Operation, error)
- func (m *MockFactory) NewCommands(arg0 operation.CommandArgs, arg1 operation.CommandResponseFunc) (operation.Operation, error)
- func (m *MockFactory) NewFailAction(arg0 string) (operation.Operation, error)
- func (m *MockFactory) NewFinishUpgradeCharmProfile(arg0 *charm_v6.URL) (operation.Operation, error)
- func (m *MockFactory) NewInstall(arg0 *charm_v6.URL) (operation.Operation, error)
- func (m *MockFactory) NewNoOpFinishUpgradeSeries() (operation.Operation, error)
- func (m *MockFactory) NewNoOpUpgrade(arg0 *charm_v6.URL) (operation.Operation, error)
- func (m *MockFactory) NewResignLeadership() (operation.Operation, error)
- func (m *MockFactory) NewResolvedUpgrade(arg0 *charm_v6.URL) (operation.Operation, error)
- func (m *MockFactory) NewRevertUpgrade(arg0 *charm_v6.URL) (operation.Operation, error)
- func (m *MockFactory) NewRunHook(arg0 hook.Info) (operation.Operation, error)
- func (m *MockFactory) NewSkipHook(arg0 hook.Info) (operation.Operation, error)
- func (m *MockFactory) NewUpgrade(arg0 *charm_v6.URL) (operation.Operation, error)
- type MockFactoryMockRecorder
- func (mr *MockFactoryMockRecorder) NewAcceptLeadership() *gomock.Call
- func (mr *MockFactoryMockRecorder) NewAction(arg0 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) NewCommands(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) NewFailAction(arg0 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) NewFinishUpgradeCharmProfile(arg0 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) NewInstall(arg0 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) NewNoOpFinishUpgradeSeries() *gomock.Call
- func (mr *MockFactoryMockRecorder) NewNoOpUpgrade(arg0 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) NewResignLeadership() *gomock.Call
- func (mr *MockFactoryMockRecorder) NewResolvedUpgrade(arg0 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) NewRevertUpgrade(arg0 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) NewRunHook(arg0 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) NewSkipHook(arg0 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) NewUpgrade(arg0 interface{}) *gomock.Call
- type MockOperation
- func (m *MockOperation) Commit(arg0 operation.State) (*operation.State, error)
- func (m *MockOperation) EXPECT() *MockOperationMockRecorder
- func (m *MockOperation) Execute(arg0 operation.State) (*operation.State, error)
- func (m *MockOperation) NeedsGlobalMachineLock() bool
- func (m *MockOperation) Prepare(arg0 operation.State) (*operation.State, error)
- func (m *MockOperation) String() string
- type MockOperationMockRecorder
- func (mr *MockOperationMockRecorder) Commit(arg0 interface{}) *gomock.Call
- func (mr *MockOperationMockRecorder) Execute(arg0 interface{}) *gomock.Call
- func (mr *MockOperationMockRecorder) NeedsGlobalMachineLock() *gomock.Call
- func (mr *MockOperationMockRecorder) Prepare(arg0 interface{}) *gomock.Call
- func (mr *MockOperationMockRecorder) String() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFactory ¶
type MockFactory struct {
// contains filtered or unexported fields
}
MockFactory is a mock of Factory interface
func NewMockFactory ¶
func NewMockFactory(ctrl *gomock.Controller) *MockFactory
NewMockFactory creates a new mock instance
func (*MockFactory) EXPECT ¶
func (m *MockFactory) EXPECT() *MockFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockFactory) NewAcceptLeadership ¶
func (m *MockFactory) NewAcceptLeadership() (operation.Operation, error)
NewAcceptLeadership mocks base method
func (*MockFactory) NewAction ¶
func (m *MockFactory) NewAction(arg0 string) (operation.Operation, error)
NewAction mocks base method
func (*MockFactory) NewCommands ¶
func (m *MockFactory) NewCommands(arg0 operation.CommandArgs, arg1 operation.CommandResponseFunc) (operation.Operation, error)
NewCommands mocks base method
func (*MockFactory) NewFailAction ¶
func (m *MockFactory) NewFailAction(arg0 string) (operation.Operation, error)
NewFailAction mocks base method
func (*MockFactory) NewFinishUpgradeCharmProfile ¶
NewFinishUpgradeCharmProfile mocks base method
func (*MockFactory) NewInstall ¶
NewInstall mocks base method
func (*MockFactory) NewNoOpFinishUpgradeSeries ¶
func (m *MockFactory) NewNoOpFinishUpgradeSeries() (operation.Operation, error)
NewNoOpFinishUpgradeSeries mocks base method
func (*MockFactory) NewNoOpUpgrade ¶
NewNoOpUpgrade mocks base method
func (*MockFactory) NewResignLeadership ¶
func (m *MockFactory) NewResignLeadership() (operation.Operation, error)
NewResignLeadership mocks base method
func (*MockFactory) NewResolvedUpgrade ¶
NewResolvedUpgrade mocks base method
func (*MockFactory) NewRevertUpgrade ¶
NewRevertUpgrade mocks base method
func (*MockFactory) NewRunHook ¶
NewRunHook mocks base method
func (*MockFactory) NewSkipHook ¶
NewSkipHook mocks base method
func (*MockFactory) NewUpgrade ¶
NewUpgrade mocks base method
type MockFactoryMockRecorder ¶
type MockFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockFactoryMockRecorder is the mock recorder for MockFactory
func (*MockFactoryMockRecorder) NewAcceptLeadership ¶
func (mr *MockFactoryMockRecorder) NewAcceptLeadership() *gomock.Call
NewAcceptLeadership indicates an expected call of NewAcceptLeadership
func (*MockFactoryMockRecorder) NewAction ¶
func (mr *MockFactoryMockRecorder) NewAction(arg0 interface{}) *gomock.Call
NewAction indicates an expected call of NewAction
func (*MockFactoryMockRecorder) NewCommands ¶
func (mr *MockFactoryMockRecorder) NewCommands(arg0, arg1 interface{}) *gomock.Call
NewCommands indicates an expected call of NewCommands
func (*MockFactoryMockRecorder) NewFailAction ¶
func (mr *MockFactoryMockRecorder) NewFailAction(arg0 interface{}) *gomock.Call
NewFailAction indicates an expected call of NewFailAction
func (*MockFactoryMockRecorder) NewFinishUpgradeCharmProfile ¶
func (mr *MockFactoryMockRecorder) NewFinishUpgradeCharmProfile(arg0 interface{}) *gomock.Call
NewFinishUpgradeCharmProfile indicates an expected call of NewFinishUpgradeCharmProfile
func (*MockFactoryMockRecorder) NewInstall ¶
func (mr *MockFactoryMockRecorder) NewInstall(arg0 interface{}) *gomock.Call
NewInstall indicates an expected call of NewInstall
func (*MockFactoryMockRecorder) NewNoOpFinishUpgradeSeries ¶
func (mr *MockFactoryMockRecorder) NewNoOpFinishUpgradeSeries() *gomock.Call
NewNoOpFinishUpgradeSeries indicates an expected call of NewNoOpFinishUpgradeSeries
func (*MockFactoryMockRecorder) NewNoOpUpgrade ¶
func (mr *MockFactoryMockRecorder) NewNoOpUpgrade(arg0 interface{}) *gomock.Call
NewNoOpUpgrade indicates an expected call of NewNoOpUpgrade
func (*MockFactoryMockRecorder) NewResignLeadership ¶
func (mr *MockFactoryMockRecorder) NewResignLeadership() *gomock.Call
NewResignLeadership indicates an expected call of NewResignLeadership
func (*MockFactoryMockRecorder) NewResolvedUpgrade ¶
func (mr *MockFactoryMockRecorder) NewResolvedUpgrade(arg0 interface{}) *gomock.Call
NewResolvedUpgrade indicates an expected call of NewResolvedUpgrade
func (*MockFactoryMockRecorder) NewRevertUpgrade ¶
func (mr *MockFactoryMockRecorder) NewRevertUpgrade(arg0 interface{}) *gomock.Call
NewRevertUpgrade indicates an expected call of NewRevertUpgrade
func (*MockFactoryMockRecorder) NewRunHook ¶
func (mr *MockFactoryMockRecorder) NewRunHook(arg0 interface{}) *gomock.Call
NewRunHook indicates an expected call of NewRunHook
func (*MockFactoryMockRecorder) NewSkipHook ¶
func (mr *MockFactoryMockRecorder) NewSkipHook(arg0 interface{}) *gomock.Call
NewSkipHook indicates an expected call of NewSkipHook
func (*MockFactoryMockRecorder) NewUpgrade ¶
func (mr *MockFactoryMockRecorder) NewUpgrade(arg0 interface{}) *gomock.Call
NewUpgrade indicates an expected call of NewUpgrade
type MockOperation ¶
type MockOperation struct {
// contains filtered or unexported fields
}
MockOperation is a mock of Operation interface
func NewMockOperation ¶
func NewMockOperation(ctrl *gomock.Controller) *MockOperation
NewMockOperation creates a new mock instance
func (*MockOperation) EXPECT ¶
func (m *MockOperation) EXPECT() *MockOperationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockOperation) NeedsGlobalMachineLock ¶
func (m *MockOperation) NeedsGlobalMachineLock() bool
NeedsGlobalMachineLock mocks base method
type MockOperationMockRecorder ¶
type MockOperationMockRecorder struct {
// contains filtered or unexported fields
}
MockOperationMockRecorder is the mock recorder for MockOperation
func (*MockOperationMockRecorder) Commit ¶
func (mr *MockOperationMockRecorder) Commit(arg0 interface{}) *gomock.Call
Commit indicates an expected call of Commit
func (*MockOperationMockRecorder) Execute ¶
func (mr *MockOperationMockRecorder) Execute(arg0 interface{}) *gomock.Call
Execute indicates an expected call of Execute
func (*MockOperationMockRecorder) NeedsGlobalMachineLock ¶
func (mr *MockOperationMockRecorder) NeedsGlobalMachineLock() *gomock.Call
NeedsGlobalMachineLock indicates an expected call of NeedsGlobalMachineLock
func (*MockOperationMockRecorder) Prepare ¶
func (mr *MockOperationMockRecorder) Prepare(arg0 interface{}) *gomock.Call
Prepare indicates an expected call of Prepare
func (*MockOperationMockRecorder) String ¶
func (mr *MockOperationMockRecorder) String() *gomock.Call
String indicates an expected call of String