mocks

package
v0.0.0-...-e19464a Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: AGPL-3.0 Imports: 6 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.

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

func (m *MockCharmArchive) Metrics() *charm.Metrics

Metrics 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 MockCharmArchiveMockRecorder

type MockCharmArchiveMockRecorder struct {
	// contains filtered or unexported fields
}

MockCharmArchiveMockRecorder is the mock recorder for MockCharmArchive.

func (*MockCharmArchiveMockRecorder) Actions

func (mr *MockCharmArchiveMockRecorder) Actions() *gomock.Call

Actions indicates an expected call of Actions.

func (*MockCharmArchiveMockRecorder) Config

Config indicates an expected call of Config.

func (*MockCharmArchiveMockRecorder) LXDProfile

func (mr *MockCharmArchiveMockRecorder) LXDProfile() *gomock.Call

LXDProfile indicates an expected call of LXDProfile.

func (*MockCharmArchiveMockRecorder) Manifest

func (mr *MockCharmArchiveMockRecorder) Manifest() *gomock.Call

Manifest indicates an expected call of Manifest.

func (*MockCharmArchiveMockRecorder) Meta

Meta indicates an expected call of Meta.

func (*MockCharmArchiveMockRecorder) Metrics

func (mr *MockCharmArchiveMockRecorder) Metrics() *gomock.Call

Metrics indicates an expected call of Metrics.

func (*MockCharmArchiveMockRecorder) Revision

func (mr *MockCharmArchiveMockRecorder) Revision() *gomock.Call

Revision indicates an expected call of Revision.

func (*MockCharmArchiveMockRecorder) Version

func (mr *MockCharmArchiveMockRecorder) Version() *gomock.Call

Version indicates an expected call of Version.

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 string, arg1 charm0.Origin, arg2 string) (charm0.CharmArchive, charm0.Origin, 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 string, arg1 charm0.Origin) (*url.URL, charm0.Origin, error)

GetDownloadURL mocks base method.

func (*MockCharmRepository) ResolveWithPreferredChannel

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

ResolveWithPreferredChannel mocks base method.

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 any) *gomock.Call

DownloadCharm indicates an expected call of DownloadCharm.

func (*MockCharmRepositoryMockRecorder) GetDownloadURL

func (mr *MockCharmRepositoryMockRecorder) GetDownloadURL(arg0, arg1 any) *gomock.Call

GetDownloadURL indicates an expected call of GetDownloadURL.

func (*MockCharmRepositoryMockRecorder) ResolveWithPreferredChannel

func (mr *MockCharmRepositoryMockRecorder) ResolveWithPreferredChannel(arg0, arg1 any) *gomock.Call

ResolveWithPreferredChannel indicates an expected call of ResolveWithPreferredChannel.

type MockLogger

type MockLogger struct {
	// contains filtered or unexported fields
}

MockLogger is a mock of Logger interface.

func NewMockLogger

func NewMockLogger(ctrl *gomock.Controller) *MockLogger

NewMockLogger creates a new mock instance.

func (*MockLogger) Debugf

func (m *MockLogger) Debugf(arg0 string, arg1 ...any)

Debugf mocks base method.

func (*MockLogger) EXPECT

func (m *MockLogger) EXPECT() *MockLoggerMockRecorder

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

func (*MockLogger) Tracef

func (m *MockLogger) Tracef(arg0 string, arg1 ...any)

Tracef mocks base method.

func (*MockLogger) Warningf

func (m *MockLogger) Warningf(arg0 string, arg1 ...any)

Warningf mocks base method.

type MockLoggerMockRecorder

type MockLoggerMockRecorder struct {
	// contains filtered or unexported fields
}

MockLoggerMockRecorder is the mock recorder for MockLogger.

func (*MockLoggerMockRecorder) Debugf

func (mr *MockLoggerMockRecorder) Debugf(arg0 any, arg1 ...any) *gomock.Call

Debugf indicates an expected call of Debugf.

func (*MockLoggerMockRecorder) Tracef

func (mr *MockLoggerMockRecorder) Tracef(arg0 any, arg1 ...any) *gomock.Call

Tracef indicates an expected call of Tracef.

func (*MockLoggerMockRecorder) Warningf

func (mr *MockLoggerMockRecorder) Warningf(arg0 any, arg1 ...any) *gomock.Call

Warningf indicates an expected call of Warningf.

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 charm.Source) (downloader.CharmRepository, error)

GetCharmRepository mocks base method.

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 any) *gomock.Call

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 string, arg1 downloader.DownloadedCharm) 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) *gomock.Call

PrepareToStoreCharm indicates an expected call of PrepareToStoreCharm.

func (*MockStorageMockRecorder) Store

func (mr *MockStorageMockRecorder) Store(arg0, arg1 any) *gomock.Call

Store indicates an expected call of Store.

Jump to

Keyboard shortcuts

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