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

package mocks

import "github.com/juju/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.

Index

Package Files

authorizer_mock.go leadership.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_v3.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 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) 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) 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_v3.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 6 packages (graph). Updated 2019-09-01. Refresh now. Tools for package owners.