Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockApplication
- type MockApplicationMockRecorder
- type MockCharmhubRefreshClient
- type MockCharmhubRefreshClientMockRecorder
- type MockModel
- type MockModelMockRecorder
- type MockState
- func (m *MockState) AddCharmPlaceholder(arg0 *charm.URL) error
- func (m *MockState) AllApplications() ([]charmrevisionupdater.Application, error)
- func (m *MockState) Charm(arg0 *charm.URL) (*state.Charm, error)
- func (m *MockState) Cloud(arg0 string) (cloud.Cloud, error)
- func (m *MockState) ControllerConfig() (controller.Config, error)
- func (m *MockState) ControllerUUID() string
- func (m *MockState) EXPECT() *MockStateMockRecorder
- func (m *MockState) Model() (charmrevisionupdater.Model, error)
- func (m *MockState) Resources() (state.Resources, error)
- type MockStateMockRecorder
- func (mr *MockStateMockRecorder) AddCharmPlaceholder(arg0 interface{}) *gomock.Call
- func (mr *MockStateMockRecorder) AllApplications() *gomock.Call
- func (mr *MockStateMockRecorder) Charm(arg0 interface{}) *gomock.Call
- func (mr *MockStateMockRecorder) Cloud(arg0 interface{}) *gomock.Call
- func (mr *MockStateMockRecorder) ControllerConfig() *gomock.Call
- func (mr *MockStateMockRecorder) ControllerUUID() *gomock.Call
- func (mr *MockStateMockRecorder) Model() *gomock.Call
- func (mr *MockStateMockRecorder) Resources() *gomock.Call
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) ApplicationTag ¶
func (m *MockApplication) ApplicationTag() names.ApplicationTag
ApplicationTag mocks base method
func (*MockApplication) Channel ¶
func (m *MockApplication) Channel() params.Channel
Channel mocks base method
func (*MockApplication) CharmOrigin ¶
func (m *MockApplication) CharmOrigin() *state.CharmOrigin
CharmOrigin mocks base method
func (*MockApplication) CharmURL ¶
func (m *MockApplication) CharmURL() (*charm.URL, bool)
CharmURL mocks base method
func (*MockApplication) EXPECT ¶
func (m *MockApplication) EXPECT() *MockApplicationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockApplicationMockRecorder ¶
type MockApplicationMockRecorder struct {
// contains filtered or unexported fields
}
MockApplicationMockRecorder is the mock recorder for MockApplication
func (*MockApplicationMockRecorder) ApplicationTag ¶
func (mr *MockApplicationMockRecorder) ApplicationTag() *gomock.Call
ApplicationTag indicates an expected call of ApplicationTag
func (*MockApplicationMockRecorder) Channel ¶
func (mr *MockApplicationMockRecorder) Channel() *gomock.Call
Channel indicates an expected call of Channel
func (*MockApplicationMockRecorder) CharmOrigin ¶
func (mr *MockApplicationMockRecorder) CharmOrigin() *gomock.Call
CharmOrigin indicates an expected call of CharmOrigin
func (*MockApplicationMockRecorder) CharmURL ¶
func (mr *MockApplicationMockRecorder) CharmURL() *gomock.Call
CharmURL indicates an expected call of CharmURL
type MockCharmhubRefreshClient ¶
type MockCharmhubRefreshClient struct {
// contains filtered or unexported fields
}
MockCharmhubRefreshClient is a mock of CharmhubRefreshClient interface
func NewMockCharmhubRefreshClient ¶
func NewMockCharmhubRefreshClient(ctrl *gomock.Controller) *MockCharmhubRefreshClient
NewMockCharmhubRefreshClient creates a new mock instance
func (*MockCharmhubRefreshClient) EXPECT ¶
func (m *MockCharmhubRefreshClient) EXPECT() *MockCharmhubRefreshClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockCharmhubRefreshClient) Refresh ¶
func (m *MockCharmhubRefreshClient) Refresh(arg0 context.Context, arg1 charmhub.RefreshConfig) ([]transport.RefreshResponse, error)
Refresh mocks base method
type MockCharmhubRefreshClientMockRecorder ¶
type MockCharmhubRefreshClientMockRecorder struct {
// contains filtered or unexported fields
}
MockCharmhubRefreshClientMockRecorder is the mock recorder for MockCharmhubRefreshClient
func (*MockCharmhubRefreshClientMockRecorder) Refresh ¶
func (mr *MockCharmhubRefreshClientMockRecorder) Refresh(arg0, arg1 interface{}) *gomock.Call
Refresh indicates an expected call of Refresh
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) CloudRegion ¶
CloudRegion 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) IsControllerModel ¶
IsControllerModel mocks base method
type MockModelMockRecorder ¶
type MockModelMockRecorder struct {
// contains filtered or unexported fields
}
MockModelMockRecorder is the mock recorder for MockModel
func (*MockModelMockRecorder) CloudName ¶
func (mr *MockModelMockRecorder) CloudName() *gomock.Call
CloudName indicates an expected call of CloudName
func (*MockModelMockRecorder) CloudRegion ¶
func (mr *MockModelMockRecorder) CloudRegion() *gomock.Call
CloudRegion indicates an expected call of CloudRegion
func (*MockModelMockRecorder) Config ¶
func (mr *MockModelMockRecorder) Config() *gomock.Call
Config indicates an expected call of Config
func (*MockModelMockRecorder) IsControllerModel ¶
func (mr *MockModelMockRecorder) IsControllerModel() *gomock.Call
IsControllerModel indicates an expected call of IsControllerModel
func (*MockModelMockRecorder) UUID ¶
func (mr *MockModelMockRecorder) UUID() *gomock.Call
UUID indicates an expected call of UUID
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) AddCharmPlaceholder ¶
AddCharmPlaceholder mocks base method
func (*MockState) AllApplications ¶
func (m *MockState) AllApplications() ([]charmrevisionupdater.Application, error)
AllApplications mocks base method
func (*MockState) ControllerConfig ¶
func (m *MockState) ControllerConfig() (controller.Config, error)
ControllerConfig mocks base method
func (*MockState) ControllerUUID ¶
ControllerUUID 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) AddCharmPlaceholder ¶
func (mr *MockStateMockRecorder) AddCharmPlaceholder(arg0 interface{}) *gomock.Call
AddCharmPlaceholder indicates an expected call of AddCharmPlaceholder
func (*MockStateMockRecorder) AllApplications ¶
func (mr *MockStateMockRecorder) AllApplications() *gomock.Call
AllApplications indicates an expected call of AllApplications
func (*MockStateMockRecorder) Charm ¶
func (mr *MockStateMockRecorder) Charm(arg0 interface{}) *gomock.Call
Charm indicates an expected call of Charm
func (*MockStateMockRecorder) Cloud ¶
func (mr *MockStateMockRecorder) Cloud(arg0 interface{}) *gomock.Call
Cloud indicates an expected call of Cloud
func (*MockStateMockRecorder) ControllerConfig ¶
func (mr *MockStateMockRecorder) ControllerConfig() *gomock.Call
ControllerConfig indicates an expected call of ControllerConfig
func (*MockStateMockRecorder) ControllerUUID ¶
func (mr *MockStateMockRecorder) ControllerUUID() *gomock.Call
ControllerUUID indicates an expected call of ControllerUUID
func (*MockStateMockRecorder) Model ¶
func (mr *MockStateMockRecorder) Model() *gomock.Call
Model indicates an expected call of Model
func (*MockStateMockRecorder) Resources ¶
func (mr *MockStateMockRecorder) Resources() *gomock.Call
Resources indicates an expected call of Resources