juju: github.com/wallyworld/juju/apiserver/common/mocks Index | Files

package mocks

import "github.com/wallyworld/juju/apiserver/common/mocks"

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Package Files

authorizer_mock.go leadership.go modeloperation.go unitstate.go upgradeseries.go

type MockAuthorizer Uses

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

MockAuthorizer is a mock of Authorizer interface

func NewMockAuthorizer Uses

func NewMockAuthorizer(ctrl *gomock.Controller) *MockAuthorizer

NewMockAuthorizer creates a new mock instance

func (*MockAuthorizer) AuthController Uses

func (m *MockAuthorizer) AuthController() bool

AuthController mocks base method

func (*MockAuthorizer) AuthMachineAgent Uses

func (m *MockAuthorizer) AuthMachineAgent() bool

AuthMachineAgent mocks base method

func (*MockAuthorizer) EXPECT Uses

func (m *MockAuthorizer) EXPECT() *MockAuthorizerMockRecorder

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

func (*MockAuthorizer) GetAuthTag Uses

func (m *MockAuthorizer) GetAuthTag() names.Tag

GetAuthTag mocks base method

type MockAuthorizerMockRecorder Uses

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

MockAuthorizerMockRecorder is the mock recorder for MockAuthorizer

func (*MockAuthorizerMockRecorder) AuthController Uses

func (mr *MockAuthorizerMockRecorder) AuthController() *gomock.Call

AuthController indicates an expected call of AuthController

func (*MockAuthorizerMockRecorder) AuthMachineAgent Uses

func (mr *MockAuthorizerMockRecorder) AuthMachineAgent() *gomock.Call

AuthMachineAgent indicates an expected call of AuthMachineAgent

func (*MockAuthorizerMockRecorder) GetAuthTag Uses

func (mr *MockAuthorizerMockRecorder) GetAuthTag() *gomock.Call

GetAuthTag indicates an expected call of GetAuthTag

type MockLeadershipMachine Uses

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

MockLeadershipMachine is a mock of LeadershipMachine interface

func NewMockLeadershipMachine Uses

func NewMockLeadershipMachine(ctrl *gomock.Controller) *MockLeadershipMachine

NewMockLeadershipMachine creates a new mock instance

func (*MockLeadershipMachine) ApplicationNames Uses

func (m *MockLeadershipMachine) ApplicationNames() ([]string, error)

ApplicationNames mocks base method

func (*MockLeadershipMachine) EXPECT Uses

func (m *MockLeadershipMachine) EXPECT() *MockLeadershipMachineMockRecorder

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

type MockLeadershipMachineMockRecorder Uses

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

MockLeadershipMachineMockRecorder is the mock recorder for MockLeadershipMachine

func (*MockLeadershipMachineMockRecorder) ApplicationNames Uses

func (mr *MockLeadershipMachineMockRecorder) ApplicationNames() *gomock.Call

ApplicationNames indicates an expected call of ApplicationNames

type MockLeadershipPinningBackend Uses

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

MockLeadershipPinningBackend is a mock of LeadershipPinningBackend interface

func NewMockLeadershipPinningBackend Uses

func NewMockLeadershipPinningBackend(ctrl *gomock.Controller) *MockLeadershipPinningBackend

NewMockLeadershipPinningBackend creates a new mock instance

func (*MockLeadershipPinningBackend) EXPECT Uses

func (m *MockLeadershipPinningBackend) EXPECT() *MockLeadershipPinningBackendMockRecorder

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

func (*MockLeadershipPinningBackend) Machine Uses

func (m *MockLeadershipPinningBackend) Machine(arg0 string) (common.LeadershipMachine, error)

Machine mocks base method

type MockLeadershipPinningBackendMockRecorder Uses

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

MockLeadershipPinningBackendMockRecorder is the mock recorder for MockLeadershipPinningBackend

func (*MockLeadershipPinningBackendMockRecorder) Machine Uses

func (mr *MockLeadershipPinningBackendMockRecorder) Machine(arg0 interface{}) *gomock.Call

Machine indicates an expected call of Machine

type MockModelOperation Uses

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

MockModelOperation is a mock of ModelOperation interface

func NewMockModelOperation Uses

func NewMockModelOperation(ctrl *gomock.Controller) *MockModelOperation

NewMockModelOperation creates a new mock instance

func (*MockModelOperation) Build Uses

func (m *MockModelOperation) Build(arg0 int) ([]txn.Op, error)

Build mocks base method

func (*MockModelOperation) Done Uses

func (m *MockModelOperation) Done(arg0 error) error

Done mocks base method

func (*MockModelOperation) EXPECT Uses

func (m *MockModelOperation) EXPECT() *MockModelOperationMockRecorder

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

type MockModelOperationMockRecorder Uses

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

MockModelOperationMockRecorder is the mock recorder for MockModelOperation

func (*MockModelOperationMockRecorder) Build Uses

func (mr *MockModelOperationMockRecorder) Build(arg0 interface{}) *gomock.Call

Build indicates an expected call of Build

func (*MockModelOperationMockRecorder) Done Uses

func (mr *MockModelOperationMockRecorder) Done(arg0 interface{}) *gomock.Call

Done indicates an expected call of Done

type MockUnitStateBackend Uses

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

MockUnitStateBackend is a mock of UnitStateBackend interface

func NewMockUnitStateBackend Uses

func NewMockUnitStateBackend(ctrl *gomock.Controller) *MockUnitStateBackend

NewMockUnitStateBackend creates a new mock instance

func (*MockUnitStateBackend) ApplyOperation Uses

func (m *MockUnitStateBackend) ApplyOperation(arg0 state.ModelOperation) error

ApplyOperation mocks base method

func (*MockUnitStateBackend) ControllerConfig Uses

func (m *MockUnitStateBackend) ControllerConfig() (controller.Config, error)

ControllerConfig mocks base method

func (*MockUnitStateBackend) EXPECT Uses

func (m *MockUnitStateBackend) EXPECT() *MockUnitStateBackendMockRecorder

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

func (*MockUnitStateBackend) Unit Uses

func (m *MockUnitStateBackend) Unit(arg0 string) (common.UnitStateUnit, error)

Unit mocks base method

type MockUnitStateBackendMockRecorder Uses

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

MockUnitStateBackendMockRecorder is the mock recorder for MockUnitStateBackend

func (*MockUnitStateBackendMockRecorder) ApplyOperation Uses

func (mr *MockUnitStateBackendMockRecorder) ApplyOperation(arg0 interface{}) *gomock.Call

ApplyOperation indicates an expected call of ApplyOperation

func (*MockUnitStateBackendMockRecorder) ControllerConfig Uses

func (mr *MockUnitStateBackendMockRecorder) ControllerConfig() *gomock.Call

ControllerConfig indicates an expected call of ControllerConfig

func (*MockUnitStateBackendMockRecorder) Unit Uses

func (mr *MockUnitStateBackendMockRecorder) Unit(arg0 interface{}) *gomock.Call

Unit indicates an expected call of Unit

type MockUnitStateUnit Uses

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

MockUnitStateUnit is a mock of UnitStateUnit interface

func NewMockUnitStateUnit Uses

func NewMockUnitStateUnit(ctrl *gomock.Controller) *MockUnitStateUnit

NewMockUnitStateUnit creates a new mock instance

func (*MockUnitStateUnit) EXPECT Uses

func (m *MockUnitStateUnit) EXPECT() *MockUnitStateUnitMockRecorder

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

func (*MockUnitStateUnit) SetStateOperation Uses

func (m *MockUnitStateUnit) SetStateOperation(arg0 *state.UnitState, arg1 state.UnitStateSizeLimits) state.ModelOperation

SetStateOperation mocks base method

func (*MockUnitStateUnit) State Uses

func (m *MockUnitStateUnit) State() (*state.UnitState, error)

State mocks base method

type MockUnitStateUnitMockRecorder Uses

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

MockUnitStateUnitMockRecorder is the mock recorder for MockUnitStateUnit

func (*MockUnitStateUnitMockRecorder) SetStateOperation Uses

func (mr *MockUnitStateUnitMockRecorder) SetStateOperation(arg0, arg1 interface{}) *gomock.Call

SetStateOperation indicates an expected call of SetStateOperation

func (*MockUnitStateUnitMockRecorder) State Uses

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

State indicates an expected call of State

type MockUpgradeSeriesBackend Uses

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

MockUpgradeSeriesBackend is a mock of UpgradeSeriesBackend interface

func NewMockUpgradeSeriesBackend Uses

func NewMockUpgradeSeriesBackend(ctrl *gomock.Controller) *MockUpgradeSeriesBackend

NewMockUpgradeSeriesBackend creates a new mock instance

func (*MockUpgradeSeriesBackend) EXPECT Uses

func (m *MockUpgradeSeriesBackend) EXPECT() *MockUpgradeSeriesBackendMockRecorder

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

func (*MockUpgradeSeriesBackend) Machine Uses

func (m *MockUpgradeSeriesBackend) Machine(arg0 string) (common.UpgradeSeriesMachine, error)

Machine mocks base method

func (*MockUpgradeSeriesBackend) Unit Uses

func (m *MockUpgradeSeriesBackend) Unit(arg0 string) (common.UpgradeSeriesUnit, error)

Unit mocks base method

type MockUpgradeSeriesBackendMockRecorder Uses

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

MockUpgradeSeriesBackendMockRecorder is the mock recorder for MockUpgradeSeriesBackend

func (*MockUpgradeSeriesBackendMockRecorder) Machine Uses

func (mr *MockUpgradeSeriesBackendMockRecorder) Machine(arg0 interface{}) *gomock.Call

Machine indicates an expected call of Machine

func (*MockUpgradeSeriesBackendMockRecorder) Unit Uses

func (mr *MockUpgradeSeriesBackendMockRecorder) Unit(arg0 interface{}) *gomock.Call

Unit indicates an expected call of Unit

type MockUpgradeSeriesMachine Uses

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

MockUpgradeSeriesMachine is a mock of UpgradeSeriesMachine interface

func NewMockUpgradeSeriesMachine Uses

func NewMockUpgradeSeriesMachine(ctrl *gomock.Controller) *MockUpgradeSeriesMachine

NewMockUpgradeSeriesMachine creates a new mock instance

func (*MockUpgradeSeriesMachine) EXPECT Uses

func (m *MockUpgradeSeriesMachine) EXPECT() *MockUpgradeSeriesMachineMockRecorder

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

func (*MockUpgradeSeriesMachine) RemoveUpgradeSeriesLock Uses

func (m *MockUpgradeSeriesMachine) RemoveUpgradeSeriesLock() error

RemoveUpgradeSeriesLock mocks base method

func (*MockUpgradeSeriesMachine) Series Uses

func (m *MockUpgradeSeriesMachine) Series() string

Series mocks base method

func (*MockUpgradeSeriesMachine) SetInstanceStatus Uses

func (m *MockUpgradeSeriesMachine) SetInstanceStatus(arg0 status.StatusInfo) error

SetInstanceStatus mocks base method

func (*MockUpgradeSeriesMachine) SetUpgradeSeriesStatus Uses

func (m *MockUpgradeSeriesMachine) SetUpgradeSeriesStatus(arg0 model.UpgradeSeriesStatus, arg1 string) error

SetUpgradeSeriesStatus mocks base method

func (*MockUpgradeSeriesMachine) StartUpgradeSeriesUnitCompletion Uses

func (m *MockUpgradeSeriesMachine) StartUpgradeSeriesUnitCompletion(arg0 string) error

StartUpgradeSeriesUnitCompletion mocks base method

func (*MockUpgradeSeriesMachine) Units Uses

func (m *MockUpgradeSeriesMachine) Units() ([]common.UpgradeSeriesUnit, error)

Units mocks base method

func (*MockUpgradeSeriesMachine) UpdateMachineSeries Uses

func (m *MockUpgradeSeriesMachine) UpdateMachineSeries(arg0 string, arg1 bool) error

UpdateMachineSeries mocks base method

func (*MockUpgradeSeriesMachine) UpgradeSeriesStatus Uses

func (m *MockUpgradeSeriesMachine) UpgradeSeriesStatus() (model.UpgradeSeriesStatus, error)

UpgradeSeriesStatus mocks base method

func (*MockUpgradeSeriesMachine) UpgradeSeriesTarget Uses

func (m *MockUpgradeSeriesMachine) UpgradeSeriesTarget() (string, error)

UpgradeSeriesTarget mocks base method

func (*MockUpgradeSeriesMachine) UpgradeSeriesUnitStatuses Uses

func (m *MockUpgradeSeriesMachine) UpgradeSeriesUnitStatuses() (map[string]state.UpgradeSeriesUnitStatus, error)

UpgradeSeriesUnitStatuses mocks base method

func (*MockUpgradeSeriesMachine) WatchUpgradeSeriesNotifications Uses

func (m *MockUpgradeSeriesMachine) WatchUpgradeSeriesNotifications() (state.NotifyWatcher, error)

WatchUpgradeSeriesNotifications mocks base method

type MockUpgradeSeriesMachineMockRecorder Uses

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

MockUpgradeSeriesMachineMockRecorder is the mock recorder for MockUpgradeSeriesMachine

func (*MockUpgradeSeriesMachineMockRecorder) RemoveUpgradeSeriesLock Uses

func (mr *MockUpgradeSeriesMachineMockRecorder) RemoveUpgradeSeriesLock() *gomock.Call

RemoveUpgradeSeriesLock indicates an expected call of RemoveUpgradeSeriesLock

func (*MockUpgradeSeriesMachineMockRecorder) Series Uses

func (mr *MockUpgradeSeriesMachineMockRecorder) Series() *gomock.Call

Series indicates an expected call of Series

func (*MockUpgradeSeriesMachineMockRecorder) SetInstanceStatus Uses

func (mr *MockUpgradeSeriesMachineMockRecorder) SetInstanceStatus(arg0 interface{}) *gomock.Call

SetInstanceStatus indicates an expected call of SetInstanceStatus

func (*MockUpgradeSeriesMachineMockRecorder) SetUpgradeSeriesStatus Uses

func (mr *MockUpgradeSeriesMachineMockRecorder) SetUpgradeSeriesStatus(arg0, arg1 interface{}) *gomock.Call

SetUpgradeSeriesStatus indicates an expected call of SetUpgradeSeriesStatus

func (*MockUpgradeSeriesMachineMockRecorder) StartUpgradeSeriesUnitCompletion Uses

func (mr *MockUpgradeSeriesMachineMockRecorder) StartUpgradeSeriesUnitCompletion(arg0 interface{}) *gomock.Call

StartUpgradeSeriesUnitCompletion indicates an expected call of StartUpgradeSeriesUnitCompletion

func (*MockUpgradeSeriesMachineMockRecorder) Units Uses

func (mr *MockUpgradeSeriesMachineMockRecorder) Units() *gomock.Call

Units indicates an expected call of Units

func (*MockUpgradeSeriesMachineMockRecorder) UpdateMachineSeries Uses

func (mr *MockUpgradeSeriesMachineMockRecorder) UpdateMachineSeries(arg0, arg1 interface{}) *gomock.Call

UpdateMachineSeries indicates an expected call of UpdateMachineSeries

func (*MockUpgradeSeriesMachineMockRecorder) UpgradeSeriesStatus Uses

func (mr *MockUpgradeSeriesMachineMockRecorder) UpgradeSeriesStatus() *gomock.Call

UpgradeSeriesStatus indicates an expected call of UpgradeSeriesStatus

func (*MockUpgradeSeriesMachineMockRecorder) UpgradeSeriesTarget Uses

func (mr *MockUpgradeSeriesMachineMockRecorder) UpgradeSeriesTarget() *gomock.Call

UpgradeSeriesTarget indicates an expected call of UpgradeSeriesTarget

func (*MockUpgradeSeriesMachineMockRecorder) UpgradeSeriesUnitStatuses Uses

func (mr *MockUpgradeSeriesMachineMockRecorder) UpgradeSeriesUnitStatuses() *gomock.Call

UpgradeSeriesUnitStatuses indicates an expected call of UpgradeSeriesUnitStatuses

func (*MockUpgradeSeriesMachineMockRecorder) WatchUpgradeSeriesNotifications Uses

func (mr *MockUpgradeSeriesMachineMockRecorder) WatchUpgradeSeriesNotifications() *gomock.Call

WatchUpgradeSeriesNotifications indicates an expected call of WatchUpgradeSeriesNotifications

type MockUpgradeSeriesUnit Uses

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

MockUpgradeSeriesUnit is a mock of UpgradeSeriesUnit interface

func NewMockUpgradeSeriesUnit Uses

func NewMockUpgradeSeriesUnit(ctrl *gomock.Controller) *MockUpgradeSeriesUnit

NewMockUpgradeSeriesUnit creates a new mock instance

func (*MockUpgradeSeriesUnit) AssignedMachineId Uses

func (m *MockUpgradeSeriesUnit) AssignedMachineId() (string, error)

AssignedMachineId mocks base method

func (*MockUpgradeSeriesUnit) EXPECT Uses

func (m *MockUpgradeSeriesUnit) EXPECT() *MockUpgradeSeriesUnitMockRecorder

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

func (*MockUpgradeSeriesUnit) SetUpgradeSeriesStatus Uses

func (m *MockUpgradeSeriesUnit) SetUpgradeSeriesStatus(arg0 model.UpgradeSeriesStatus, arg1 string) error

SetUpgradeSeriesStatus mocks base method

func (*MockUpgradeSeriesUnit) Tag Uses

func (m *MockUpgradeSeriesUnit) Tag() names.Tag

Tag mocks base method

func (*MockUpgradeSeriesUnit) UpgradeSeriesStatus Uses

func (m *MockUpgradeSeriesUnit) UpgradeSeriesStatus() (model.UpgradeSeriesStatus, error)

UpgradeSeriesStatus mocks base method

type MockUpgradeSeriesUnitMockRecorder Uses

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

MockUpgradeSeriesUnitMockRecorder is the mock recorder for MockUpgradeSeriesUnit

func (*MockUpgradeSeriesUnitMockRecorder) AssignedMachineId Uses

func (mr *MockUpgradeSeriesUnitMockRecorder) AssignedMachineId() *gomock.Call

AssignedMachineId indicates an expected call of AssignedMachineId

func (*MockUpgradeSeriesUnitMockRecorder) SetUpgradeSeriesStatus Uses

func (mr *MockUpgradeSeriesUnitMockRecorder) SetUpgradeSeriesStatus(arg0, arg1 interface{}) *gomock.Call

SetUpgradeSeriesStatus indicates an expected call of SetUpgradeSeriesStatus

func (*MockUpgradeSeriesUnitMockRecorder) Tag Uses

func (mr *MockUpgradeSeriesUnitMockRecorder) Tag() *gomock.Call

Tag indicates an expected call of Tag

func (*MockUpgradeSeriesUnitMockRecorder) UpgradeSeriesStatus Uses

func (mr *MockUpgradeSeriesUnitMockRecorder) UpgradeSeriesStatus() *gomock.Call

UpgradeSeriesStatus indicates an expected call of UpgradeSeriesStatus

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