Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockCharmHubClient
- func (m *MockCharmHubClient) DownloadAndRead(arg0 context.Context, arg1 *url.URL, arg2 string, ...) (*charm.CharmArchive, error)
- func (m *MockCharmHubClient) EXPECT() *MockCharmHubClientMockRecorder
- func (m *MockCharmHubClient) Refresh(arg0 context.Context, arg1 charmhub.RefreshConfig) ([]transport.RefreshResponse, error)
- type MockCharmHubClientMockRecorder
- type MockCharmStoreClient
- func (m *MockCharmStoreClient) EXPECT() *MockCharmStoreClientMockRecorder
- func (m *MockCharmStoreClient) Get(arg0 *charm.URL, arg1 string) (*charm.CharmArchive, error)
- func (m *MockCharmStoreClient) GetFileFromArchive(arg0 *charm.URL, arg1 string) (io.ReadCloser, error)
- func (m *MockCharmStoreClient) Meta(arg0 *charm.URL, arg1 interface{}) (*charm.URL, error)
- func (m *MockCharmStoreClient) ResolveWithPreferredChannel(arg0 *charm.URL, arg1 params.Channel) (*charm.URL, params.Channel, []string, error)
- type MockCharmStoreClientMockRecorder
- func (mr *MockCharmStoreClientMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCharmStoreClientMockRecorder) GetFileFromArchive(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCharmStoreClientMockRecorder) Meta(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCharmStoreClientMockRecorder) ResolveWithPreferredChannel(arg0, arg1 interface{}) *gomock.Call
- type MockLogger
- type MockLoggerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCharmHubClient ¶
type MockCharmHubClient struct {
// contains filtered or unexported fields
}
MockCharmHubClient is a mock of CharmHubClient interface.
func NewMockCharmHubClient ¶
func NewMockCharmHubClient(ctrl *gomock.Controller) *MockCharmHubClient
NewMockCharmHubClient creates a new mock instance.
func (*MockCharmHubClient) DownloadAndRead ¶
func (m *MockCharmHubClient) DownloadAndRead(arg0 context.Context, arg1 *url.URL, arg2 string, arg3 ...charmhub.DownloadOption) (*charm.CharmArchive, error)
DownloadAndRead mocks base method.
func (*MockCharmHubClient) EXPECT ¶
func (m *MockCharmHubClient) EXPECT() *MockCharmHubClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCharmHubClient) Refresh ¶
func (m *MockCharmHubClient) Refresh(arg0 context.Context, arg1 charmhub.RefreshConfig) ([]transport.RefreshResponse, error)
Refresh mocks base method.
type MockCharmHubClientMockRecorder ¶
type MockCharmHubClientMockRecorder struct {
// contains filtered or unexported fields
}
MockCharmHubClientMockRecorder is the mock recorder for MockCharmHubClient.
func (*MockCharmHubClientMockRecorder) DownloadAndRead ¶
func (mr *MockCharmHubClientMockRecorder) DownloadAndRead(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
DownloadAndRead indicates an expected call of DownloadAndRead.
func (*MockCharmHubClientMockRecorder) Refresh ¶
func (mr *MockCharmHubClientMockRecorder) Refresh(arg0, arg1 interface{}) *gomock.Call
Refresh indicates an expected call of Refresh.
type MockCharmStoreClient ¶
type MockCharmStoreClient struct {
// contains filtered or unexported fields
}
MockCharmStoreClient is a mock of CharmStoreClient interface.
func NewMockCharmStoreClient ¶
func NewMockCharmStoreClient(ctrl *gomock.Controller) *MockCharmStoreClient
NewMockCharmStoreClient creates a new mock instance.
func (*MockCharmStoreClient) EXPECT ¶
func (m *MockCharmStoreClient) EXPECT() *MockCharmStoreClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCharmStoreClient) Get ¶
func (m *MockCharmStoreClient) Get(arg0 *charm.URL, arg1 string) (*charm.CharmArchive, error)
Get mocks base method.
func (*MockCharmStoreClient) GetFileFromArchive ¶
func (m *MockCharmStoreClient) GetFileFromArchive(arg0 *charm.URL, arg1 string) (io.ReadCloser, error)
GetFileFromArchive mocks base method.
type MockCharmStoreClientMockRecorder ¶
type MockCharmStoreClientMockRecorder struct {
// contains filtered or unexported fields
}
MockCharmStoreClientMockRecorder is the mock recorder for MockCharmStoreClient.
func (*MockCharmStoreClientMockRecorder) Get ¶
func (mr *MockCharmStoreClientMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockCharmStoreClientMockRecorder) GetFileFromArchive ¶
func (mr *MockCharmStoreClientMockRecorder) GetFileFromArchive(arg0, arg1 interface{}) *gomock.Call
GetFileFromArchive indicates an expected call of GetFileFromArchive.
func (*MockCharmStoreClientMockRecorder) Meta ¶
func (mr *MockCharmStoreClientMockRecorder) Meta(arg0, arg1 interface{}) *gomock.Call
Meta indicates an expected call of Meta.
func (*MockCharmStoreClientMockRecorder) ResolveWithPreferredChannel ¶
func (mr *MockCharmStoreClientMockRecorder) ResolveWithPreferredChannel(arg0, arg1 interface{}) *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) EXPECT ¶
func (m *MockLogger) EXPECT() *MockLoggerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLogger) Errorf ¶
func (m *MockLogger) Errorf(arg0 string, arg1 ...interface{})
Errorf mocks base method.
func (*MockLogger) Tracef ¶
func (m *MockLogger) Tracef(arg0 string, arg1 ...interface{})
Tracef mocks base method.
type MockLoggerMockRecorder ¶
type MockLoggerMockRecorder struct {
// contains filtered or unexported fields
}
MockLoggerMockRecorder is the mock recorder for MockLogger.
func (*MockLoggerMockRecorder) Errorf ¶
func (mr *MockLoggerMockRecorder) Errorf(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Errorf indicates an expected call of Errorf.
func (*MockLoggerMockRecorder) Tracef ¶
func (mr *MockLoggerMockRecorder) Tracef(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Tracef indicates an expected call of Tracef.