mocks

package
v0.0.0-...-0a82276 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

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

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

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

type MockCharmArchiveActionsCall struct {
	*gomock.Call
}

MockCharmArchiveActionsCall wrap *gomock.Call

func (*MockCharmArchiveActionsCall) Do

Do rewrite *gomock.Call.Do

func (*MockCharmArchiveActionsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCharmArchiveActionsCall) Return

Return rewrite *gomock.Call.Return

type MockCharmArchiveConfigCall

type MockCharmArchiveConfigCall struct {
	*gomock.Call
}

MockCharmArchiveConfigCall wrap *gomock.Call

func (*MockCharmArchiveConfigCall) Do

Do rewrite *gomock.Call.Do

func (*MockCharmArchiveConfigCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCharmArchiveConfigCall) Return

Return rewrite *gomock.Call.Return

type MockCharmArchiveLXDProfileCall

type MockCharmArchiveLXDProfileCall struct {
	*gomock.Call
}

MockCharmArchiveLXDProfileCall wrap *gomock.Call

func (*MockCharmArchiveLXDProfileCall) Do

Do rewrite *gomock.Call.Do

func (*MockCharmArchiveLXDProfileCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCharmArchiveLXDProfileCall) Return

Return rewrite *gomock.Call.Return

type MockCharmArchiveManifestCall

type MockCharmArchiveManifestCall struct {
	*gomock.Call
}

MockCharmArchiveManifestCall wrap *gomock.Call

func (*MockCharmArchiveManifestCall) Do

Do rewrite *gomock.Call.Do

func (*MockCharmArchiveManifestCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCharmArchiveManifestCall) Return

Return rewrite *gomock.Call.Return

type MockCharmArchiveMetaCall

type MockCharmArchiveMetaCall struct {
	*gomock.Call
}

MockCharmArchiveMetaCall wrap *gomock.Call

func (*MockCharmArchiveMetaCall) Do

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

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

Actions indicates an expected call of Actions.

func (*MockCharmArchiveMockRecorder) Config

Config indicates an expected call of Config.

func (*MockCharmArchiveMockRecorder) LXDProfile

LXDProfile indicates an expected call of LXDProfile.

func (*MockCharmArchiveMockRecorder) Manifest

Manifest indicates an expected call of Manifest.

func (*MockCharmArchiveMockRecorder) Meta

Meta indicates an expected call of Meta.

func (*MockCharmArchiveMockRecorder) Revision

Revision indicates an expected call of Revision.

func (*MockCharmArchiveMockRecorder) Version

Version indicates an expected call of Version.

type MockCharmArchiveRevisionCall

type MockCharmArchiveRevisionCall struct {
	*gomock.Call
}

MockCharmArchiveRevisionCall wrap *gomock.Call

func (*MockCharmArchiveRevisionCall) Do

Do rewrite *gomock.Call.Do

func (*MockCharmArchiveRevisionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCharmArchiveRevisionCall) Return

Return rewrite *gomock.Call.Return

type MockCharmArchiveVersionCall

type MockCharmArchiveVersionCall struct {
	*gomock.Call
}

MockCharmArchiveVersionCall wrap *gomock.Call

func (*MockCharmArchiveVersionCall) Do

Do rewrite *gomock.Call.Do

func (*MockCharmArchiveVersionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCharmArchiveVersionCall) Return

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

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

func (*MockCharmRepository) GetDownloadURL

func (m *MockCharmRepository) GetDownloadURL(arg0 context.Context, arg1 string, arg2 charm.Origin) (*url.URL, charm.Origin, error)

GetDownloadURL mocks base method.

func (*MockCharmRepository) ResolveWithPreferredChannel

func (m *MockCharmRepository) ResolveWithPreferredChannel(arg0 context.Context, arg1 string, arg2 charm.Origin) (*charm0.URL, charm.Origin, []charm.Platform, error)

ResolveWithPreferredChannel mocks base method.

type MockCharmRepositoryDownloadCharmCall

type MockCharmRepositoryDownloadCharmCall struct {
	*gomock.Call
}

MockCharmRepositoryDownloadCharmCall wrap *gomock.Call

func (*MockCharmRepositoryDownloadCharmCall) Do

Do rewrite *gomock.Call.Do

func (*MockCharmRepositoryDownloadCharmCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCharmRepositoryDownloadCharmCall) Return

Return rewrite *gomock.Call.Return

type MockCharmRepositoryGetDownloadURLCall

type MockCharmRepositoryGetDownloadURLCall struct {
	*gomock.Call
}

MockCharmRepositoryGetDownloadURLCall wrap *gomock.Call

func (*MockCharmRepositoryGetDownloadURLCall) Do

Do rewrite *gomock.Call.Do

func (*MockCharmRepositoryGetDownloadURLCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCharmRepositoryGetDownloadURLCall) Return

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

type MockCharmRepositoryResolveWithPreferredChannelCall struct {
	*gomock.Call
}

MockCharmRepositoryResolveWithPreferredChannelCall wrap *gomock.Call

func (*MockCharmRepositoryResolveWithPreferredChannelCall) Do

Do rewrite *gomock.Call.Do

func (*MockCharmRepositoryResolveWithPreferredChannelCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCharmRepositoryResolveWithPreferredChannelCall) Return

Return rewrite *gomock.Call.Return

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

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

type MockRepositoryGetterGetCharmRepositoryCall struct {
	*gomock.Call
}

MockRepositoryGetterGetCharmRepositoryCall wrap *gomock.Call

func (*MockRepositoryGetterGetCharmRepositoryCall) Do

Do rewrite *gomock.Call.Do

func (*MockRepositoryGetterGetCharmRepositoryCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRepositoryGetterGetCharmRepositoryCall) Return

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

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

type MockStoragePrepareToStoreCharmCall struct {
	*gomock.Call
}

MockStoragePrepareToStoreCharmCall wrap *gomock.Call

func (*MockStoragePrepareToStoreCharmCall) Do

Do rewrite *gomock.Call.Do

func (*MockStoragePrepareToStoreCharmCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStoragePrepareToStoreCharmCall) Return

Return rewrite *gomock.Call.Return

type MockStorageStoreCall

type MockStorageStoreCall struct {
	*gomock.Call
}

MockStorageStoreCall wrap *gomock.Call

func (*MockStorageStoreCall) Do

Do rewrite *gomock.Call.Do

func (*MockStorageStoreCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStorageStoreCall) Return

func (c *MockStorageStoreCall) Return(arg0 string, arg1 error) *MockStorageStoreCall

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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