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 MockCharmHub
- type MockCharmHubDownloadResourceCall
- func (c *MockCharmHubDownloadResourceCall) Do(f func(context.Context, *url.URL) (io.ReadCloser, error)) *MockCharmHubDownloadResourceCall
- func (c *MockCharmHubDownloadResourceCall) DoAndReturn(f func(context.Context, *url.URL) (io.ReadCloser, error)) *MockCharmHubDownloadResourceCall
- func (c *MockCharmHubDownloadResourceCall) Return(arg0 io.ReadCloser, arg1 error) *MockCharmHubDownloadResourceCall
- type MockCharmHubMockRecorder
- type MockCharmHubRefreshCall
- type MockDeprecatedResourcesState
- func (m *MockDeprecatedResourcesState) EXPECT() *MockDeprecatedResourcesStateMockRecorder
- func (m *MockDeprecatedResourcesState) GetResource(arg0, arg1 string) (resource.Resource, error)
- func (m *MockDeprecatedResourcesState) OpenResource(arg0, arg1 string) (resource.Resource, io.ReadCloser, error)
- func (m *MockDeprecatedResourcesState) OpenResourceForUniter(arg0, arg1 string) (resource.Resource, io.ReadCloser, error)
- func (m *MockDeprecatedResourcesState) SetResource(arg0, arg1 string, arg2 resource0.Resource, arg3 io.Reader, arg4 bool) (resource.Resource, error)
- type MockDeprecatedResourcesStateGetResourceCall
- func (c *MockDeprecatedResourcesStateGetResourceCall) Do(f func(string, string) (resource.Resource, error)) *MockDeprecatedResourcesStateGetResourceCall
- func (c *MockDeprecatedResourcesStateGetResourceCall) DoAndReturn(f func(string, string) (resource.Resource, error)) *MockDeprecatedResourcesStateGetResourceCall
- func (c *MockDeprecatedResourcesStateGetResourceCall) Return(arg0 resource.Resource, arg1 error) *MockDeprecatedResourcesStateGetResourceCall
- type MockDeprecatedResourcesStateMockRecorder
- func (mr *MockDeprecatedResourcesStateMockRecorder) GetResource(arg0, arg1 any) *MockDeprecatedResourcesStateGetResourceCall
- func (mr *MockDeprecatedResourcesStateMockRecorder) OpenResource(arg0, arg1 any) *MockDeprecatedResourcesStateOpenResourceCall
- func (mr *MockDeprecatedResourcesStateMockRecorder) OpenResourceForUniter(arg0, arg1 any) *MockDeprecatedResourcesStateOpenResourceForUniterCall
- func (mr *MockDeprecatedResourcesStateMockRecorder) SetResource(arg0, arg1, arg2, arg3, arg4 any) *MockDeprecatedResourcesStateSetResourceCall
- type MockDeprecatedResourcesStateOpenResourceCall
- func (c *MockDeprecatedResourcesStateOpenResourceCall) Do(f func(string, string) (resource.Resource, io.ReadCloser, error)) *MockDeprecatedResourcesStateOpenResourceCall
- func (c *MockDeprecatedResourcesStateOpenResourceCall) DoAndReturn(f func(string, string) (resource.Resource, io.ReadCloser, error)) *MockDeprecatedResourcesStateOpenResourceCall
- func (c *MockDeprecatedResourcesStateOpenResourceCall) Return(arg0 resource.Resource, arg1 io.ReadCloser, arg2 error) *MockDeprecatedResourcesStateOpenResourceCall
- type MockDeprecatedResourcesStateOpenResourceForUniterCall
- func (c *MockDeprecatedResourcesStateOpenResourceForUniterCall) Do(f func(string, string) (resource.Resource, io.ReadCloser, error)) *MockDeprecatedResourcesStateOpenResourceForUniterCall
- func (c *MockDeprecatedResourcesStateOpenResourceForUniterCall) DoAndReturn(f func(string, string) (resource.Resource, io.ReadCloser, error)) *MockDeprecatedResourcesStateOpenResourceForUniterCall
- func (c *MockDeprecatedResourcesStateOpenResourceForUniterCall) Return(arg0 resource.Resource, arg1 io.ReadCloser, arg2 error) *MockDeprecatedResourcesStateOpenResourceForUniterCall
- type MockDeprecatedResourcesStateSetResourceCall
- func (c *MockDeprecatedResourcesStateSetResourceCall) Do(...) *MockDeprecatedResourcesStateSetResourceCall
- func (c *MockDeprecatedResourcesStateSetResourceCall) DoAndReturn(...) *MockDeprecatedResourcesStateSetResourceCall
- func (c *MockDeprecatedResourcesStateSetResourceCall) Return(arg0 resource.Resource, arg1 error) *MockDeprecatedResourcesStateSetResourceCall
- type MockResourceDownloadLock
- type MockResourceDownloadLockAcquireCall
- func (c *MockResourceDownloadLockAcquireCall) Do(f func(string)) *MockResourceDownloadLockAcquireCall
- func (c *MockResourceDownloadLockAcquireCall) DoAndReturn(f func(string)) *MockResourceDownloadLockAcquireCall
- func (c *MockResourceDownloadLockAcquireCall) Return() *MockResourceDownloadLockAcquireCall
- type MockResourceDownloadLockMockRecorder
- type MockResourceDownloadLockReleaseCall
- func (c *MockResourceDownloadLockReleaseCall) Do(f func(string)) *MockResourceDownloadLockReleaseCall
- func (c *MockResourceDownloadLockReleaseCall) DoAndReturn(f func(string)) *MockResourceDownloadLockReleaseCall
- func (c *MockResourceDownloadLockReleaseCall) Return() *MockResourceDownloadLockReleaseCall
- type MockResourceGetter
- type MockResourceGetterGetResourceCall
- func (c *MockResourceGetterGetResourceCall) Do(f func(resource.ResourceRequest) (resource.ResourceData, error)) *MockResourceGetterGetResourceCall
- func (c *MockResourceGetterGetResourceCall) DoAndReturn(f func(resource.ResourceRequest) (resource.ResourceData, error)) *MockResourceGetterGetResourceCall
- func (c *MockResourceGetterGetResourceCall) Return(arg0 resource.ResourceData, arg1 error) *MockResourceGetterGetResourceCall
- type MockResourceGetterMockRecorder
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 ¶
func (m *MockCharmHub) EXPECT() *MockCharmHubMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCharmHub) Refresh ¶
func (m *MockCharmHub) Refresh(arg0 context.Context, arg1 charmhub.RefreshConfig) ([]transport.RefreshResponse, error)
Refresh mocks base method.
type MockCharmHubDownloadResourceCall ¶
MockCharmHubDownloadResourceCall wrap *gomock.Call
func (*MockCharmHubDownloadResourceCall) Do ¶
func (c *MockCharmHubDownloadResourceCall) Do(f func(context.Context, *url.URL) (io.ReadCloser, error)) *MockCharmHubDownloadResourceCall
Do rewrite *gomock.Call.Do
func (*MockCharmHubDownloadResourceCall) DoAndReturn ¶
func (c *MockCharmHubDownloadResourceCall) DoAndReturn(f func(context.Context, *url.URL) (io.ReadCloser, error)) *MockCharmHubDownloadResourceCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCharmHubDownloadResourceCall) Return ¶
func (c *MockCharmHubDownloadResourceCall) Return(arg0 io.ReadCloser, arg1 error) *MockCharmHubDownloadResourceCall
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 ¶
MockCharmHubRefreshCall wrap *gomock.Call
func (*MockCharmHubRefreshCall) Do ¶
func (c *MockCharmHubRefreshCall) Do(f func(context.Context, charmhub.RefreshConfig) ([]transport.RefreshResponse, error)) *MockCharmHubRefreshCall
Do rewrite *gomock.Call.Do
func (*MockCharmHubRefreshCall) DoAndReturn ¶
func (c *MockCharmHubRefreshCall) DoAndReturn(f func(context.Context, charmhub.RefreshConfig) ([]transport.RefreshResponse, error)) *MockCharmHubRefreshCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockCharmHubRefreshCall) Return ¶
func (c *MockCharmHubRefreshCall) Return(arg0 []transport.RefreshResponse, arg1 error) *MockCharmHubRefreshCall
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 ¶
func (m *MockDeprecatedResourcesState) EXPECT() *MockDeprecatedResourcesStateMockRecorder
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.
type MockDeprecatedResourcesStateGetResourceCall ¶
MockDeprecatedResourcesStateGetResourceCall wrap *gomock.Call
func (*MockDeprecatedResourcesStateGetResourceCall) Do ¶
func (c *MockDeprecatedResourcesStateGetResourceCall) Do(f func(string, string) (resource.Resource, error)) *MockDeprecatedResourcesStateGetResourceCall
Do rewrite *gomock.Call.Do
func (*MockDeprecatedResourcesStateGetResourceCall) DoAndReturn ¶
func (c *MockDeprecatedResourcesStateGetResourceCall) DoAndReturn(f func(string, string) (resource.Resource, error)) *MockDeprecatedResourcesStateGetResourceCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockDeprecatedResourcesStateGetResourceCall) Return ¶
func (c *MockDeprecatedResourcesStateGetResourceCall) Return(arg0 resource.Resource, arg1 error) *MockDeprecatedResourcesStateGetResourceCall
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 ¶
func (mr *MockDeprecatedResourcesStateMockRecorder) GetResource(arg0, arg1 any) *MockDeprecatedResourcesStateGetResourceCall
GetResource indicates an expected call of GetResource.
func (*MockDeprecatedResourcesStateMockRecorder) OpenResource ¶
func (mr *MockDeprecatedResourcesStateMockRecorder) OpenResource(arg0, arg1 any) *MockDeprecatedResourcesStateOpenResourceCall
OpenResource indicates an expected call of OpenResource.
func (*MockDeprecatedResourcesStateMockRecorder) OpenResourceForUniter ¶
func (mr *MockDeprecatedResourcesStateMockRecorder) OpenResourceForUniter(arg0, arg1 any) *MockDeprecatedResourcesStateOpenResourceForUniterCall
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 ¶
MockDeprecatedResourcesStateOpenResourceCall wrap *gomock.Call
func (*MockDeprecatedResourcesStateOpenResourceCall) Do ¶
func (c *MockDeprecatedResourcesStateOpenResourceCall) Do(f func(string, string) (resource.Resource, io.ReadCloser, error)) *MockDeprecatedResourcesStateOpenResourceCall
Do rewrite *gomock.Call.Do
func (*MockDeprecatedResourcesStateOpenResourceCall) DoAndReturn ¶
func (c *MockDeprecatedResourcesStateOpenResourceCall) DoAndReturn(f func(string, string) (resource.Resource, io.ReadCloser, error)) *MockDeprecatedResourcesStateOpenResourceCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockDeprecatedResourcesStateOpenResourceCall) Return ¶
func (c *MockDeprecatedResourcesStateOpenResourceCall) Return(arg0 resource.Resource, arg1 io.ReadCloser, arg2 error) *MockDeprecatedResourcesStateOpenResourceCall
Return rewrite *gomock.Call.Return
type MockDeprecatedResourcesStateOpenResourceForUniterCall ¶
MockDeprecatedResourcesStateOpenResourceForUniterCall wrap *gomock.Call
func (*MockDeprecatedResourcesStateOpenResourceForUniterCall) Do ¶
func (c *MockDeprecatedResourcesStateOpenResourceForUniterCall) Do(f func(string, string) (resource.Resource, io.ReadCloser, error)) *MockDeprecatedResourcesStateOpenResourceForUniterCall
Do rewrite *gomock.Call.Do
func (*MockDeprecatedResourcesStateOpenResourceForUniterCall) DoAndReturn ¶
func (c *MockDeprecatedResourcesStateOpenResourceForUniterCall) DoAndReturn(f func(string, string) (resource.Resource, io.ReadCloser, error)) *MockDeprecatedResourcesStateOpenResourceForUniterCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockDeprecatedResourcesStateOpenResourceForUniterCall) Return ¶
func (c *MockDeprecatedResourcesStateOpenResourceForUniterCall) Return(arg0 resource.Resource, arg1 io.ReadCloser, arg2 error) *MockDeprecatedResourcesStateOpenResourceForUniterCall
Return rewrite *gomock.Call.Return
type MockDeprecatedResourcesStateSetResourceCall ¶
MockDeprecatedResourcesStateSetResourceCall wrap *gomock.Call
func (*MockDeprecatedResourcesStateSetResourceCall) Do ¶
func (c *MockDeprecatedResourcesStateSetResourceCall) Do(f func(string, string, resource0.Resource, io.Reader, bool) (resource.Resource, error)) *MockDeprecatedResourcesStateSetResourceCall
Do rewrite *gomock.Call.Do
func (*MockDeprecatedResourcesStateSetResourceCall) DoAndReturn ¶
func (c *MockDeprecatedResourcesStateSetResourceCall) DoAndReturn(f func(string, string, resource0.Resource, io.Reader, bool) (resource.Resource, error)) *MockDeprecatedResourcesStateSetResourceCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockDeprecatedResourcesStateSetResourceCall) Return ¶
func (c *MockDeprecatedResourcesStateSetResourceCall) Return(arg0 resource.Resource, arg1 error) *MockDeprecatedResourcesStateSetResourceCall
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 ¶
func (m *MockResourceDownloadLock) EXPECT() *MockResourceDownloadLockMockRecorder
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 ¶
MockResourceDownloadLockAcquireCall wrap *gomock.Call
func (*MockResourceDownloadLockAcquireCall) Do ¶
func (c *MockResourceDownloadLockAcquireCall) Do(f func(string)) *MockResourceDownloadLockAcquireCall
Do rewrite *gomock.Call.Do
func (*MockResourceDownloadLockAcquireCall) DoAndReturn ¶
func (c *MockResourceDownloadLockAcquireCall) DoAndReturn(f func(string)) *MockResourceDownloadLockAcquireCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockResourceDownloadLockAcquireCall) Return ¶
func (c *MockResourceDownloadLockAcquireCall) Return() *MockResourceDownloadLockAcquireCall
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 ¶
func (mr *MockResourceDownloadLockMockRecorder) Acquire(arg0 any) *MockResourceDownloadLockAcquireCall
Acquire indicates an expected call of Acquire.
func (*MockResourceDownloadLockMockRecorder) Release ¶
func (mr *MockResourceDownloadLockMockRecorder) Release(arg0 any) *MockResourceDownloadLockReleaseCall
Release indicates an expected call of Release.
type MockResourceDownloadLockReleaseCall ¶
MockResourceDownloadLockReleaseCall wrap *gomock.Call
func (*MockResourceDownloadLockReleaseCall) Do ¶
func (c *MockResourceDownloadLockReleaseCall) Do(f func(string)) *MockResourceDownloadLockReleaseCall
Do rewrite *gomock.Call.Do
func (*MockResourceDownloadLockReleaseCall) DoAndReturn ¶
func (c *MockResourceDownloadLockReleaseCall) DoAndReturn(f func(string)) *MockResourceDownloadLockReleaseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockResourceDownloadLockReleaseCall) Return ¶
func (c *MockResourceDownloadLockReleaseCall) Return() *MockResourceDownloadLockReleaseCall
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 ¶
func (m *MockResourceGetter) EXPECT() *MockResourceGetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockResourceGetter) GetResource ¶
func (m *MockResourceGetter) GetResource(arg0 resource.ResourceRequest) (resource.ResourceData, error)
GetResource mocks base method.
type MockResourceGetterGetResourceCall ¶
MockResourceGetterGetResourceCall wrap *gomock.Call
func (*MockResourceGetterGetResourceCall) Do ¶
func (c *MockResourceGetterGetResourceCall) Do(f func(resource.ResourceRequest) (resource.ResourceData, error)) *MockResourceGetterGetResourceCall
Do rewrite *gomock.Call.Do
func (*MockResourceGetterGetResourceCall) DoAndReturn ¶
func (c *MockResourceGetterGetResourceCall) DoAndReturn(f func(resource.ResourceRequest) (resource.ResourceData, error)) *MockResourceGetterGetResourceCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockResourceGetterGetResourceCall) Return ¶
func (c *MockResourceGetterGetResourceCall) Return(arg0 resource.ResourceData, arg1 error) *MockResourceGetterGetResourceCall
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 ¶
func (mr *MockResourceGetterMockRecorder) GetResource(arg0 any) *MockResourceGetterGetResourceCall
GetResource indicates an expected call of GetResource.