juju: github.com/wallyworld/juju/worker/uniter/operation/mocks Index | Files

package mocks

import "github.com/wallyworld/juju/worker/uniter/operation/mocks"

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Package Files

interface_mock.go uniterstaterw_mock.go

type MockFactory Uses

type MockFactory struct {
    // contains filtered or unexported fields
}

MockFactory is a mock of Factory interface

func NewMockFactory Uses

func NewMockFactory(ctrl *gomock.Controller) *MockFactory

NewMockFactory creates a new mock instance

func (*MockFactory) EXPECT Uses

func (m *MockFactory) EXPECT() *MockFactoryMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockFactory) NewAcceptLeadership Uses

func (m *MockFactory) NewAcceptLeadership() (operation.Operation, error)

NewAcceptLeadership mocks base method

func (*MockFactory) NewAction Uses

func (m *MockFactory) NewAction(arg0 string) (operation.Operation, error)

NewAction mocks base method

func (*MockFactory) NewCommands Uses

func (m *MockFactory) NewCommands(arg0 operation.CommandArgs, arg1 operation.CommandResponseFunc) (operation.Operation, error)

NewCommands mocks base method

func (*MockFactory) NewFailAction Uses

func (m *MockFactory) NewFailAction(arg0 string) (operation.Operation, error)

NewFailAction mocks base method

func (*MockFactory) NewInstall Uses

func (m *MockFactory) NewInstall(arg0 *charm_v6.URL) (operation.Operation, error)

NewInstall mocks base method

func (*MockFactory) NewNoOpFinishUpgradeSeries Uses

func (m *MockFactory) NewNoOpFinishUpgradeSeries() (operation.Operation, error)

NewNoOpFinishUpgradeSeries mocks base method

func (*MockFactory) NewRemoteInit Uses

func (m *MockFactory) NewRemoteInit(arg0 remotestate.ContainerRunningStatus) (operation.Operation, error)

NewRemoteInit mocks base method

func (*MockFactory) NewResignLeadership Uses

func (m *MockFactory) NewResignLeadership() (operation.Operation, error)

NewResignLeadership mocks base method

func (*MockFactory) NewResolvedUpgrade Uses

func (m *MockFactory) NewResolvedUpgrade(arg0 *charm_v6.URL) (operation.Operation, error)

NewResolvedUpgrade mocks base method

func (*MockFactory) NewRevertUpgrade Uses

func (m *MockFactory) NewRevertUpgrade(arg0 *charm_v6.URL) (operation.Operation, error)

NewRevertUpgrade mocks base method

func (*MockFactory) NewRunHook Uses

func (m *MockFactory) NewRunHook(arg0 hook.Info) (operation.Operation, error)

NewRunHook mocks base method

func (*MockFactory) NewSkipHook Uses

func (m *MockFactory) NewSkipHook(arg0 hook.Info) (operation.Operation, error)

NewSkipHook mocks base method

func (*MockFactory) NewSkipRemoteInit Uses

func (m *MockFactory) NewSkipRemoteInit(arg0 bool) (operation.Operation, error)

NewSkipRemoteInit mocks base method

func (*MockFactory) NewUpgrade Uses

func (m *MockFactory) NewUpgrade(arg0 *charm_v6.URL) (operation.Operation, error)

NewUpgrade mocks base method

type MockFactoryMockRecorder Uses

type MockFactoryMockRecorder struct {
    // contains filtered or unexported fields
}

MockFactoryMockRecorder is the mock recorder for MockFactory

func (*MockFactoryMockRecorder) NewAcceptLeadership Uses

func (mr *MockFactoryMockRecorder) NewAcceptLeadership() *gomock.Call

NewAcceptLeadership indicates an expected call of NewAcceptLeadership

func (*MockFactoryMockRecorder) NewAction Uses

func (mr *MockFactoryMockRecorder) NewAction(arg0 interface{}) *gomock.Call

NewAction indicates an expected call of NewAction

func (*MockFactoryMockRecorder) NewCommands Uses

func (mr *MockFactoryMockRecorder) NewCommands(arg0, arg1 interface{}) *gomock.Call

NewCommands indicates an expected call of NewCommands

func (*MockFactoryMockRecorder) NewFailAction Uses

func (mr *MockFactoryMockRecorder) NewFailAction(arg0 interface{}) *gomock.Call

NewFailAction indicates an expected call of NewFailAction

func (*MockFactoryMockRecorder) NewInstall Uses

func (mr *MockFactoryMockRecorder) NewInstall(arg0 interface{}) *gomock.Call

NewInstall indicates an expected call of NewInstall

func (*MockFactoryMockRecorder) NewNoOpFinishUpgradeSeries Uses

func (mr *MockFactoryMockRecorder) NewNoOpFinishUpgradeSeries() *gomock.Call

NewNoOpFinishUpgradeSeries indicates an expected call of NewNoOpFinishUpgradeSeries

func (*MockFactoryMockRecorder) NewRemoteInit Uses

func (mr *MockFactoryMockRecorder) NewRemoteInit(arg0 interface{}) *gomock.Call

NewRemoteInit indicates an expected call of NewRemoteInit

func (*MockFactoryMockRecorder) NewResignLeadership Uses

func (mr *MockFactoryMockRecorder) NewResignLeadership() *gomock.Call

NewResignLeadership indicates an expected call of NewResignLeadership

func (*MockFactoryMockRecorder) NewResolvedUpgrade Uses

func (mr *MockFactoryMockRecorder) NewResolvedUpgrade(arg0 interface{}) *gomock.Call

NewResolvedUpgrade indicates an expected call of NewResolvedUpgrade

func (*MockFactoryMockRecorder) NewRevertUpgrade Uses

func (mr *MockFactoryMockRecorder) NewRevertUpgrade(arg0 interface{}) *gomock.Call

NewRevertUpgrade indicates an expected call of NewRevertUpgrade

func (*MockFactoryMockRecorder) NewRunHook Uses

func (mr *MockFactoryMockRecorder) NewRunHook(arg0 interface{}) *gomock.Call

NewRunHook indicates an expected call of NewRunHook

func (*MockFactoryMockRecorder) NewSkipHook Uses

func (mr *MockFactoryMockRecorder) NewSkipHook(arg0 interface{}) *gomock.Call

NewSkipHook indicates an expected call of NewSkipHook

func (*MockFactoryMockRecorder) NewSkipRemoteInit Uses

func (mr *MockFactoryMockRecorder) NewSkipRemoteInit(arg0 interface{}) *gomock.Call

NewSkipRemoteInit indicates an expected call of NewSkipRemoteInit

func (*MockFactoryMockRecorder) NewUpgrade Uses

func (mr *MockFactoryMockRecorder) NewUpgrade(arg0 interface{}) *gomock.Call

NewUpgrade indicates an expected call of NewUpgrade

type MockOperation Uses

type MockOperation struct {
    // contains filtered or unexported fields
}

MockOperation is a mock of Operation interface

func NewMockOperation Uses

func NewMockOperation(ctrl *gomock.Controller) *MockOperation

NewMockOperation creates a new mock instance

func (*MockOperation) Commit Uses

func (m *MockOperation) Commit(arg0 operation.State) (*operation.State, error)

Commit mocks base method

func (*MockOperation) EXPECT Uses

func (m *MockOperation) EXPECT() *MockOperationMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockOperation) Execute Uses

func (m *MockOperation) Execute(arg0 operation.State) (*operation.State, error)

Execute mocks base method

func (*MockOperation) NeedsGlobalMachineLock Uses

func (m *MockOperation) NeedsGlobalMachineLock() bool

NeedsGlobalMachineLock mocks base method

func (*MockOperation) Prepare Uses

func (m *MockOperation) Prepare(arg0 operation.State) (*operation.State, error)

Prepare mocks base method

func (*MockOperation) RemoteStateChanged Uses

func (m *MockOperation) RemoteStateChanged(arg0 remotestate.Snapshot)

RemoteStateChanged mocks base method

func (*MockOperation) String Uses

func (m *MockOperation) String() string

String mocks base method

type MockOperationMockRecorder Uses

type MockOperationMockRecorder struct {
    // contains filtered or unexported fields
}

MockOperationMockRecorder is the mock recorder for MockOperation

func (*MockOperationMockRecorder) Commit Uses

func (mr *MockOperationMockRecorder) Commit(arg0 interface{}) *gomock.Call

Commit indicates an expected call of Commit

func (*MockOperationMockRecorder) Execute Uses

func (mr *MockOperationMockRecorder) Execute(arg0 interface{}) *gomock.Call

Execute indicates an expected call of Execute

func (*MockOperationMockRecorder) NeedsGlobalMachineLock Uses

func (mr *MockOperationMockRecorder) NeedsGlobalMachineLock() *gomock.Call

NeedsGlobalMachineLock indicates an expected call of NeedsGlobalMachineLock

func (*MockOperationMockRecorder) Prepare Uses

func (mr *MockOperationMockRecorder) Prepare(arg0 interface{}) *gomock.Call

Prepare indicates an expected call of Prepare

func (*MockOperationMockRecorder) RemoteStateChanged Uses

func (mr *MockOperationMockRecorder) RemoteStateChanged(arg0 interface{}) *gomock.Call

RemoteStateChanged indicates an expected call of RemoteStateChanged

func (*MockOperationMockRecorder) String Uses

func (mr *MockOperationMockRecorder) String() *gomock.Call

String indicates an expected call of String

type MockUnitStateReadWriter Uses

type MockUnitStateReadWriter struct {
    // contains filtered or unexported fields
}

MockUnitStateReadWriter is a mock of UnitStateReadWriter interface

func NewMockUnitStateReadWriter Uses

func NewMockUnitStateReadWriter(ctrl *gomock.Controller) *MockUnitStateReadWriter

NewMockUnitStateReadWriter creates a new mock instance

func (*MockUnitStateReadWriter) EXPECT Uses

func (m *MockUnitStateReadWriter) EXPECT() *MockUnitStateReadWriterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockUnitStateReadWriter) SetState Uses

func (m *MockUnitStateReadWriter) SetState(arg0 params.SetUnitStateArg) error

SetState mocks base method

func (*MockUnitStateReadWriter) State Uses

func (m *MockUnitStateReadWriter) State() (params.UnitStateResult, error)

State mocks base method

type MockUnitStateReadWriterMockRecorder Uses

type MockUnitStateReadWriterMockRecorder struct {
    // contains filtered or unexported fields
}

MockUnitStateReadWriterMockRecorder is the mock recorder for MockUnitStateReadWriter

func (*MockUnitStateReadWriterMockRecorder) SetState Uses

func (mr *MockUnitStateReadWriterMockRecorder) SetState(arg0 interface{}) *gomock.Call

SetState indicates an expected call of SetState

func (*MockUnitStateReadWriterMockRecorder) State Uses

func (mr *MockUnitStateReadWriterMockRecorder) State() *gomock.Call

State indicates an expected call of State

Package mocks imports 7 packages (graph). Updated 2020-08-06. Refresh now. Tools for package owners.