Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockCharmArchive
- func (m *MockCharmArchive) Actions() *charm.Actions
- func (m *MockCharmArchive) Config() *charm.Config
- func (m *MockCharmArchive) EXPECT() *MockCharmArchiveMockRecorder
- func (m *MockCharmArchive) LXDProfile() *charm.LXDProfile
- func (m *MockCharmArchive) Manifest() *charm.Manifest
- func (m *MockCharmArchive) Meta() *charm.Meta
- func (m *MockCharmArchive) Revision() int
- func (m *MockCharmArchive) Version() string
- type MockCharmArchiveActionsCall
- type MockCharmArchiveConfigCall
- type MockCharmArchiveLXDProfileCall
- func (c *MockCharmArchiveLXDProfileCall) Do(f func() *charm.LXDProfile) *MockCharmArchiveLXDProfileCall
- func (c *MockCharmArchiveLXDProfileCall) DoAndReturn(f func() *charm.LXDProfile) *MockCharmArchiveLXDProfileCall
- func (c *MockCharmArchiveLXDProfileCall) Return(arg0 *charm.LXDProfile) *MockCharmArchiveLXDProfileCall
- type MockCharmArchiveManifestCall
- func (c *MockCharmArchiveManifestCall) Do(f func() *charm.Manifest) *MockCharmArchiveManifestCall
- func (c *MockCharmArchiveManifestCall) DoAndReturn(f func() *charm.Manifest) *MockCharmArchiveManifestCall
- func (c *MockCharmArchiveManifestCall) Return(arg0 *charm.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 MockCharmRepository
- func (m *MockCharmRepository) DownloadCharm(arg0 context.Context, arg1 string, arg2 charm.Origin, arg3 string) (charm.CharmArchive, charm.Origin, *charmhub.Digest, error)
- func (m *MockCharmRepository) EXPECT() *MockCharmRepositoryMockRecorder
- func (m *MockCharmRepository) GetDownloadURL(arg0 context.Context, arg1 string, arg2 charm.Origin) (*url.URL, charm.Origin, error)
- func (m *MockCharmRepository) ResolveWithPreferredChannel(arg0 context.Context, arg1 string, arg2 charm.Origin) (*charm0.URL, charm.Origin, []charm.Platform, error)
- type MockCharmRepositoryDownloadCharmCall
- func (c *MockCharmRepositoryDownloadCharmCall) Do(...) *MockCharmRepositoryDownloadCharmCall
- func (c *MockCharmRepositoryDownloadCharmCall) DoAndReturn(...) *MockCharmRepositoryDownloadCharmCall
- func (c *MockCharmRepositoryDownloadCharmCall) Return(arg0 charm.CharmArchive, arg1 charm.Origin, arg2 *charmhub.Digest, arg3 error) *MockCharmRepositoryDownloadCharmCall
- type MockCharmRepositoryGetDownloadURLCall
- func (c *MockCharmRepositoryGetDownloadURLCall) Do(f func(context.Context, string, charm.Origin) (*url.URL, charm.Origin, error)) *MockCharmRepositoryGetDownloadURLCall
- func (c *MockCharmRepositoryGetDownloadURLCall) DoAndReturn(f func(context.Context, string, charm.Origin) (*url.URL, charm.Origin, error)) *MockCharmRepositoryGetDownloadURLCall
- func (c *MockCharmRepositoryGetDownloadURLCall) Return(arg0 *url.URL, arg1 charm.Origin, arg2 error) *MockCharmRepositoryGetDownloadURLCall
- type MockCharmRepositoryMockRecorder
- func (mr *MockCharmRepositoryMockRecorder) DownloadCharm(arg0, arg1, arg2, arg3 any) *MockCharmRepositoryDownloadCharmCall
- func (mr *MockCharmRepositoryMockRecorder) GetDownloadURL(arg0, arg1, arg2 any) *MockCharmRepositoryGetDownloadURLCall
- func (mr *MockCharmRepositoryMockRecorder) ResolveWithPreferredChannel(arg0, arg1, arg2 any) *MockCharmRepositoryResolveWithPreferredChannelCall
- type MockCharmRepositoryResolveWithPreferredChannelCall
- func (c *MockCharmRepositoryResolveWithPreferredChannelCall) Do(...) *MockCharmRepositoryResolveWithPreferredChannelCall
- func (c *MockCharmRepositoryResolveWithPreferredChannelCall) DoAndReturn(...) *MockCharmRepositoryResolveWithPreferredChannelCall
- func (c *MockCharmRepositoryResolveWithPreferredChannelCall) Return(arg0 *charm0.URL, arg1 charm.Origin, arg2 []charm.Platform, arg3 error) *MockCharmRepositoryResolveWithPreferredChannelCall
- type MockRepositoryGetter
- type MockRepositoryGetterGetCharmRepositoryCall
- func (c *MockRepositoryGetterGetCharmRepositoryCall) Do(f func(context.Context, charm.Source) (downloader.CharmRepository, error)) *MockRepositoryGetterGetCharmRepositoryCall
- func (c *MockRepositoryGetterGetCharmRepositoryCall) DoAndReturn(f func(context.Context, charm.Source) (downloader.CharmRepository, error)) *MockRepositoryGetterGetCharmRepositoryCall
- func (c *MockRepositoryGetterGetCharmRepositoryCall) Return(arg0 downloader.CharmRepository, arg1 error) *MockRepositoryGetterGetCharmRepositoryCall
- type MockRepositoryGetterMockRecorder
- type MockStorage
- type MockStorageMockRecorder
- type MockStoragePrepareToStoreCharmCall
- func (c *MockStoragePrepareToStoreCharmCall) Do(f func(string) error) *MockStoragePrepareToStoreCharmCall
- func (c *MockStoragePrepareToStoreCharmCall) DoAndReturn(f func(string) error) *MockStoragePrepareToStoreCharmCall
- func (c *MockStoragePrepareToStoreCharmCall) Return(arg0 error) *MockStoragePrepareToStoreCharmCall
- type MockStorageStoreCall
- func (c *MockStorageStoreCall) Do(f func(context.Context, string, downloader.DownloadedCharm) (string, error)) *MockStorageStoreCall
- func (c *MockStorageStoreCall) DoAndReturn(f func(context.Context, string, downloader.DownloadedCharm) (string, error)) *MockStorageStoreCall
- func (c *MockStorageStoreCall) Return(arg0 string, arg1 error) *MockStorageStoreCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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() *charm.Actions
Actions mocks base method.
func (*MockCharmArchive) Config ¶
func (m *MockCharmArchive) Config() *charm.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() *charm.LXDProfile
LXDProfile mocks base method.
func (*MockCharmArchive) Manifest ¶
func (m *MockCharmArchive) Manifest() *charm.Manifest
Manifest mocks base method.
func (*MockCharmArchive) Meta ¶
func (m *MockCharmArchive) Meta() *charm.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() *charm.Actions) *MockCharmArchiveActionsCall
Do rewrite *gomock.Call.Do
func (*MockCharmArchiveActionsCall) DoAndReturn ¶
func (c *MockCharmArchiveActionsCall) DoAndReturn(f func() *charm.Actions) *MockCharmArchiveActionsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCharmArchiveActionsCall) Return ¶
func (c *MockCharmArchiveActionsCall) Return(arg0 *charm.Actions) *MockCharmArchiveActionsCall
Return rewrite *gomock.Call.Return
type MockCharmArchiveConfigCall ¶
MockCharmArchiveConfigCall wrap *gomock.Call
func (*MockCharmArchiveConfigCall) Do ¶
func (c *MockCharmArchiveConfigCall) Do(f func() *charm.Config) *MockCharmArchiveConfigCall
Do rewrite *gomock.Call.Do
func (*MockCharmArchiveConfigCall) DoAndReturn ¶
func (c *MockCharmArchiveConfigCall) DoAndReturn(f func() *charm.Config) *MockCharmArchiveConfigCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCharmArchiveConfigCall) Return ¶
func (c *MockCharmArchiveConfigCall) Return(arg0 *charm.Config) *MockCharmArchiveConfigCall
Return rewrite *gomock.Call.Return
type MockCharmArchiveLXDProfileCall ¶
MockCharmArchiveLXDProfileCall wrap *gomock.Call
func (*MockCharmArchiveLXDProfileCall) Do ¶
func (c *MockCharmArchiveLXDProfileCall) Do(f func() *charm.LXDProfile) *MockCharmArchiveLXDProfileCall
Do rewrite *gomock.Call.Do
func (*MockCharmArchiveLXDProfileCall) DoAndReturn ¶
func (c *MockCharmArchiveLXDProfileCall) DoAndReturn(f func() *charm.LXDProfile) *MockCharmArchiveLXDProfileCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCharmArchiveLXDProfileCall) Return ¶
func (c *MockCharmArchiveLXDProfileCall) Return(arg0 *charm.LXDProfile) *MockCharmArchiveLXDProfileCall
Return rewrite *gomock.Call.Return
type MockCharmArchiveManifestCall ¶
MockCharmArchiveManifestCall wrap *gomock.Call
func (*MockCharmArchiveManifestCall) Do ¶
func (c *MockCharmArchiveManifestCall) Do(f func() *charm.Manifest) *MockCharmArchiveManifestCall
Do rewrite *gomock.Call.Do
func (*MockCharmArchiveManifestCall) DoAndReturn ¶
func (c *MockCharmArchiveManifestCall) DoAndReturn(f func() *charm.Manifest) *MockCharmArchiveManifestCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCharmArchiveManifestCall) Return ¶
func (c *MockCharmArchiveManifestCall) Return(arg0 *charm.Manifest) *MockCharmArchiveManifestCall
Return rewrite *gomock.Call.Return
type MockCharmArchiveMetaCall ¶
MockCharmArchiveMetaCall wrap *gomock.Call
func (*MockCharmArchiveMetaCall) Do ¶
func (c *MockCharmArchiveMetaCall) Do(f func() *charm.Meta) *MockCharmArchiveMetaCall
Do rewrite *gomock.Call.Do
func (*MockCharmArchiveMetaCall) DoAndReturn ¶
func (c *MockCharmArchiveMetaCall) DoAndReturn(f func() *charm.Meta) *MockCharmArchiveMetaCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCharmArchiveMetaCall) Return ¶
func (c *MockCharmArchiveMetaCall) Return(arg0 *charm.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 MockCharmRepository ¶
type MockCharmRepository struct {
// contains filtered or unexported fields
}
MockCharmRepository is a mock of CharmRepository interface.
func NewMockCharmRepository ¶
func NewMockCharmRepository(ctrl *gomock.Controller) *MockCharmRepository
NewMockCharmRepository creates a new mock instance.
func (*MockCharmRepository) DownloadCharm ¶
func (m *MockCharmRepository) DownloadCharm(arg0 context.Context, arg1 string, arg2 charm.Origin, arg3 string) (charm.CharmArchive, charm.Origin, *charmhub.Digest, error)
DownloadCharm mocks base method.
func (*MockCharmRepository) EXPECT ¶
func (m *MockCharmRepository) EXPECT() *MockCharmRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCharmRepositoryDownloadCharmCall ¶
MockCharmRepositoryDownloadCharmCall wrap *gomock.Call
func (*MockCharmRepositoryDownloadCharmCall) Do ¶
func (c *MockCharmRepositoryDownloadCharmCall) Do(f func(context.Context, string, charm.Origin, string) (charm.CharmArchive, charm.Origin, *charmhub.Digest, error)) *MockCharmRepositoryDownloadCharmCall
Do rewrite *gomock.Call.Do
func (*MockCharmRepositoryDownloadCharmCall) DoAndReturn ¶
func (c *MockCharmRepositoryDownloadCharmCall) DoAndReturn(f func(context.Context, string, charm.Origin, string) (charm.CharmArchive, charm.Origin, *charmhub.Digest, error)) *MockCharmRepositoryDownloadCharmCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCharmRepositoryDownloadCharmCall) Return ¶
func (c *MockCharmRepositoryDownloadCharmCall) Return(arg0 charm.CharmArchive, arg1 charm.Origin, arg2 *charmhub.Digest, arg3 error) *MockCharmRepositoryDownloadCharmCall
Return rewrite *gomock.Call.Return
type MockCharmRepositoryGetDownloadURLCall ¶
MockCharmRepositoryGetDownloadURLCall wrap *gomock.Call
func (*MockCharmRepositoryGetDownloadURLCall) Do ¶
func (c *MockCharmRepositoryGetDownloadURLCall) Do(f func(context.Context, string, charm.Origin) (*url.URL, charm.Origin, error)) *MockCharmRepositoryGetDownloadURLCall
Do rewrite *gomock.Call.Do
func (*MockCharmRepositoryGetDownloadURLCall) DoAndReturn ¶
func (c *MockCharmRepositoryGetDownloadURLCall) DoAndReturn(f func(context.Context, string, charm.Origin) (*url.URL, charm.Origin, error)) *MockCharmRepositoryGetDownloadURLCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCharmRepositoryGetDownloadURLCall) Return ¶
func (c *MockCharmRepositoryGetDownloadURLCall) Return(arg0 *url.URL, arg1 charm.Origin, arg2 error) *MockCharmRepositoryGetDownloadURLCall
Return rewrite *gomock.Call.Return
type MockCharmRepositoryMockRecorder ¶
type MockCharmRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockCharmRepositoryMockRecorder is the mock recorder for MockCharmRepository.
func (*MockCharmRepositoryMockRecorder) DownloadCharm ¶
func (mr *MockCharmRepositoryMockRecorder) DownloadCharm(arg0, arg1, arg2, arg3 any) *MockCharmRepositoryDownloadCharmCall
DownloadCharm indicates an expected call of DownloadCharm.
func (*MockCharmRepositoryMockRecorder) GetDownloadURL ¶
func (mr *MockCharmRepositoryMockRecorder) GetDownloadURL(arg0, arg1, arg2 any) *MockCharmRepositoryGetDownloadURLCall
GetDownloadURL indicates an expected call of GetDownloadURL.
func (*MockCharmRepositoryMockRecorder) ResolveWithPreferredChannel ¶
func (mr *MockCharmRepositoryMockRecorder) ResolveWithPreferredChannel(arg0, arg1, arg2 any) *MockCharmRepositoryResolveWithPreferredChannelCall
ResolveWithPreferredChannel indicates an expected call of ResolveWithPreferredChannel.
type MockCharmRepositoryResolveWithPreferredChannelCall ¶
MockCharmRepositoryResolveWithPreferredChannelCall wrap *gomock.Call
func (*MockCharmRepositoryResolveWithPreferredChannelCall) Do ¶
func (c *MockCharmRepositoryResolveWithPreferredChannelCall) Do(f func(context.Context, string, charm.Origin) (*charm0.URL, charm.Origin, []charm.Platform, error)) *MockCharmRepositoryResolveWithPreferredChannelCall
Do rewrite *gomock.Call.Do
func (*MockCharmRepositoryResolveWithPreferredChannelCall) DoAndReturn ¶
func (c *MockCharmRepositoryResolveWithPreferredChannelCall) DoAndReturn(f func(context.Context, string, charm.Origin) (*charm0.URL, charm.Origin, []charm.Platform, error)) *MockCharmRepositoryResolveWithPreferredChannelCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
type MockRepositoryGetter ¶
type MockRepositoryGetter struct {
// contains filtered or unexported fields
}
MockRepositoryGetter is a mock of RepositoryGetter interface.
func NewMockRepositoryGetter ¶
func NewMockRepositoryGetter(ctrl *gomock.Controller) *MockRepositoryGetter
NewMockRepositoryGetter creates a new mock instance.
func (*MockRepositoryGetter) EXPECT ¶
func (m *MockRepositoryGetter) EXPECT() *MockRepositoryGetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepositoryGetter) GetCharmRepository ¶
func (m *MockRepositoryGetter) GetCharmRepository(arg0 context.Context, arg1 charm.Source) (downloader.CharmRepository, error)
GetCharmRepository mocks base method.
type MockRepositoryGetterGetCharmRepositoryCall ¶
MockRepositoryGetterGetCharmRepositoryCall wrap *gomock.Call
func (*MockRepositoryGetterGetCharmRepositoryCall) Do ¶
func (c *MockRepositoryGetterGetCharmRepositoryCall) Do(f func(context.Context, charm.Source) (downloader.CharmRepository, error)) *MockRepositoryGetterGetCharmRepositoryCall
Do rewrite *gomock.Call.Do
func (*MockRepositoryGetterGetCharmRepositoryCall) DoAndReturn ¶
func (c *MockRepositoryGetterGetCharmRepositoryCall) DoAndReturn(f func(context.Context, charm.Source) (downloader.CharmRepository, error)) *MockRepositoryGetterGetCharmRepositoryCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRepositoryGetterGetCharmRepositoryCall) Return ¶
func (c *MockRepositoryGetterGetCharmRepositoryCall) Return(arg0 downloader.CharmRepository, arg1 error) *MockRepositoryGetterGetCharmRepositoryCall
Return rewrite *gomock.Call.Return
type MockRepositoryGetterMockRecorder ¶
type MockRepositoryGetterMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryGetterMockRecorder is the mock recorder for MockRepositoryGetter.
func (*MockRepositoryGetterMockRecorder) GetCharmRepository ¶
func (mr *MockRepositoryGetterMockRecorder) GetCharmRepository(arg0, arg1 any) *MockRepositoryGetterGetCharmRepositoryCall
GetCharmRepository indicates an expected call of GetCharmRepository.
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
MockStorage is a mock of Storage interface.
func NewMockStorage ¶
func NewMockStorage(ctrl *gomock.Controller) *MockStorage
NewMockStorage creates a new mock instance.
func (*MockStorage) EXPECT ¶
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStorage) PrepareToStoreCharm ¶
func (m *MockStorage) PrepareToStoreCharm(arg0 string) error
PrepareToStoreCharm mocks base method.
func (*MockStorage) Store ¶
func (m *MockStorage) Store(arg0 context.Context, arg1 string, arg2 downloader.DownloadedCharm) (string, error)
Store mocks base method.
type MockStorageMockRecorder ¶
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageMockRecorder is the mock recorder for MockStorage.
func (*MockStorageMockRecorder) PrepareToStoreCharm ¶
func (mr *MockStorageMockRecorder) PrepareToStoreCharm(arg0 any) *MockStoragePrepareToStoreCharmCall
PrepareToStoreCharm indicates an expected call of PrepareToStoreCharm.
func (*MockStorageMockRecorder) Store ¶
func (mr *MockStorageMockRecorder) Store(arg0, arg1, arg2 any) *MockStorageStoreCall
Store indicates an expected call of Store.
type MockStoragePrepareToStoreCharmCall ¶
MockStoragePrepareToStoreCharmCall wrap *gomock.Call
func (*MockStoragePrepareToStoreCharmCall) Do ¶
func (c *MockStoragePrepareToStoreCharmCall) Do(f func(string) error) *MockStoragePrepareToStoreCharmCall
Do rewrite *gomock.Call.Do
func (*MockStoragePrepareToStoreCharmCall) DoAndReturn ¶
func (c *MockStoragePrepareToStoreCharmCall) DoAndReturn(f func(string) error) *MockStoragePrepareToStoreCharmCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStoragePrepareToStoreCharmCall) Return ¶
func (c *MockStoragePrepareToStoreCharmCall) Return(arg0 error) *MockStoragePrepareToStoreCharmCall
Return rewrite *gomock.Call.Return
type MockStorageStoreCall ¶
MockStorageStoreCall wrap *gomock.Call
func (*MockStorageStoreCall) Do ¶
func (c *MockStorageStoreCall) Do(f func(context.Context, string, downloader.DownloadedCharm) (string, error)) *MockStorageStoreCall
Do rewrite *gomock.Call.Do
func (*MockStorageStoreCall) DoAndReturn ¶
func (c *MockStorageStoreCall) DoAndReturn(f func(context.Context, string, downloader.DownloadedCharm) (string, error)) *MockStorageStoreCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStorageStoreCall) Return ¶
func (c *MockStorageStoreCall) Return(arg0 string, arg1 error) *MockStorageStoreCall
Return rewrite *gomock.Call.Return