mocks

package
v0.0.0-...-b0bff92 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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

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

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

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) CloudName

func (m *MockModel) CloudName() string

CloudName mocks base method.

func (*MockModel) CloudRegion

func (m *MockModel) CloudRegion() string

CloudRegion mocks base method.

func (*MockModel) Config

func (m *MockModel) Config() (*config.Config, error)

Config 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

func (m *MockModel) IsControllerModel() bool

IsControllerModel mocks base method.

func (*MockModel) Metrics

func (m *MockModel) Metrics() (state.ModelMetrics, error)

Metrics mocks base method.

func (*MockModel) ModelTag

func (m *MockModel) ModelTag() names.ModelTag

ModelTag mocks base method.

func (*MockModel) UUID

func (m *MockModel) UUID() string

UUID 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

func (m *MockState) AddCharmPlaceholder(arg0 *charm.URL) error

AddCharmPlaceholder mocks base method.

func (*MockState) AliveRelationKeys

func (m *MockState) AliveRelationKeys() []string

AliveRelationKeys mocks base method.

func (*MockState) AllApplications

func (m *MockState) AllApplications() ([]charmrevisionupdater.Application, error)

AllApplications mocks base method.

func (*MockState) Charm

func (m *MockState) Charm(arg0 *charm.URL) (*state.Charm, error)

Charm mocks base method.

func (*MockState) Cloud

func (m *MockState) Cloud(arg0 string) (cloud.Cloud, error)

Cloud mocks base method.

func (*MockState) ControllerConfig

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

ControllerConfig mocks base method.

func (*MockState) ControllerUUID

func (m *MockState) ControllerUUID() string

ControllerUUID mocks base method.

func (*MockState) EXPECT

func (m *MockState) EXPECT() *MockStateMockRecorder

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

func (*MockState) Model

func (m *MockState) Model() (charmrevisionupdater.Model, error)

Model mocks base method.

func (*MockState) Resources

func (m *MockState) Resources() (state.Resources, error)

Resources mocks base method.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL