Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockApplication
- func (m *MockApplication) ApplicationTag() names.ApplicationTag
- func (m *MockApplication) Channel() params.Channel
- func (m *MockApplication) CharmOrigin() *state.CharmOrigin
- func (m *MockApplication) CharmURL() (*charm.URL, bool)
- func (m *MockApplication) EXPECT() *MockApplicationMockRecorder
- func (m *MockApplication) UnitCount() int
- type MockApplicationMockRecorder
- func (mr *MockApplicationMockRecorder) ApplicationTag() *gomock.Call
- func (mr *MockApplicationMockRecorder) Channel() *gomock.Call
- func (mr *MockApplicationMockRecorder) CharmOrigin() *gomock.Call
- func (mr *MockApplicationMockRecorder) CharmURL() *gomock.Call
- func (mr *MockApplicationMockRecorder) UnitCount() *gomock.Call
- type MockCharmhubRefreshClient
- func (m *MockCharmhubRefreshClient) EXPECT() *MockCharmhubRefreshClientMockRecorder
- func (m *MockCharmhubRefreshClient) RefreshWithMetricsOnly(arg0 context.Context, arg1 map[metrics.MetricKey]map[metrics.MetricKey]string) error
- func (m *MockCharmhubRefreshClient) RefreshWithRequestMetrics(arg0 context.Context, arg1 charmhub.RefreshConfig, ...) ([]transport.RefreshResponse, error)
- type MockCharmhubRefreshClientMockRecorder
- type MockModel
- func (m *MockModel) CloudName() string
- func (m *MockModel) CloudRegion() string
- func (m *MockModel) Config() (*config.Config, error)
- func (m *MockModel) EXPECT() *MockModelMockRecorder
- func (m *MockModel) IsControllerModel() bool
- func (m *MockModel) Metrics() (state.ModelMetrics, error)
- func (m *MockModel) ModelTag() names.ModelTag
- func (m *MockModel) UUID() string
- type MockModelMockRecorder
- func (mr *MockModelMockRecorder) CloudName() *gomock.Call
- func (mr *MockModelMockRecorder) CloudRegion() *gomock.Call
- func (mr *MockModelMockRecorder) Config() *gomock.Call
- func (mr *MockModelMockRecorder) IsControllerModel() *gomock.Call
- func (mr *MockModelMockRecorder) Metrics() *gomock.Call
- func (mr *MockModelMockRecorder) ModelTag() *gomock.Call
- func (mr *MockModelMockRecorder) UUID() *gomock.Call
- type MockState
- func (m *MockState) AddCharmPlaceholder(arg0 *charm.URL) error
- func (m *MockState) AliveRelationKeys() []string
- 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) AliveRelationKeys() *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.
func (*MockApplication) UnitCount ¶
func (m *MockApplication) UnitCount() int
UnitCount mocks base method.
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.
func (*MockApplicationMockRecorder) UnitCount ¶
func (mr *MockApplicationMockRecorder) UnitCount() *gomock.Call
UnitCount indicates an expected call of UnitCount.
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) RefreshWithMetricsOnly ¶
func (m *MockCharmhubRefreshClient) RefreshWithMetricsOnly(arg0 context.Context, arg1 map[metrics.MetricKey]map[metrics.MetricKey]string) error
RefreshWithMetricsOnly mocks base method.
func (*MockCharmhubRefreshClient) RefreshWithRequestMetrics ¶
func (m *MockCharmhubRefreshClient) RefreshWithRequestMetrics(arg0 context.Context, arg1 charmhub.RefreshConfig, arg2 map[metrics.MetricKey]map[metrics.MetricKey]string) ([]transport.RefreshResponse, error)
RefreshWithRequestMetrics mocks base method.
type MockCharmhubRefreshClientMockRecorder ¶
type MockCharmhubRefreshClientMockRecorder struct {
// contains filtered or unexported fields
}
MockCharmhubRefreshClientMockRecorder is the mock recorder for MockCharmhubRefreshClient.
func (*MockCharmhubRefreshClientMockRecorder) RefreshWithMetricsOnly ¶
func (mr *MockCharmhubRefreshClientMockRecorder) RefreshWithMetricsOnly(arg0, arg1 interface{}) *gomock.Call
RefreshWithMetricsOnly indicates an expected call of RefreshWithMetricsOnly.
func (*MockCharmhubRefreshClientMockRecorder) RefreshWithRequestMetrics ¶
func (mr *MockCharmhubRefreshClientMockRecorder) RefreshWithRequestMetrics(arg0, arg1, arg2 interface{}) *gomock.Call
RefreshWithRequestMetrics indicates an expected call of RefreshWithRequestMetrics.
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.
func (*MockModel) Metrics ¶
func (m *MockModel) Metrics() (state.ModelMetrics, error)
Metrics 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) Metrics ¶
func (mr *MockModelMockRecorder) Metrics() *gomock.Call
Metrics indicates an expected call of Metrics.
func (*MockModelMockRecorder) ModelTag ¶
func (mr *MockModelMockRecorder) ModelTag() *gomock.Call
ModelTag indicates an expected call of ModelTag.
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) AliveRelationKeys ¶
AliveRelationKeys 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) AliveRelationKeys ¶
func (mr *MockStateMockRecorder) AliveRelationKeys() *gomock.Call
AliveRelationKeys indicates an expected call of AliveRelationKeys.
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.