Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockApplication
- type MockApplicationAllUnitsCall
- func (c *MockApplicationAllUnitsCall) Do(f func() ([]interfaces.Unit, error)) *MockApplicationAllUnitsCall
- func (c *MockApplicationAllUnitsCall) DoAndReturn(f func() ([]interfaces.Unit, error)) *MockApplicationAllUnitsCall
- func (c *MockApplicationAllUnitsCall) Return(arg0 []interfaces.Unit, arg1 error) *MockApplicationAllUnitsCall
- type MockApplicationConstraintsCall
- func (c *MockApplicationConstraintsCall) Do(f func() (constraints.Value, error)) *MockApplicationConstraintsCall
- func (c *MockApplicationConstraintsCall) DoAndReturn(f func() (constraints.Value, error)) *MockApplicationConstraintsCall
- func (c *MockApplicationConstraintsCall) Return(arg0 constraints.Value, arg1 error) *MockApplicationConstraintsCall
- type MockApplicationIsPrincipalCall
- type MockApplicationMockRecorder
- type MockBackendState
- func (m *MockBackendState) AddCharmMetadata(arg0 state.CharmInfo) (state.CharmRefFull, error)
- func (m *MockBackendState) Application(arg0 string) (interfaces.Application, error)
- func (m *MockBackendState) Charm(arg0 string) (state.CharmRefFull, error)
- func (m *MockBackendState) ControllerTag() names.ControllerTag
- func (m *MockBackendState) EXPECT() *MockBackendStateMockRecorder
- func (m *MockBackendState) Machine(arg0 string) (interfaces.Machine, error)
- func (m *MockBackendState) ModelConstraints() (constraints.Value, error)
- type MockBackendStateAddCharmMetadataCall
- func (c *MockBackendStateAddCharmMetadataCall) Do(f func(state.CharmInfo) (state.CharmRefFull, error)) *MockBackendStateAddCharmMetadataCall
- func (c *MockBackendStateAddCharmMetadataCall) DoAndReturn(f func(state.CharmInfo) (state.CharmRefFull, error)) *MockBackendStateAddCharmMetadataCall
- func (c *MockBackendStateAddCharmMetadataCall) Return(arg0 state.CharmRefFull, arg1 error) *MockBackendStateAddCharmMetadataCall
- type MockBackendStateApplicationCall
- func (c *MockBackendStateApplicationCall) Do(f func(string) (interfaces.Application, error)) *MockBackendStateApplicationCall
- func (c *MockBackendStateApplicationCall) DoAndReturn(f func(string) (interfaces.Application, error)) *MockBackendStateApplicationCall
- func (c *MockBackendStateApplicationCall) Return(arg0 interfaces.Application, arg1 error) *MockBackendStateApplicationCall
- type MockBackendStateCharmCall
- func (c *MockBackendStateCharmCall) Do(f func(string) (state.CharmRefFull, error)) *MockBackendStateCharmCall
- func (c *MockBackendStateCharmCall) DoAndReturn(f func(string) (state.CharmRefFull, error)) *MockBackendStateCharmCall
- func (c *MockBackendStateCharmCall) Return(arg0 state.CharmRefFull, arg1 error) *MockBackendStateCharmCall
- type MockBackendStateControllerTagCall
- func (c *MockBackendStateControllerTagCall) Do(f func() names.ControllerTag) *MockBackendStateControllerTagCall
- func (c *MockBackendStateControllerTagCall) DoAndReturn(f func() names.ControllerTag) *MockBackendStateControllerTagCall
- func (c *MockBackendStateControllerTagCall) Return(arg0 names.ControllerTag) *MockBackendStateControllerTagCall
- type MockBackendStateMachineCall
- func (c *MockBackendStateMachineCall) Do(f func(string) (interfaces.Machine, error)) *MockBackendStateMachineCall
- func (c *MockBackendStateMachineCall) DoAndReturn(f func(string) (interfaces.Machine, error)) *MockBackendStateMachineCall
- func (c *MockBackendStateMachineCall) Return(arg0 interfaces.Machine, arg1 error) *MockBackendStateMachineCall
- type MockBackendStateMockRecorder
- func (mr *MockBackendStateMockRecorder) AddCharmMetadata(arg0 any) *MockBackendStateAddCharmMetadataCall
- func (mr *MockBackendStateMockRecorder) Application(arg0 any) *MockBackendStateApplicationCall
- func (mr *MockBackendStateMockRecorder) Charm(arg0 any) *MockBackendStateCharmCall
- func (mr *MockBackendStateMockRecorder) ControllerTag() *MockBackendStateControllerTagCall
- func (mr *MockBackendStateMockRecorder) Machine(arg0 any) *MockBackendStateMachineCall
- func (mr *MockBackendStateMockRecorder) ModelConstraints() *MockBackendStateModelConstraintsCall
- type MockBackendStateModelConstraintsCall
- func (c *MockBackendStateModelConstraintsCall) Do(f func() (constraints.Value, error)) *MockBackendStateModelConstraintsCall
- func (c *MockBackendStateModelConstraintsCall) DoAndReturn(f func() (constraints.Value, error)) *MockBackendStateModelConstraintsCall
- func (c *MockBackendStateModelConstraintsCall) Return(arg0 constraints.Value, arg1 error) *MockBackendStateModelConstraintsCall
- type MockCharmArchive
- func (m *MockCharmArchive) Actions() *charm0.Actions
- func (m *MockCharmArchive) Config() *charm0.Config
- func (m *MockCharmArchive) EXPECT() *MockCharmArchiveMockRecorder
- func (m *MockCharmArchive) LXDProfile() *charm0.LXDProfile
- func (m *MockCharmArchive) Manifest() *charm0.Manifest
- func (m *MockCharmArchive) Meta() *charm0.Meta
- func (m *MockCharmArchive) Revision() int
- func (m *MockCharmArchive) Version() string
- type MockCharmArchiveActionsCall
- type MockCharmArchiveConfigCall
- type MockCharmArchiveLXDProfileCall
- func (c *MockCharmArchiveLXDProfileCall) Do(f func() *charm0.LXDProfile) *MockCharmArchiveLXDProfileCall
- func (c *MockCharmArchiveLXDProfileCall) DoAndReturn(f func() *charm0.LXDProfile) *MockCharmArchiveLXDProfileCall
- func (c *MockCharmArchiveLXDProfileCall) Return(arg0 *charm0.LXDProfile) *MockCharmArchiveLXDProfileCall
- type MockCharmArchiveManifestCall
- func (c *MockCharmArchiveManifestCall) Do(f func() *charm0.Manifest) *MockCharmArchiveManifestCall
- func (c *MockCharmArchiveManifestCall) DoAndReturn(f func() *charm0.Manifest) *MockCharmArchiveManifestCall
- func (c *MockCharmArchiveManifestCall) Return(arg0 *charm0.Manifest) *MockCharmArchiveManifestCall
- type MockCharmArchiveMetaCall
- type MockCharmArchiveMockRecorder
- func (mr *MockCharmArchiveMockRecorder) Actions() *MockCharmArchiveActionsCall
- func (mr *MockCharmArchiveMockRecorder) Config() *MockCharmArchiveConfigCall
- func (mr *MockCharmArchiveMockRecorder) LXDProfile() *MockCharmArchiveLXDProfileCall
- func (mr *MockCharmArchiveMockRecorder) Manifest() *MockCharmArchiveManifestCall
- func (mr *MockCharmArchiveMockRecorder) Meta() *MockCharmArchiveMetaCall
- func (mr *MockCharmArchiveMockRecorder) Revision() *MockCharmArchiveRevisionCall
- func (mr *MockCharmArchiveMockRecorder) Version() *MockCharmArchiveVersionCall
- type MockCharmArchiveRevisionCall
- type MockCharmArchiveVersionCall
- type MockDownloader
- type MockDownloaderDownloadAndStoreCall
- func (c *MockDownloaderDownloadAndStoreCall) Do(f func(context.Context, *charm0.URL, charm.Origin, bool) (charm.Origin, error)) *MockDownloaderDownloadAndStoreCall
- func (c *MockDownloaderDownloadAndStoreCall) DoAndReturn(f func(context.Context, *charm0.URL, charm.Origin, bool) (charm.Origin, error)) *MockDownloaderDownloadAndStoreCall
- func (c *MockDownloaderDownloadAndStoreCall) Return(arg0 charm.Origin, arg1 error) *MockDownloaderDownloadAndStoreCall
- type MockDownloaderMockRecorder
- type MockMachine
- type MockMachineConstraintsCall
- func (c *MockMachineConstraintsCall) Do(f func() (constraints.Value, error)) *MockMachineConstraintsCall
- func (c *MockMachineConstraintsCall) DoAndReturn(f func() (constraints.Value, error)) *MockMachineConstraintsCall
- func (c *MockMachineConstraintsCall) Return(arg0 constraints.Value, arg1 error) *MockMachineConstraintsCall
- type MockMachineMockRecorder
- type MockRepository
- func (m *MockRepository) Download(arg0 context.Context, arg1 string, arg2 charm.Origin, arg3 string) (charm.Origin, *charmhub.Digest, error)
- func (m *MockRepository) DownloadCharm(arg0 context.Context, arg1 string, arg2 charm.Origin, arg3 string) (charm.CharmArchive, charm.Origin, *charmhub.Digest, error)
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) GetDownloadURL(arg0 context.Context, arg1 string, arg2 charm.Origin) (*url.URL, charm.Origin, error)
- func (m *MockRepository) ListResources(arg0 context.Context, arg1 string, arg2 charm.Origin) ([]resource.Resource, error)
- func (m *MockRepository) ResolveForDeploy(arg0 context.Context, arg1 charm.CharmID) (charm.ResolvedDataForDeploy, error)
- func (m *MockRepository) ResolveResources(arg0 context.Context, arg1 []resource.Resource, arg2 charm.CharmID) ([]resource.Resource, error)
- func (m *MockRepository) ResolveWithPreferredChannel(arg0 context.Context, arg1 string, arg2 charm.Origin) (charm.ResolvedData, error)
- type MockRepositoryDownloadCall
- type MockRepositoryDownloadCharmCall
- func (c *MockRepositoryDownloadCharmCall) Do(...) *MockRepositoryDownloadCharmCall
- func (c *MockRepositoryDownloadCharmCall) DoAndReturn(...) *MockRepositoryDownloadCharmCall
- func (c *MockRepositoryDownloadCharmCall) Return(arg0 charm.CharmArchive, arg1 charm.Origin, arg2 *charmhub.Digest, arg3 error) *MockRepositoryDownloadCharmCall
- type MockRepositoryFactory
- type MockRepositoryFactoryGetCharmRepositoryCall
- func (c *MockRepositoryFactoryGetCharmRepositoryCall) Do(f func(context.Context, charm.Source) (charm.Repository, error)) *MockRepositoryFactoryGetCharmRepositoryCall
- func (c *MockRepositoryFactoryGetCharmRepositoryCall) DoAndReturn(f func(context.Context, charm.Source) (charm.Repository, error)) *MockRepositoryFactoryGetCharmRepositoryCall
- func (c *MockRepositoryFactoryGetCharmRepositoryCall) Return(arg0 charm.Repository, arg1 error) *MockRepositoryFactoryGetCharmRepositoryCall
- type MockRepositoryFactoryMockRecorder
- type MockRepositoryGetDownloadURLCall
- func (c *MockRepositoryGetDownloadURLCall) Do(f func(context.Context, string, charm.Origin) (*url.URL, charm.Origin, error)) *MockRepositoryGetDownloadURLCall
- func (c *MockRepositoryGetDownloadURLCall) DoAndReturn(f func(context.Context, string, charm.Origin) (*url.URL, charm.Origin, error)) *MockRepositoryGetDownloadURLCall
- func (c *MockRepositoryGetDownloadURLCall) Return(arg0 *url.URL, arg1 charm.Origin, arg2 error) *MockRepositoryGetDownloadURLCall
- type MockRepositoryListResourcesCall
- func (c *MockRepositoryListResourcesCall) Do(f func(context.Context, string, charm.Origin) ([]resource.Resource, error)) *MockRepositoryListResourcesCall
- func (c *MockRepositoryListResourcesCall) DoAndReturn(f func(context.Context, string, charm.Origin) ([]resource.Resource, error)) *MockRepositoryListResourcesCall
- func (c *MockRepositoryListResourcesCall) Return(arg0 []resource.Resource, arg1 error) *MockRepositoryListResourcesCall
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) Download(arg0, arg1, arg2, arg3 any) *MockRepositoryDownloadCall
- func (mr *MockRepositoryMockRecorder) DownloadCharm(arg0, arg1, arg2, arg3 any) *MockRepositoryDownloadCharmCall
- func (mr *MockRepositoryMockRecorder) GetDownloadURL(arg0, arg1, arg2 any) *MockRepositoryGetDownloadURLCall
- func (mr *MockRepositoryMockRecorder) ListResources(arg0, arg1, arg2 any) *MockRepositoryListResourcesCall
- func (mr *MockRepositoryMockRecorder) ResolveForDeploy(arg0, arg1 any) *MockRepositoryResolveForDeployCall
- func (mr *MockRepositoryMockRecorder) ResolveResources(arg0, arg1, arg2 any) *MockRepositoryResolveResourcesCall
- func (mr *MockRepositoryMockRecorder) ResolveWithPreferredChannel(arg0, arg1, arg2 any) *MockRepositoryResolveWithPreferredChannelCall
- type MockRepositoryResolveForDeployCall
- func (c *MockRepositoryResolveForDeployCall) Do(f func(context.Context, charm.CharmID) (charm.ResolvedDataForDeploy, error)) *MockRepositoryResolveForDeployCall
- func (c *MockRepositoryResolveForDeployCall) DoAndReturn(f func(context.Context, charm.CharmID) (charm.ResolvedDataForDeploy, error)) *MockRepositoryResolveForDeployCall
- func (c *MockRepositoryResolveForDeployCall) Return(arg0 charm.ResolvedDataForDeploy, arg1 error) *MockRepositoryResolveForDeployCall
- type MockRepositoryResolveResourcesCall
- func (c *MockRepositoryResolveResourcesCall) Do(...) *MockRepositoryResolveResourcesCall
- func (c *MockRepositoryResolveResourcesCall) DoAndReturn(...) *MockRepositoryResolveResourcesCall
- func (c *MockRepositoryResolveResourcesCall) Return(arg0 []resource.Resource, arg1 error) *MockRepositoryResolveResourcesCall
- type MockRepositoryResolveWithPreferredChannelCall
- func (c *MockRepositoryResolveWithPreferredChannelCall) Do(f func(context.Context, string, charm.Origin) (charm.ResolvedData, error)) *MockRepositoryResolveWithPreferredChannelCall
- func (c *MockRepositoryResolveWithPreferredChannelCall) DoAndReturn(f func(context.Context, string, charm.Origin) (charm.ResolvedData, error)) *MockRepositoryResolveWithPreferredChannelCall
- func (c *MockRepositoryResolveWithPreferredChannelCall) Return(arg0 charm.ResolvedData, arg1 error) *MockRepositoryResolveWithPreferredChannelCall
- type MockUnit
- type MockUnitAssignedMachineIdCall
- func (c *MockUnitAssignedMachineIdCall) Do(f func() (string, error)) *MockUnitAssignedMachineIdCall
- func (c *MockUnitAssignedMachineIdCall) DoAndReturn(f func() (string, error)) *MockUnitAssignedMachineIdCall
- func (c *MockUnitAssignedMachineIdCall) Return(arg0 string, arg1 error) *MockUnitAssignedMachineIdCall
- type MockUnitMockRecorder
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) AllUnits ¶
func (m *MockApplication) AllUnits() ([]interfaces.Unit, error)
AllUnits mocks base method.
func (*MockApplication) Constraints ¶
func (m *MockApplication) Constraints() (constraints.Value, error)
Constraints 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) IsPrincipal ¶
func (m *MockApplication) IsPrincipal() bool
IsPrincipal mocks base method.
type MockApplicationAllUnitsCall ¶
MockApplicationAllUnitsCall wrap *gomock.Call
func (*MockApplicationAllUnitsCall) Do ¶
func (c *MockApplicationAllUnitsCall) Do(f func() ([]interfaces.Unit, error)) *MockApplicationAllUnitsCall
Do rewrite *gomock.Call.Do
func (*MockApplicationAllUnitsCall) DoAndReturn ¶
func (c *MockApplicationAllUnitsCall) DoAndReturn(f func() ([]interfaces.Unit, error)) *MockApplicationAllUnitsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApplicationAllUnitsCall) Return ¶
func (c *MockApplicationAllUnitsCall) Return(arg0 []interfaces.Unit, arg1 error) *MockApplicationAllUnitsCall
Return rewrite *gomock.Call.Return
type MockApplicationConstraintsCall ¶
MockApplicationConstraintsCall wrap *gomock.Call
func (*MockApplicationConstraintsCall) Do ¶
func (c *MockApplicationConstraintsCall) Do(f func() (constraints.Value, error)) *MockApplicationConstraintsCall
Do rewrite *gomock.Call.Do
func (*MockApplicationConstraintsCall) DoAndReturn ¶
func (c *MockApplicationConstraintsCall) DoAndReturn(f func() (constraints.Value, error)) *MockApplicationConstraintsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApplicationConstraintsCall) Return ¶
func (c *MockApplicationConstraintsCall) Return(arg0 constraints.Value, arg1 error) *MockApplicationConstraintsCall
Return rewrite *gomock.Call.Return
type MockApplicationIsPrincipalCall ¶
MockApplicationIsPrincipalCall wrap *gomock.Call
func (*MockApplicationIsPrincipalCall) Do ¶
func (c *MockApplicationIsPrincipalCall) Do(f func() bool) *MockApplicationIsPrincipalCall
Do rewrite *gomock.Call.Do
func (*MockApplicationIsPrincipalCall) DoAndReturn ¶
func (c *MockApplicationIsPrincipalCall) DoAndReturn(f func() bool) *MockApplicationIsPrincipalCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockApplicationIsPrincipalCall) Return ¶
func (c *MockApplicationIsPrincipalCall) Return(arg0 bool) *MockApplicationIsPrincipalCall
Return rewrite *gomock.Call.Return
type MockApplicationMockRecorder ¶
type MockApplicationMockRecorder struct {
// contains filtered or unexported fields
}
MockApplicationMockRecorder is the mock recorder for MockApplication.
func (*MockApplicationMockRecorder) AllUnits ¶
func (mr *MockApplicationMockRecorder) AllUnits() *MockApplicationAllUnitsCall
AllUnits indicates an expected call of AllUnits.
func (*MockApplicationMockRecorder) Constraints ¶
func (mr *MockApplicationMockRecorder) Constraints() *MockApplicationConstraintsCall
Constraints indicates an expected call of Constraints.
func (*MockApplicationMockRecorder) IsPrincipal ¶
func (mr *MockApplicationMockRecorder) IsPrincipal() *MockApplicationIsPrincipalCall
IsPrincipal indicates an expected call of IsPrincipal.
type MockBackendState ¶
type MockBackendState struct {
// contains filtered or unexported fields
}
MockBackendState is a mock of BackendState interface.
func NewMockBackendState ¶
func NewMockBackendState(ctrl *gomock.Controller) *MockBackendState
NewMockBackendState creates a new mock instance.
func (*MockBackendState) AddCharmMetadata ¶
func (m *MockBackendState) AddCharmMetadata(arg0 state.CharmInfo) (state.CharmRefFull, error)
AddCharmMetadata mocks base method.
func (*MockBackendState) Application ¶
func (m *MockBackendState) Application(arg0 string) (interfaces.Application, error)
Application mocks base method.
func (*MockBackendState) Charm ¶
func (m *MockBackendState) Charm(arg0 string) (state.CharmRefFull, error)
Charm mocks base method.
func (*MockBackendState) ControllerTag ¶
func (m *MockBackendState) ControllerTag() names.ControllerTag
ControllerTag mocks base method.
func (*MockBackendState) EXPECT ¶
func (m *MockBackendState) EXPECT() *MockBackendStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBackendState) Machine ¶
func (m *MockBackendState) Machine(arg0 string) (interfaces.Machine, error)
Machine mocks base method.
func (*MockBackendState) ModelConstraints ¶
func (m *MockBackendState) ModelConstraints() (constraints.Value, error)
ModelConstraints mocks base method.
type MockBackendStateAddCharmMetadataCall ¶
MockBackendStateAddCharmMetadataCall wrap *gomock.Call
func (*MockBackendStateAddCharmMetadataCall) Do ¶
func (c *MockBackendStateAddCharmMetadataCall) Do(f func(state.CharmInfo) (state.CharmRefFull, error)) *MockBackendStateAddCharmMetadataCall
Do rewrite *gomock.Call.Do
func (*MockBackendStateAddCharmMetadataCall) DoAndReturn ¶
func (c *MockBackendStateAddCharmMetadataCall) DoAndReturn(f func(state.CharmInfo) (state.CharmRefFull, error)) *MockBackendStateAddCharmMetadataCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendStateAddCharmMetadataCall) Return ¶
func (c *MockBackendStateAddCharmMetadataCall) Return(arg0 state.CharmRefFull, arg1 error) *MockBackendStateAddCharmMetadataCall
Return rewrite *gomock.Call.Return
type MockBackendStateApplicationCall ¶
MockBackendStateApplicationCall wrap *gomock.Call
func (*MockBackendStateApplicationCall) Do ¶
func (c *MockBackendStateApplicationCall) Do(f func(string) (interfaces.Application, error)) *MockBackendStateApplicationCall
Do rewrite *gomock.Call.Do
func (*MockBackendStateApplicationCall) DoAndReturn ¶
func (c *MockBackendStateApplicationCall) DoAndReturn(f func(string) (interfaces.Application, error)) *MockBackendStateApplicationCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendStateApplicationCall) Return ¶
func (c *MockBackendStateApplicationCall) Return(arg0 interfaces.Application, arg1 error) *MockBackendStateApplicationCall
Return rewrite *gomock.Call.Return
type MockBackendStateCharmCall ¶
MockBackendStateCharmCall wrap *gomock.Call
func (*MockBackendStateCharmCall) Do ¶
func (c *MockBackendStateCharmCall) Do(f func(string) (state.CharmRefFull, error)) *MockBackendStateCharmCall
Do rewrite *gomock.Call.Do
func (*MockBackendStateCharmCall) DoAndReturn ¶
func (c *MockBackendStateCharmCall) DoAndReturn(f func(string) (state.CharmRefFull, error)) *MockBackendStateCharmCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendStateCharmCall) Return ¶
func (c *MockBackendStateCharmCall) Return(arg0 state.CharmRefFull, arg1 error) *MockBackendStateCharmCall
Return rewrite *gomock.Call.Return
type MockBackendStateControllerTagCall ¶
MockBackendStateControllerTagCall wrap *gomock.Call
func (*MockBackendStateControllerTagCall) Do ¶
func (c *MockBackendStateControllerTagCall) Do(f func() names.ControllerTag) *MockBackendStateControllerTagCall
Do rewrite *gomock.Call.Do
func (*MockBackendStateControllerTagCall) DoAndReturn ¶
func (c *MockBackendStateControllerTagCall) DoAndReturn(f func() names.ControllerTag) *MockBackendStateControllerTagCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendStateControllerTagCall) Return ¶
func (c *MockBackendStateControllerTagCall) Return(arg0 names.ControllerTag) *MockBackendStateControllerTagCall
Return rewrite *gomock.Call.Return
type MockBackendStateMachineCall ¶
MockBackendStateMachineCall wrap *gomock.Call
func (*MockBackendStateMachineCall) Do ¶
func (c *MockBackendStateMachineCall) Do(f func(string) (interfaces.Machine, error)) *MockBackendStateMachineCall
Do rewrite *gomock.Call.Do
func (*MockBackendStateMachineCall) DoAndReturn ¶
func (c *MockBackendStateMachineCall) DoAndReturn(f func(string) (interfaces.Machine, error)) *MockBackendStateMachineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendStateMachineCall) Return ¶
func (c *MockBackendStateMachineCall) Return(arg0 interfaces.Machine, arg1 error) *MockBackendStateMachineCall
Return rewrite *gomock.Call.Return
type MockBackendStateMockRecorder ¶
type MockBackendStateMockRecorder struct {
// contains filtered or unexported fields
}
MockBackendStateMockRecorder is the mock recorder for MockBackendState.
func (*MockBackendStateMockRecorder) AddCharmMetadata ¶
func (mr *MockBackendStateMockRecorder) AddCharmMetadata(arg0 any) *MockBackendStateAddCharmMetadataCall
AddCharmMetadata indicates an expected call of AddCharmMetadata.
func (*MockBackendStateMockRecorder) Application ¶
func (mr *MockBackendStateMockRecorder) Application(arg0 any) *MockBackendStateApplicationCall
Application indicates an expected call of Application.
func (*MockBackendStateMockRecorder) Charm ¶
func (mr *MockBackendStateMockRecorder) Charm(arg0 any) *MockBackendStateCharmCall
Charm indicates an expected call of Charm.
func (*MockBackendStateMockRecorder) ControllerTag ¶
func (mr *MockBackendStateMockRecorder) ControllerTag() *MockBackendStateControllerTagCall
ControllerTag indicates an expected call of ControllerTag.
func (*MockBackendStateMockRecorder) Machine ¶
func (mr *MockBackendStateMockRecorder) Machine(arg0 any) *MockBackendStateMachineCall
Machine indicates an expected call of Machine.
func (*MockBackendStateMockRecorder) ModelConstraints ¶
func (mr *MockBackendStateMockRecorder) ModelConstraints() *MockBackendStateModelConstraintsCall
ModelConstraints indicates an expected call of ModelConstraints.
type MockBackendStateModelConstraintsCall ¶
MockBackendStateModelConstraintsCall wrap *gomock.Call
func (*MockBackendStateModelConstraintsCall) Do ¶
func (c *MockBackendStateModelConstraintsCall) Do(f func() (constraints.Value, error)) *MockBackendStateModelConstraintsCall
Do rewrite *gomock.Call.Do
func (*MockBackendStateModelConstraintsCall) DoAndReturn ¶
func (c *MockBackendStateModelConstraintsCall) DoAndReturn(f func() (constraints.Value, error)) *MockBackendStateModelConstraintsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBackendStateModelConstraintsCall) Return ¶
func (c *MockBackendStateModelConstraintsCall) Return(arg0 constraints.Value, arg1 error) *MockBackendStateModelConstraintsCall
Return rewrite *gomock.Call.Return
type MockCharmArchive ¶
type MockCharmArchive struct {
// contains filtered or unexported fields
}
MockCharmArchive is a mock of CharmArchive interface.
func NewMockCharmArchive ¶
func NewMockCharmArchive(ctrl *gomock.Controller) *MockCharmArchive
NewMockCharmArchive creates a new mock instance.
func (*MockCharmArchive) Actions ¶
func (m *MockCharmArchive) Actions() *charm0.Actions
Actions mocks base method.
func (*MockCharmArchive) Config ¶
func (m *MockCharmArchive) Config() *charm0.Config
Config mocks base method.
func (*MockCharmArchive) EXPECT ¶
func (m *MockCharmArchive) EXPECT() *MockCharmArchiveMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCharmArchive) LXDProfile ¶
func (m *MockCharmArchive) LXDProfile() *charm0.LXDProfile
LXDProfile mocks base method.
func (*MockCharmArchive) Manifest ¶
func (m *MockCharmArchive) Manifest() *charm0.Manifest
Manifest mocks base method.
func (*MockCharmArchive) Meta ¶
func (m *MockCharmArchive) Meta() *charm0.Meta
Meta mocks base method.
func (*MockCharmArchive) Revision ¶
func (m *MockCharmArchive) Revision() int
Revision mocks base method.
func (*MockCharmArchive) Version ¶
func (m *MockCharmArchive) Version() string
Version mocks base method.
type MockCharmArchiveActionsCall ¶
MockCharmArchiveActionsCall wrap *gomock.Call
func (*MockCharmArchiveActionsCall) Do ¶
func (c *MockCharmArchiveActionsCall) Do(f func() *charm0.Actions) *MockCharmArchiveActionsCall
Do rewrite *gomock.Call.Do
func (*MockCharmArchiveActionsCall) DoAndReturn ¶
func (c *MockCharmArchiveActionsCall) DoAndReturn(f func() *charm0.Actions) *MockCharmArchiveActionsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCharmArchiveActionsCall) Return ¶
func (c *MockCharmArchiveActionsCall) Return(arg0 *charm0.Actions) *MockCharmArchiveActionsCall
Return rewrite *gomock.Call.Return
type MockCharmArchiveConfigCall ¶
MockCharmArchiveConfigCall wrap *gomock.Call
func (*MockCharmArchiveConfigCall) Do ¶
func (c *MockCharmArchiveConfigCall) Do(f func() *charm0.Config) *MockCharmArchiveConfigCall
Do rewrite *gomock.Call.Do
func (*MockCharmArchiveConfigCall) DoAndReturn ¶
func (c *MockCharmArchiveConfigCall) DoAndReturn(f func() *charm0.Config) *MockCharmArchiveConfigCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCharmArchiveConfigCall) Return ¶
func (c *MockCharmArchiveConfigCall) Return(arg0 *charm0.Config) *MockCharmArchiveConfigCall
Return rewrite *gomock.Call.Return
type MockCharmArchiveLXDProfileCall ¶
MockCharmArchiveLXDProfileCall wrap *gomock.Call
func (*MockCharmArchiveLXDProfileCall) Do ¶
func (c *MockCharmArchiveLXDProfileCall) Do(f func() *charm0.LXDProfile) *MockCharmArchiveLXDProfileCall
Do rewrite *gomock.Call.Do
func (*MockCharmArchiveLXDProfileCall) DoAndReturn ¶
func (c *MockCharmArchiveLXDProfileCall) DoAndReturn(f func() *charm0.LXDProfile) *MockCharmArchiveLXDProfileCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCharmArchiveLXDProfileCall) Return ¶
func (c *MockCharmArchiveLXDProfileCall) Return(arg0 *charm0.LXDProfile) *MockCharmArchiveLXDProfileCall
Return rewrite *gomock.Call.Return
type MockCharmArchiveManifestCall ¶
MockCharmArchiveManifestCall wrap *gomock.Call
func (*MockCharmArchiveManifestCall) Do ¶
func (c *MockCharmArchiveManifestCall) Do(f func() *charm0.Manifest) *MockCharmArchiveManifestCall
Do rewrite *gomock.Call.Do
func (*MockCharmArchiveManifestCall) DoAndReturn ¶
func (c *MockCharmArchiveManifestCall) DoAndReturn(f func() *charm0.Manifest) *MockCharmArchiveManifestCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCharmArchiveManifestCall) Return ¶
func (c *MockCharmArchiveManifestCall) Return(arg0 *charm0.Manifest) *MockCharmArchiveManifestCall
Return rewrite *gomock.Call.Return
type MockCharmArchiveMetaCall ¶
MockCharmArchiveMetaCall wrap *gomock.Call
func (*MockCharmArchiveMetaCall) Do ¶
func (c *MockCharmArchiveMetaCall) Do(f func() *charm0.Meta) *MockCharmArchiveMetaCall
Do rewrite *gomock.Call.Do
func (*MockCharmArchiveMetaCall) DoAndReturn ¶
func (c *MockCharmArchiveMetaCall) DoAndReturn(f func() *charm0.Meta) *MockCharmArchiveMetaCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCharmArchiveMetaCall) Return ¶
func (c *MockCharmArchiveMetaCall) Return(arg0 *charm0.Meta) *MockCharmArchiveMetaCall
Return rewrite *gomock.Call.Return
type MockCharmArchiveMockRecorder ¶
type MockCharmArchiveMockRecorder struct {
// contains filtered or unexported fields
}
MockCharmArchiveMockRecorder is the mock recorder for MockCharmArchive.
func (*MockCharmArchiveMockRecorder) Actions ¶
func (mr *MockCharmArchiveMockRecorder) Actions() *MockCharmArchiveActionsCall
Actions indicates an expected call of Actions.
func (*MockCharmArchiveMockRecorder) Config ¶
func (mr *MockCharmArchiveMockRecorder) Config() *MockCharmArchiveConfigCall
Config indicates an expected call of Config.
func (*MockCharmArchiveMockRecorder) LXDProfile ¶
func (mr *MockCharmArchiveMockRecorder) LXDProfile() *MockCharmArchiveLXDProfileCall
LXDProfile indicates an expected call of LXDProfile.
func (*MockCharmArchiveMockRecorder) Manifest ¶
func (mr *MockCharmArchiveMockRecorder) Manifest() *MockCharmArchiveManifestCall
Manifest indicates an expected call of Manifest.
func (*MockCharmArchiveMockRecorder) Meta ¶
func (mr *MockCharmArchiveMockRecorder) Meta() *MockCharmArchiveMetaCall
Meta indicates an expected call of Meta.
func (*MockCharmArchiveMockRecorder) Revision ¶
func (mr *MockCharmArchiveMockRecorder) Revision() *MockCharmArchiveRevisionCall
Revision indicates an expected call of Revision.
func (*MockCharmArchiveMockRecorder) Version ¶
func (mr *MockCharmArchiveMockRecorder) Version() *MockCharmArchiveVersionCall
Version indicates an expected call of Version.
type MockCharmArchiveRevisionCall ¶
MockCharmArchiveRevisionCall wrap *gomock.Call
func (*MockCharmArchiveRevisionCall) Do ¶
func (c *MockCharmArchiveRevisionCall) Do(f func() int) *MockCharmArchiveRevisionCall
Do rewrite *gomock.Call.Do
func (*MockCharmArchiveRevisionCall) DoAndReturn ¶
func (c *MockCharmArchiveRevisionCall) DoAndReturn(f func() int) *MockCharmArchiveRevisionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCharmArchiveRevisionCall) Return ¶
func (c *MockCharmArchiveRevisionCall) Return(arg0 int) *MockCharmArchiveRevisionCall
Return rewrite *gomock.Call.Return
type MockCharmArchiveVersionCall ¶
MockCharmArchiveVersionCall wrap *gomock.Call
func (*MockCharmArchiveVersionCall) Do ¶
func (c *MockCharmArchiveVersionCall) Do(f func() string) *MockCharmArchiveVersionCall
Do rewrite *gomock.Call.Do
func (*MockCharmArchiveVersionCall) DoAndReturn ¶
func (c *MockCharmArchiveVersionCall) DoAndReturn(f func() string) *MockCharmArchiveVersionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCharmArchiveVersionCall) Return ¶
func (c *MockCharmArchiveVersionCall) Return(arg0 string) *MockCharmArchiveVersionCall
Return rewrite *gomock.Call.Return
type MockDownloader ¶
type MockDownloader struct {
// contains filtered or unexported fields
}
MockDownloader is a mock of Downloader interface.
func NewMockDownloader ¶
func NewMockDownloader(ctrl *gomock.Controller) *MockDownloader
NewMockDownloader creates a new mock instance.
func (*MockDownloader) DownloadAndStore ¶
func (m *MockDownloader) DownloadAndStore(arg0 context.Context, arg1 *charm0.URL, arg2 charm.Origin, arg3 bool) (charm.Origin, error)
DownloadAndStore mocks base method.
func (*MockDownloader) EXPECT ¶
func (m *MockDownloader) EXPECT() *MockDownloaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockDownloaderDownloadAndStoreCall ¶
MockDownloaderDownloadAndStoreCall wrap *gomock.Call
func (*MockDownloaderDownloadAndStoreCall) Do ¶
func (c *MockDownloaderDownloadAndStoreCall) Do(f func(context.Context, *charm0.URL, charm.Origin, bool) (charm.Origin, error)) *MockDownloaderDownloadAndStoreCall
Do rewrite *gomock.Call.Do
func (*MockDownloaderDownloadAndStoreCall) DoAndReturn ¶
func (c *MockDownloaderDownloadAndStoreCall) DoAndReturn(f func(context.Context, *charm0.URL, charm.Origin, bool) (charm.Origin, error)) *MockDownloaderDownloadAndStoreCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockDownloaderDownloadAndStoreCall) Return ¶
func (c *MockDownloaderDownloadAndStoreCall) Return(arg0 charm.Origin, arg1 error) *MockDownloaderDownloadAndStoreCall
Return rewrite *gomock.Call.Return
type MockDownloaderMockRecorder ¶
type MockDownloaderMockRecorder struct {
// contains filtered or unexported fields
}
MockDownloaderMockRecorder is the mock recorder for MockDownloader.
func (*MockDownloaderMockRecorder) DownloadAndStore ¶
func (mr *MockDownloaderMockRecorder) DownloadAndStore(arg0, arg1, arg2, arg3 any) *MockDownloaderDownloadAndStoreCall
DownloadAndStore indicates an expected call of DownloadAndStore.
type MockMachine ¶
type MockMachine struct {
// contains filtered or unexported fields
}
MockMachine is a mock of Machine interface.
func NewMockMachine ¶
func NewMockMachine(ctrl *gomock.Controller) *MockMachine
NewMockMachine creates a new mock instance.
func (*MockMachine) Constraints ¶
func (m *MockMachine) Constraints() (constraints.Value, error)
Constraints mocks base method.
func (*MockMachine) EXPECT ¶
func (m *MockMachine) EXPECT() *MockMachineMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockMachineConstraintsCall ¶
MockMachineConstraintsCall wrap *gomock.Call
func (*MockMachineConstraintsCall) Do ¶
func (c *MockMachineConstraintsCall) Do(f func() (constraints.Value, error)) *MockMachineConstraintsCall
Do rewrite *gomock.Call.Do
func (*MockMachineConstraintsCall) DoAndReturn ¶
func (c *MockMachineConstraintsCall) DoAndReturn(f func() (constraints.Value, error)) *MockMachineConstraintsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockMachineConstraintsCall) Return ¶
func (c *MockMachineConstraintsCall) Return(arg0 constraints.Value, arg1 error) *MockMachineConstraintsCall
Return rewrite *gomock.Call.Return
type MockMachineMockRecorder ¶
type MockMachineMockRecorder struct {
// contains filtered or unexported fields
}
MockMachineMockRecorder is the mock recorder for MockMachine.
func (*MockMachineMockRecorder) Constraints ¶
func (mr *MockMachineMockRecorder) Constraints() *MockMachineConstraintsCall
Constraints indicates an expected call of Constraints.
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface.
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance.
func (*MockRepository) Download ¶
func (m *MockRepository) Download(arg0 context.Context, arg1 string, arg2 charm.Origin, arg3 string) (charm.Origin, *charmhub.Digest, error)
Download mocks base method.
func (*MockRepository) DownloadCharm ¶
func (m *MockRepository) DownloadCharm(arg0 context.Context, arg1 string, arg2 charm.Origin, arg3 string) (charm.CharmArchive, charm.Origin, *charmhub.Digest, error)
DownloadCharm mocks base method.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) GetDownloadURL ¶
func (m *MockRepository) GetDownloadURL(arg0 context.Context, arg1 string, arg2 charm.Origin) (*url.URL, charm.Origin, error)
GetDownloadURL mocks base method.
func (*MockRepository) ListResources ¶
func (m *MockRepository) ListResources(arg0 context.Context, arg1 string, arg2 charm.Origin) ([]resource.Resource, error)
ListResources mocks base method.
func (*MockRepository) ResolveForDeploy ¶
func (m *MockRepository) ResolveForDeploy(arg0 context.Context, arg1 charm.CharmID) (charm.ResolvedDataForDeploy, error)
ResolveForDeploy mocks base method.
func (*MockRepository) ResolveResources ¶
func (m *MockRepository) ResolveResources(arg0 context.Context, arg1 []resource.Resource, arg2 charm.CharmID) ([]resource.Resource, error)
ResolveResources mocks base method.
func (*MockRepository) ResolveWithPreferredChannel ¶
func (m *MockRepository) ResolveWithPreferredChannel(arg0 context.Context, arg1 string, arg2 charm.Origin) (charm.ResolvedData, error)
ResolveWithPreferredChannel mocks base method.
type MockRepositoryDownloadCall ¶
MockRepositoryDownloadCall wrap *gomock.Call
func (*MockRepositoryDownloadCall) Do ¶
func (c *MockRepositoryDownloadCall) Do(f func(context.Context, string, charm.Origin, string) (charm.Origin, *charmhub.Digest, error)) *MockRepositoryDownloadCall
Do rewrite *gomock.Call.Do
func (*MockRepositoryDownloadCall) DoAndReturn ¶
func (c *MockRepositoryDownloadCall) DoAndReturn(f func(context.Context, string, charm.Origin, string) (charm.Origin, *charmhub.Digest, error)) *MockRepositoryDownloadCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRepositoryDownloadCall) Return ¶
func (c *MockRepositoryDownloadCall) Return(arg0 charm.Origin, arg1 *charmhub.Digest, arg2 error) *MockRepositoryDownloadCall
Return rewrite *gomock.Call.Return
type MockRepositoryDownloadCharmCall ¶
MockRepositoryDownloadCharmCall wrap *gomock.Call
func (*MockRepositoryDownloadCharmCall) Do ¶
func (c *MockRepositoryDownloadCharmCall) Do(f func(context.Context, string, charm.Origin, string) (charm.CharmArchive, charm.Origin, *charmhub.Digest, error)) *MockRepositoryDownloadCharmCall
Do rewrite *gomock.Call.Do
func (*MockRepositoryDownloadCharmCall) DoAndReturn ¶
func (c *MockRepositoryDownloadCharmCall) DoAndReturn(f func(context.Context, string, charm.Origin, string) (charm.CharmArchive, charm.Origin, *charmhub.Digest, error)) *MockRepositoryDownloadCharmCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRepositoryDownloadCharmCall) Return ¶
func (c *MockRepositoryDownloadCharmCall) Return(arg0 charm.CharmArchive, arg1 charm.Origin, arg2 *charmhub.Digest, arg3 error) *MockRepositoryDownloadCharmCall
Return rewrite *gomock.Call.Return
type MockRepositoryFactory ¶
type MockRepositoryFactory struct {
// contains filtered or unexported fields
}
MockRepositoryFactory is a mock of RepositoryFactory interface.
func NewMockRepositoryFactory ¶
func NewMockRepositoryFactory(ctrl *gomock.Controller) *MockRepositoryFactory
NewMockRepositoryFactory creates a new mock instance.
func (*MockRepositoryFactory) EXPECT ¶
func (m *MockRepositoryFactory) EXPECT() *MockRepositoryFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepositoryFactory) GetCharmRepository ¶
func (m *MockRepositoryFactory) GetCharmRepository(arg0 context.Context, arg1 charm.Source) (charm.Repository, error)
GetCharmRepository mocks base method.
type MockRepositoryFactoryGetCharmRepositoryCall ¶
MockRepositoryFactoryGetCharmRepositoryCall wrap *gomock.Call
func (*MockRepositoryFactoryGetCharmRepositoryCall) Do ¶
func (c *MockRepositoryFactoryGetCharmRepositoryCall) Do(f func(context.Context, charm.Source) (charm.Repository, error)) *MockRepositoryFactoryGetCharmRepositoryCall
Do rewrite *gomock.Call.Do
func (*MockRepositoryFactoryGetCharmRepositoryCall) DoAndReturn ¶
func (c *MockRepositoryFactoryGetCharmRepositoryCall) DoAndReturn(f func(context.Context, charm.Source) (charm.Repository, error)) *MockRepositoryFactoryGetCharmRepositoryCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRepositoryFactoryGetCharmRepositoryCall) Return ¶
func (c *MockRepositoryFactoryGetCharmRepositoryCall) Return(arg0 charm.Repository, arg1 error) *MockRepositoryFactoryGetCharmRepositoryCall
Return rewrite *gomock.Call.Return
type MockRepositoryFactoryMockRecorder ¶
type MockRepositoryFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryFactoryMockRecorder is the mock recorder for MockRepositoryFactory.
func (*MockRepositoryFactoryMockRecorder) GetCharmRepository ¶
func (mr *MockRepositoryFactoryMockRecorder) GetCharmRepository(arg0, arg1 any) *MockRepositoryFactoryGetCharmRepositoryCall
GetCharmRepository indicates an expected call of GetCharmRepository.
type MockRepositoryGetDownloadURLCall ¶
MockRepositoryGetDownloadURLCall wrap *gomock.Call
func (*MockRepositoryGetDownloadURLCall) Do ¶
func (c *MockRepositoryGetDownloadURLCall) Do(f func(context.Context, string, charm.Origin) (*url.URL, charm.Origin, error)) *MockRepositoryGetDownloadURLCall
Do rewrite *gomock.Call.Do
func (*MockRepositoryGetDownloadURLCall) DoAndReturn ¶
func (c *MockRepositoryGetDownloadURLCall) DoAndReturn(f func(context.Context, string, charm.Origin) (*url.URL, charm.Origin, error)) *MockRepositoryGetDownloadURLCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRepositoryGetDownloadURLCall) Return ¶
func (c *MockRepositoryGetDownloadURLCall) Return(arg0 *url.URL, arg1 charm.Origin, arg2 error) *MockRepositoryGetDownloadURLCall
Return rewrite *gomock.Call.Return
type MockRepositoryListResourcesCall ¶
MockRepositoryListResourcesCall wrap *gomock.Call
func (*MockRepositoryListResourcesCall) Do ¶
func (c *MockRepositoryListResourcesCall) Do(f func(context.Context, string, charm.Origin) ([]resource.Resource, error)) *MockRepositoryListResourcesCall
Do rewrite *gomock.Call.Do
func (*MockRepositoryListResourcesCall) DoAndReturn ¶
func (c *MockRepositoryListResourcesCall) DoAndReturn(f func(context.Context, string, charm.Origin) ([]resource.Resource, error)) *MockRepositoryListResourcesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRepositoryListResourcesCall) Return ¶
func (c *MockRepositoryListResourcesCall) Return(arg0 []resource.Resource, arg1 error) *MockRepositoryListResourcesCall
Return rewrite *gomock.Call.Return
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) Download ¶
func (mr *MockRepositoryMockRecorder) Download(arg0, arg1, arg2, arg3 any) *MockRepositoryDownloadCall
Download indicates an expected call of Download.
func (*MockRepositoryMockRecorder) DownloadCharm ¶
func (mr *MockRepositoryMockRecorder) DownloadCharm(arg0, arg1, arg2, arg3 any) *MockRepositoryDownloadCharmCall
DownloadCharm indicates an expected call of DownloadCharm.
func (*MockRepositoryMockRecorder) GetDownloadURL ¶
func (mr *MockRepositoryMockRecorder) GetDownloadURL(arg0, arg1, arg2 any) *MockRepositoryGetDownloadURLCall
GetDownloadURL indicates an expected call of GetDownloadURL.
func (*MockRepositoryMockRecorder) ListResources ¶
func (mr *MockRepositoryMockRecorder) ListResources(arg0, arg1, arg2 any) *MockRepositoryListResourcesCall
ListResources indicates an expected call of ListResources.
func (*MockRepositoryMockRecorder) ResolveForDeploy ¶
func (mr *MockRepositoryMockRecorder) ResolveForDeploy(arg0, arg1 any) *MockRepositoryResolveForDeployCall
ResolveForDeploy indicates an expected call of ResolveForDeploy.
func (*MockRepositoryMockRecorder) ResolveResources ¶
func (mr *MockRepositoryMockRecorder) ResolveResources(arg0, arg1, arg2 any) *MockRepositoryResolveResourcesCall
ResolveResources indicates an expected call of ResolveResources.
func (*MockRepositoryMockRecorder) ResolveWithPreferredChannel ¶
func (mr *MockRepositoryMockRecorder) ResolveWithPreferredChannel(arg0, arg1, arg2 any) *MockRepositoryResolveWithPreferredChannelCall
ResolveWithPreferredChannel indicates an expected call of ResolveWithPreferredChannel.
type MockRepositoryResolveForDeployCall ¶
MockRepositoryResolveForDeployCall wrap *gomock.Call
func (*MockRepositoryResolveForDeployCall) Do ¶
func (c *MockRepositoryResolveForDeployCall) Do(f func(context.Context, charm.CharmID) (charm.ResolvedDataForDeploy, error)) *MockRepositoryResolveForDeployCall
Do rewrite *gomock.Call.Do
func (*MockRepositoryResolveForDeployCall) DoAndReturn ¶
func (c *MockRepositoryResolveForDeployCall) DoAndReturn(f func(context.Context, charm.CharmID) (charm.ResolvedDataForDeploy, error)) *MockRepositoryResolveForDeployCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRepositoryResolveForDeployCall) Return ¶
func (c *MockRepositoryResolveForDeployCall) Return(arg0 charm.ResolvedDataForDeploy, arg1 error) *MockRepositoryResolveForDeployCall
Return rewrite *gomock.Call.Return
type MockRepositoryResolveResourcesCall ¶
MockRepositoryResolveResourcesCall wrap *gomock.Call
func (*MockRepositoryResolveResourcesCall) Do ¶
func (c *MockRepositoryResolveResourcesCall) Do(f func(context.Context, []resource.Resource, charm.CharmID) ([]resource.Resource, error)) *MockRepositoryResolveResourcesCall
Do rewrite *gomock.Call.Do
func (*MockRepositoryResolveResourcesCall) DoAndReturn ¶
func (c *MockRepositoryResolveResourcesCall) DoAndReturn(f func(context.Context, []resource.Resource, charm.CharmID) ([]resource.Resource, error)) *MockRepositoryResolveResourcesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRepositoryResolveResourcesCall) Return ¶
func (c *MockRepositoryResolveResourcesCall) Return(arg0 []resource.Resource, arg1 error) *MockRepositoryResolveResourcesCall
Return rewrite *gomock.Call.Return
type MockRepositoryResolveWithPreferredChannelCall ¶
MockRepositoryResolveWithPreferredChannelCall wrap *gomock.Call
func (*MockRepositoryResolveWithPreferredChannelCall) Do ¶
func (c *MockRepositoryResolveWithPreferredChannelCall) Do(f func(context.Context, string, charm.Origin) (charm.ResolvedData, error)) *MockRepositoryResolveWithPreferredChannelCall
Do rewrite *gomock.Call.Do
func (*MockRepositoryResolveWithPreferredChannelCall) DoAndReturn ¶
func (c *MockRepositoryResolveWithPreferredChannelCall) DoAndReturn(f func(context.Context, string, charm.Origin) (charm.ResolvedData, error)) *MockRepositoryResolveWithPreferredChannelCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRepositoryResolveWithPreferredChannelCall) Return ¶
func (c *MockRepositoryResolveWithPreferredChannelCall) Return(arg0 charm.ResolvedData, arg1 error) *MockRepositoryResolveWithPreferredChannelCall
Return rewrite *gomock.Call.Return
type MockUnit ¶
type MockUnit struct {
// contains filtered or unexported fields
}
MockUnit is a mock of Unit interface.
func NewMockUnit ¶
func NewMockUnit(ctrl *gomock.Controller) *MockUnit
NewMockUnit creates a new mock instance.
func (*MockUnit) AssignedMachineId ¶
AssignedMachineId mocks base method.
func (*MockUnit) EXPECT ¶
func (m *MockUnit) EXPECT() *MockUnitMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUnitAssignedMachineIdCall ¶
MockUnitAssignedMachineIdCall wrap *gomock.Call
func (*MockUnitAssignedMachineIdCall) Do ¶
func (c *MockUnitAssignedMachineIdCall) Do(f func() (string, error)) *MockUnitAssignedMachineIdCall
Do rewrite *gomock.Call.Do
func (*MockUnitAssignedMachineIdCall) DoAndReturn ¶
func (c *MockUnitAssignedMachineIdCall) DoAndReturn(f func() (string, error)) *MockUnitAssignedMachineIdCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockUnitAssignedMachineIdCall) Return ¶
func (c *MockUnitAssignedMachineIdCall) Return(arg0 string, arg1 error) *MockUnitAssignedMachineIdCall
Return rewrite *gomock.Call.Return
type MockUnitMockRecorder ¶
type MockUnitMockRecorder struct {
// contains filtered or unexported fields
}
MockUnitMockRecorder is the mock recorder for MockUnit.
func (*MockUnitMockRecorder) AssignedMachineId ¶
func (mr *MockUnitMockRecorder) AssignedMachineId() *MockUnitAssignedMachineIdCall
AssignedMachineId indicates an expected call of AssignedMachineId.