mocks

package
v0.0.0-...-b9bb202 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0 Imports: 10 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 MockCharmHub

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

MockCharmHub is a mock of CharmHub interface.

func NewMockCharmHub

func NewMockCharmHub(ctrl *gomock.Controller) *MockCharmHub

NewMockCharmHub creates a new mock instance.

func (*MockCharmHub) DownloadResource

func (m *MockCharmHub) DownloadResource(arg0 context.Context, arg1 *url.URL) (io.ReadCloser, error)

DownloadResource mocks base method.

func (*MockCharmHub) EXPECT

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

func (*MockCharmHub) Refresh

Refresh mocks base method.

type MockCharmHubDownloadResourceCall

type MockCharmHubDownloadResourceCall struct {
	*gomock.Call
}

MockCharmHubDownloadResourceCall wrap *gomock.Call

func (*MockCharmHubDownloadResourceCall) Do

Do rewrite *gomock.Call.Do

func (*MockCharmHubDownloadResourceCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCharmHubDownloadResourceCall) Return

Return rewrite *gomock.Call.Return

type MockCharmHubMockRecorder

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

MockCharmHubMockRecorder is the mock recorder for MockCharmHub.

func (*MockCharmHubMockRecorder) DownloadResource

func (mr *MockCharmHubMockRecorder) DownloadResource(arg0, arg1 any) *MockCharmHubDownloadResourceCall

DownloadResource indicates an expected call of DownloadResource.

func (*MockCharmHubMockRecorder) Refresh

func (mr *MockCharmHubMockRecorder) Refresh(arg0, arg1 any) *MockCharmHubRefreshCall

Refresh indicates an expected call of Refresh.

type MockCharmHubRefreshCall

type MockCharmHubRefreshCall struct {
	*gomock.Call
}

MockCharmHubRefreshCall wrap *gomock.Call

func (*MockCharmHubRefreshCall) Do

Do rewrite *gomock.Call.Do

func (*MockCharmHubRefreshCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockCharmHubRefreshCall) Return

Return rewrite *gomock.Call.Return

type MockDeprecatedResourcesState

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

MockDeprecatedResourcesState is a mock of DeprecatedResourcesState interface.

func NewMockDeprecatedResourcesState

func NewMockDeprecatedResourcesState(ctrl *gomock.Controller) *MockDeprecatedResourcesState

NewMockDeprecatedResourcesState creates a new mock instance.

func (*MockDeprecatedResourcesState) EXPECT

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

func (*MockDeprecatedResourcesState) GetResource

func (m *MockDeprecatedResourcesState) GetResource(arg0, arg1 string) (resource.Resource, error)

GetResource mocks base method.

func (*MockDeprecatedResourcesState) OpenResource

func (m *MockDeprecatedResourcesState) OpenResource(arg0, arg1 string) (resource.Resource, io.ReadCloser, error)

OpenResource mocks base method.

func (*MockDeprecatedResourcesState) OpenResourceForUniter

func (m *MockDeprecatedResourcesState) OpenResourceForUniter(arg0, arg1 string) (resource.Resource, io.ReadCloser, error)

OpenResourceForUniter mocks base method.

func (*MockDeprecatedResourcesState) SetResource

func (m *MockDeprecatedResourcesState) SetResource(arg0, arg1 string, arg2 resource0.Resource, arg3 io.Reader, arg4 bool) (resource.Resource, error)

SetResource mocks base method.

type MockDeprecatedResourcesStateGetResourceCall

type MockDeprecatedResourcesStateGetResourceCall struct {
	*gomock.Call
}

MockDeprecatedResourcesStateGetResourceCall wrap *gomock.Call

func (*MockDeprecatedResourcesStateGetResourceCall) Do

Do rewrite *gomock.Call.Do

func (*MockDeprecatedResourcesStateGetResourceCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockDeprecatedResourcesStateGetResourceCall) Return

Return rewrite *gomock.Call.Return

type MockDeprecatedResourcesStateMockRecorder

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

MockDeprecatedResourcesStateMockRecorder is the mock recorder for MockDeprecatedResourcesState.

func (*MockDeprecatedResourcesStateMockRecorder) GetResource

GetResource indicates an expected call of GetResource.

func (*MockDeprecatedResourcesStateMockRecorder) OpenResource

OpenResource indicates an expected call of OpenResource.

func (*MockDeprecatedResourcesStateMockRecorder) OpenResourceForUniter

OpenResourceForUniter indicates an expected call of OpenResourceForUniter.

func (*MockDeprecatedResourcesStateMockRecorder) SetResource

func (mr *MockDeprecatedResourcesStateMockRecorder) SetResource(arg0, arg1, arg2, arg3, arg4 any) *MockDeprecatedResourcesStateSetResourceCall

SetResource indicates an expected call of SetResource.

type MockDeprecatedResourcesStateOpenResourceCall

type MockDeprecatedResourcesStateOpenResourceCall struct {
	*gomock.Call
}

MockDeprecatedResourcesStateOpenResourceCall wrap *gomock.Call

func (*MockDeprecatedResourcesStateOpenResourceCall) Do

Do rewrite *gomock.Call.Do

func (*MockDeprecatedResourcesStateOpenResourceCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockDeprecatedResourcesStateOpenResourceCall) Return

Return rewrite *gomock.Call.Return

type MockDeprecatedResourcesStateOpenResourceForUniterCall

type MockDeprecatedResourcesStateOpenResourceForUniterCall struct {
	*gomock.Call
}

MockDeprecatedResourcesStateOpenResourceForUniterCall wrap *gomock.Call

func (*MockDeprecatedResourcesStateOpenResourceForUniterCall) Do

Do rewrite *gomock.Call.Do

func (*MockDeprecatedResourcesStateOpenResourceForUniterCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockDeprecatedResourcesStateOpenResourceForUniterCall) Return

Return rewrite *gomock.Call.Return

type MockDeprecatedResourcesStateSetResourceCall

type MockDeprecatedResourcesStateSetResourceCall struct {
	*gomock.Call
}

MockDeprecatedResourcesStateSetResourceCall wrap *gomock.Call

func (*MockDeprecatedResourcesStateSetResourceCall) Do

Do rewrite *gomock.Call.Do

func (*MockDeprecatedResourcesStateSetResourceCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockDeprecatedResourcesStateSetResourceCall) Return

Return rewrite *gomock.Call.Return

type MockResourceDownloadLock

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

MockResourceDownloadLock is a mock of ResourceDownloadLock interface.

func NewMockResourceDownloadLock

func NewMockResourceDownloadLock(ctrl *gomock.Controller) *MockResourceDownloadLock

NewMockResourceDownloadLock creates a new mock instance.

func (*MockResourceDownloadLock) Acquire

func (m *MockResourceDownloadLock) Acquire(arg0 string)

Acquire mocks base method.

func (*MockResourceDownloadLock) EXPECT

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

func (*MockResourceDownloadLock) Release

func (m *MockResourceDownloadLock) Release(arg0 string)

Release mocks base method.

type MockResourceDownloadLockAcquireCall

type MockResourceDownloadLockAcquireCall struct {
	*gomock.Call
}

MockResourceDownloadLockAcquireCall wrap *gomock.Call

func (*MockResourceDownloadLockAcquireCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourceDownloadLockAcquireCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourceDownloadLockAcquireCall) Return

Return rewrite *gomock.Call.Return

type MockResourceDownloadLockMockRecorder

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

MockResourceDownloadLockMockRecorder is the mock recorder for MockResourceDownloadLock.

func (*MockResourceDownloadLockMockRecorder) Acquire

Acquire indicates an expected call of Acquire.

func (*MockResourceDownloadLockMockRecorder) Release

Release indicates an expected call of Release.

type MockResourceDownloadLockReleaseCall

type MockResourceDownloadLockReleaseCall struct {
	*gomock.Call
}

MockResourceDownloadLockReleaseCall wrap *gomock.Call

func (*MockResourceDownloadLockReleaseCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourceDownloadLockReleaseCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourceDownloadLockReleaseCall) Return

Return rewrite *gomock.Call.Return

type MockResourceGetter

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

MockResourceGetter is a mock of ResourceGetter interface.

func NewMockResourceGetter

func NewMockResourceGetter(ctrl *gomock.Controller) *MockResourceGetter

NewMockResourceGetter creates a new mock instance.

func (*MockResourceGetter) EXPECT

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

func (*MockResourceGetter) GetResource

GetResource mocks base method.

type MockResourceGetterGetResourceCall

type MockResourceGetterGetResourceCall struct {
	*gomock.Call
}

MockResourceGetterGetResourceCall wrap *gomock.Call

func (*MockResourceGetterGetResourceCall) Do

Do rewrite *gomock.Call.Do

func (*MockResourceGetterGetResourceCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResourceGetterGetResourceCall) Return

Return rewrite *gomock.Call.Return

type MockResourceGetterMockRecorder

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

MockResourceGetterMockRecorder is the mock recorder for MockResourceGetter.

func (*MockResourceGetterMockRecorder) GetResource

GetResource indicates an expected call of GetResource.

Jump to

Keyboard shortcuts

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