Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockApplication
- type MockApplicationMockRecorder
- type MockGeneration
- func (m *MockGeneration) Abort(arg0 string) error
- func (m *MockGeneration) AssignAllUnits(arg0 string) error
- func (m *MockGeneration) AssignUnit(arg0 string) error
- func (m *MockGeneration) AssignUnits(arg0 string, arg1 int) error
- func (m *MockGeneration) AssignedUnits() map[string][]string
- func (m *MockGeneration) BranchName() string
- func (m *MockGeneration) Commit(arg0 string) (int, error)
- func (m *MockGeneration) Completed() int64
- func (m *MockGeneration) CompletedBy() string
- func (m *MockGeneration) Config() map[string]settings.ItemChanges
- func (m *MockGeneration) Created() int64
- func (m *MockGeneration) CreatedBy() string
- func (m *MockGeneration) EXPECT() *MockGenerationMockRecorder
- func (m *MockGeneration) GenerationId() int
- type MockGenerationMockRecorder
- func (mr *MockGenerationMockRecorder) Abort(arg0 interface{}) *gomock.Call
- func (mr *MockGenerationMockRecorder) AssignAllUnits(arg0 interface{}) *gomock.Call
- func (mr *MockGenerationMockRecorder) AssignUnit(arg0 interface{}) *gomock.Call
- func (mr *MockGenerationMockRecorder) AssignUnits(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGenerationMockRecorder) AssignedUnits() *gomock.Call
- func (mr *MockGenerationMockRecorder) BranchName() *gomock.Call
- func (mr *MockGenerationMockRecorder) Commit(arg0 interface{}) *gomock.Call
- func (mr *MockGenerationMockRecorder) Completed() *gomock.Call
- func (mr *MockGenerationMockRecorder) CompletedBy() *gomock.Call
- func (mr *MockGenerationMockRecorder) Config() *gomock.Call
- func (mr *MockGenerationMockRecorder) Created() *gomock.Call
- func (mr *MockGenerationMockRecorder) CreatedBy() *gomock.Call
- func (mr *MockGenerationMockRecorder) GenerationId() *gomock.Call
- type MockModel
- func (m *MockModel) AddBranch(arg0, arg1 string) error
- func (m *MockModel) Branch(arg0 string) (modelgeneration.Generation, error)
- func (m *MockModel) Branches() ([]modelgeneration.Generation, error)
- func (m *MockModel) EXPECT() *MockModelMockRecorder
- func (m *MockModel) Generation(arg0 int) (modelgeneration.Generation, error)
- func (m *MockModel) Generations() ([]modelgeneration.Generation, error)
- func (m *MockModel) ModelTag() names.ModelTag
- type MockModelCache
- type MockModelCacheMockRecorder
- type MockModelMockRecorder
- func (mr *MockModelMockRecorder) AddBranch(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockModelMockRecorder) Branch(arg0 interface{}) *gomock.Call
- func (mr *MockModelMockRecorder) Branches() *gomock.Call
- func (mr *MockModelMockRecorder) Generation(arg0 interface{}) *gomock.Call
- func (mr *MockModelMockRecorder) Generations() *gomock.Call
- func (mr *MockModelMockRecorder) ModelTag() *gomock.Call
- type MockState
- type MockStateMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockApplication ¶
type MockApplication struct {
// contains filtered or unexported fields
}
MockApplication is a mock of Application interface
func NewMockApplication ¶
func NewMockApplication(ctrl *gomock.Controller) *MockApplication
NewMockApplication creates a new mock instance
func (*MockApplication) DefaultCharmConfig ¶
func (m *MockApplication) DefaultCharmConfig() (charm.Settings, error)
DefaultCharmConfig mocks base method
func (*MockApplication) EXPECT ¶
func (m *MockApplication) EXPECT() *MockApplicationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockApplication) UnitNames ¶
func (m *MockApplication) UnitNames() ([]string, error)
UnitNames mocks base method
type MockApplicationMockRecorder ¶
type MockApplicationMockRecorder struct {
// contains filtered or unexported fields
}
MockApplicationMockRecorder is the mock recorder for MockApplication
func (*MockApplicationMockRecorder) DefaultCharmConfig ¶
func (mr *MockApplicationMockRecorder) DefaultCharmConfig() *gomock.Call
DefaultCharmConfig indicates an expected call of DefaultCharmConfig
func (*MockApplicationMockRecorder) UnitNames ¶
func (mr *MockApplicationMockRecorder) UnitNames() *gomock.Call
UnitNames indicates an expected call of UnitNames
type MockGeneration ¶
type MockGeneration struct {
// contains filtered or unexported fields
}
MockGeneration is a mock of Generation interface
func NewMockGeneration ¶
func NewMockGeneration(ctrl *gomock.Controller) *MockGeneration
NewMockGeneration creates a new mock instance
func (*MockGeneration) Abort ¶
func (m *MockGeneration) Abort(arg0 string) error
Abort mocks base method
func (*MockGeneration) AssignAllUnits ¶
func (m *MockGeneration) AssignAllUnits(arg0 string) error
AssignAllUnits mocks base method
func (*MockGeneration) AssignUnit ¶
func (m *MockGeneration) AssignUnit(arg0 string) error
AssignUnit mocks base method
func (*MockGeneration) AssignUnits ¶
func (m *MockGeneration) AssignUnits(arg0 string, arg1 int) error
AssignUnits mocks base method
func (*MockGeneration) AssignedUnits ¶
func (m *MockGeneration) AssignedUnits() map[string][]string
AssignedUnits mocks base method
func (*MockGeneration) BranchName ¶
func (m *MockGeneration) BranchName() string
BranchName mocks base method
func (*MockGeneration) Commit ¶
func (m *MockGeneration) Commit(arg0 string) (int, error)
Commit mocks base method
func (*MockGeneration) Completed ¶
func (m *MockGeneration) Completed() int64
Completed mocks base method
func (*MockGeneration) CompletedBy ¶
func (m *MockGeneration) CompletedBy() string
CompletedBy mocks base method
func (*MockGeneration) Config ¶
func (m *MockGeneration) Config() map[string]settings.ItemChanges
Config mocks base method
func (*MockGeneration) CreatedBy ¶
func (m *MockGeneration) CreatedBy() string
CreatedBy mocks base method
func (*MockGeneration) EXPECT ¶
func (m *MockGeneration) EXPECT() *MockGenerationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockGeneration) GenerationId ¶
func (m *MockGeneration) GenerationId() int
GenerationId mocks base method
type MockGenerationMockRecorder ¶
type MockGenerationMockRecorder struct {
// contains filtered or unexported fields
}
MockGenerationMockRecorder is the mock recorder for MockGeneration
func (*MockGenerationMockRecorder) Abort ¶
func (mr *MockGenerationMockRecorder) Abort(arg0 interface{}) *gomock.Call
Abort indicates an expected call of Abort
func (*MockGenerationMockRecorder) AssignAllUnits ¶
func (mr *MockGenerationMockRecorder) AssignAllUnits(arg0 interface{}) *gomock.Call
AssignAllUnits indicates an expected call of AssignAllUnits
func (*MockGenerationMockRecorder) AssignUnit ¶
func (mr *MockGenerationMockRecorder) AssignUnit(arg0 interface{}) *gomock.Call
AssignUnit indicates an expected call of AssignUnit
func (*MockGenerationMockRecorder) AssignUnits ¶
func (mr *MockGenerationMockRecorder) AssignUnits(arg0, arg1 interface{}) *gomock.Call
AssignUnits indicates an expected call of AssignUnits
func (*MockGenerationMockRecorder) AssignedUnits ¶
func (mr *MockGenerationMockRecorder) AssignedUnits() *gomock.Call
AssignedUnits indicates an expected call of AssignedUnits
func (*MockGenerationMockRecorder) BranchName ¶
func (mr *MockGenerationMockRecorder) BranchName() *gomock.Call
BranchName indicates an expected call of BranchName
func (*MockGenerationMockRecorder) Commit ¶
func (mr *MockGenerationMockRecorder) Commit(arg0 interface{}) *gomock.Call
Commit indicates an expected call of Commit
func (*MockGenerationMockRecorder) Completed ¶
func (mr *MockGenerationMockRecorder) Completed() *gomock.Call
Completed indicates an expected call of Completed
func (*MockGenerationMockRecorder) CompletedBy ¶
func (mr *MockGenerationMockRecorder) CompletedBy() *gomock.Call
CompletedBy indicates an expected call of CompletedBy
func (*MockGenerationMockRecorder) Config ¶
func (mr *MockGenerationMockRecorder) Config() *gomock.Call
Config indicates an expected call of Config
func (*MockGenerationMockRecorder) Created ¶
func (mr *MockGenerationMockRecorder) Created() *gomock.Call
Created indicates an expected call of Created
func (*MockGenerationMockRecorder) CreatedBy ¶
func (mr *MockGenerationMockRecorder) CreatedBy() *gomock.Call
CreatedBy indicates an expected call of CreatedBy
func (*MockGenerationMockRecorder) GenerationId ¶
func (mr *MockGenerationMockRecorder) GenerationId() *gomock.Call
GenerationId indicates an expected call of GenerationId
type MockModel ¶
type MockModel struct {
// contains filtered or unexported fields
}
MockModel is a mock of Model interface
func NewMockModel ¶
func NewMockModel(ctrl *gomock.Controller) *MockModel
NewMockModel creates a new mock instance
func (*MockModel) Branch ¶
func (m *MockModel) Branch(arg0 string) (modelgeneration.Generation, error)
Branch mocks base method
func (*MockModel) Branches ¶
func (m *MockModel) Branches() ([]modelgeneration.Generation, error)
Branches mocks base method
func (*MockModel) EXPECT ¶
func (m *MockModel) EXPECT() *MockModelMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockModel) Generation ¶
func (m *MockModel) Generation(arg0 int) (modelgeneration.Generation, error)
Generation mocks base method
func (*MockModel) Generations ¶
func (m *MockModel) Generations() ([]modelgeneration.Generation, error)
Generations mocks base method
type MockModelCache ¶
type MockModelCache struct {
// contains filtered or unexported fields
}
MockModelCache is a mock of ModelCache interface
func NewMockModelCache ¶
func NewMockModelCache(ctrl *gomock.Controller) *MockModelCache
NewMockModelCache creates a new mock instance
func (*MockModelCache) Branch ¶
func (m *MockModelCache) Branch(arg0 string) (cache.Branch, error)
Branch mocks base method
func (*MockModelCache) EXPECT ¶
func (m *MockModelCache) EXPECT() *MockModelCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockModelCacheMockRecorder ¶
type MockModelCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockModelCacheMockRecorder is the mock recorder for MockModelCache
func (*MockModelCacheMockRecorder) Branch ¶
func (mr *MockModelCacheMockRecorder) Branch(arg0 interface{}) *gomock.Call
Branch indicates an expected call of Branch
type MockModelMockRecorder ¶
type MockModelMockRecorder struct {
// contains filtered or unexported fields
}
MockModelMockRecorder is the mock recorder for MockModel
func (*MockModelMockRecorder) AddBranch ¶
func (mr *MockModelMockRecorder) AddBranch(arg0, arg1 interface{}) *gomock.Call
AddBranch indicates an expected call of AddBranch
func (*MockModelMockRecorder) Branch ¶
func (mr *MockModelMockRecorder) Branch(arg0 interface{}) *gomock.Call
Branch indicates an expected call of Branch
func (*MockModelMockRecorder) Branches ¶
func (mr *MockModelMockRecorder) Branches() *gomock.Call
Branches indicates an expected call of Branches
func (*MockModelMockRecorder) Generation ¶
func (mr *MockModelMockRecorder) Generation(arg0 interface{}) *gomock.Call
Generation indicates an expected call of Generation
func (*MockModelMockRecorder) Generations ¶
func (mr *MockModelMockRecorder) Generations() *gomock.Call
Generations indicates an expected call of Generations
func (*MockModelMockRecorder) ModelTag ¶
func (mr *MockModelMockRecorder) ModelTag() *gomock.Call
ModelTag indicates an expected call of ModelTag
type MockState ¶
type MockState struct {
// contains filtered or unexported fields
}
MockState is a mock of State interface
func NewMockState ¶
func NewMockState(ctrl *gomock.Controller) *MockState
NewMockState creates a new mock instance
func (*MockState) Application ¶
func (m *MockState) Application(arg0 string) (modelgeneration.Application, error)
Application mocks base method
func (*MockState) ControllerTag ¶
func (m *MockState) ControllerTag() names.ControllerTag
ControllerTag mocks base method
func (*MockState) EXPECT ¶
func (m *MockState) EXPECT() *MockStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockStateMockRecorder ¶
type MockStateMockRecorder struct {
// contains filtered or unexported fields
}
MockStateMockRecorder is the mock recorder for MockState
func (*MockStateMockRecorder) Application ¶
func (mr *MockStateMockRecorder) Application(arg0 interface{}) *gomock.Call
Application indicates an expected call of Application
func (*MockStateMockRecorder) ControllerTag ¶
func (mr *MockStateMockRecorder) ControllerTag() *gomock.Call
ControllerTag indicates an expected call of ControllerTag
func (*MockStateMockRecorder) Model ¶
func (mr *MockStateMockRecorder) Model() *gomock.Call
Model indicates an expected call of Model