Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockBundle
- type MockBundleArchiveMembersCall
- func (c *MockBundleArchiveMembersCall) Do(f func() (set.Strings, error)) *MockBundleArchiveMembersCall
- func (c *MockBundleArchiveMembersCall) DoAndReturn(f func() (set.Strings, error)) *MockBundleArchiveMembersCall
- func (c *MockBundleArchiveMembersCall) Return(arg0 set.Strings, arg1 error) *MockBundleArchiveMembersCall
- type MockBundleExpandToCall
- type MockBundleInfo
- type MockBundleInfoArchiveSha256Call
- func (c *MockBundleInfoArchiveSha256Call) Do(f func(context.Context) (string, error)) *MockBundleInfoArchiveSha256Call
- func (c *MockBundleInfoArchiveSha256Call) DoAndReturn(f func(context.Context) (string, error)) *MockBundleInfoArchiveSha256Call
- func (c *MockBundleInfoArchiveSha256Call) Return(arg0 string, arg1 error) *MockBundleInfoArchiveSha256Call
- type MockBundleInfoMockRecorder
- type MockBundleInfoURLCall
- type MockBundleMockRecorder
- type MockBundleReader
- type MockBundleReaderMockRecorder
- type MockBundleReaderReadCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBundle ¶
type MockBundle struct {
// contains filtered or unexported fields
}
MockBundle is a mock of Bundle interface.
func NewMockBundle ¶
func NewMockBundle(ctrl *gomock.Controller) *MockBundle
NewMockBundle creates a new mock instance.
func (*MockBundle) ArchiveMembers ¶
func (m *MockBundle) ArchiveMembers() (set.Strings, error)
ArchiveMembers mocks base method.
func (*MockBundle) EXPECT ¶
func (m *MockBundle) EXPECT() *MockBundleMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBundle) ExpandTo ¶
func (m *MockBundle) ExpandTo(arg0 string) error
ExpandTo mocks base method.
type MockBundleArchiveMembersCall ¶
MockBundleArchiveMembersCall wrap *gomock.Call
func (*MockBundleArchiveMembersCall) Do ¶
func (c *MockBundleArchiveMembersCall) Do(f func() (set.Strings, error)) *MockBundleArchiveMembersCall
Do rewrite *gomock.Call.Do
func (*MockBundleArchiveMembersCall) DoAndReturn ¶
func (c *MockBundleArchiveMembersCall) DoAndReturn(f func() (set.Strings, error)) *MockBundleArchiveMembersCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBundleArchiveMembersCall) Return ¶
func (c *MockBundleArchiveMembersCall) Return(arg0 set.Strings, arg1 error) *MockBundleArchiveMembersCall
Return rewrite *gomock.Call.Return
type MockBundleExpandToCall ¶
MockBundleExpandToCall wrap *gomock.Call
func (*MockBundleExpandToCall) Do ¶
func (c *MockBundleExpandToCall) Do(f func(string) error) *MockBundleExpandToCall
Do rewrite *gomock.Call.Do
func (*MockBundleExpandToCall) DoAndReturn ¶
func (c *MockBundleExpandToCall) DoAndReturn(f func(string) error) *MockBundleExpandToCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBundleExpandToCall) Return ¶
func (c *MockBundleExpandToCall) Return(arg0 error) *MockBundleExpandToCall
Return rewrite *gomock.Call.Return
type MockBundleInfo ¶
type MockBundleInfo struct {
// contains filtered or unexported fields
}
MockBundleInfo is a mock of BundleInfo interface.
func NewMockBundleInfo ¶
func NewMockBundleInfo(ctrl *gomock.Controller) *MockBundleInfo
NewMockBundleInfo creates a new mock instance.
func (*MockBundleInfo) ArchiveSha256 ¶
func (m *MockBundleInfo) ArchiveSha256(arg0 context.Context) (string, error)
ArchiveSha256 mocks base method.
func (*MockBundleInfo) EXPECT ¶
func (m *MockBundleInfo) EXPECT() *MockBundleInfoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockBundleInfoArchiveSha256Call ¶
MockBundleInfoArchiveSha256Call wrap *gomock.Call
func (*MockBundleInfoArchiveSha256Call) Do ¶
func (c *MockBundleInfoArchiveSha256Call) Do(f func(context.Context) (string, error)) *MockBundleInfoArchiveSha256Call
Do rewrite *gomock.Call.Do
func (*MockBundleInfoArchiveSha256Call) DoAndReturn ¶
func (c *MockBundleInfoArchiveSha256Call) DoAndReturn(f func(context.Context) (string, error)) *MockBundleInfoArchiveSha256Call
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBundleInfoArchiveSha256Call) Return ¶
func (c *MockBundleInfoArchiveSha256Call) Return(arg0 string, arg1 error) *MockBundleInfoArchiveSha256Call
Return rewrite *gomock.Call.Return
type MockBundleInfoMockRecorder ¶
type MockBundleInfoMockRecorder struct {
// contains filtered or unexported fields
}
MockBundleInfoMockRecorder is the mock recorder for MockBundleInfo.
func (*MockBundleInfoMockRecorder) ArchiveSha256 ¶
func (mr *MockBundleInfoMockRecorder) ArchiveSha256(arg0 any) *MockBundleInfoArchiveSha256Call
ArchiveSha256 indicates an expected call of ArchiveSha256.
func (*MockBundleInfoMockRecorder) URL ¶
func (mr *MockBundleInfoMockRecorder) URL() *MockBundleInfoURLCall
URL indicates an expected call of URL.
type MockBundleInfoURLCall ¶
MockBundleInfoURLCall wrap *gomock.Call
func (*MockBundleInfoURLCall) Do ¶
func (c *MockBundleInfoURLCall) Do(f func() string) *MockBundleInfoURLCall
Do rewrite *gomock.Call.Do
func (*MockBundleInfoURLCall) DoAndReturn ¶
func (c *MockBundleInfoURLCall) DoAndReturn(f func() string) *MockBundleInfoURLCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBundleInfoURLCall) Return ¶
func (c *MockBundleInfoURLCall) Return(arg0 string) *MockBundleInfoURLCall
Return rewrite *gomock.Call.Return
type MockBundleMockRecorder ¶
type MockBundleMockRecorder struct {
// contains filtered or unexported fields
}
MockBundleMockRecorder is the mock recorder for MockBundle.
func (*MockBundleMockRecorder) ArchiveMembers ¶
func (mr *MockBundleMockRecorder) ArchiveMembers() *MockBundleArchiveMembersCall
ArchiveMembers indicates an expected call of ArchiveMembers.
func (*MockBundleMockRecorder) ExpandTo ¶
func (mr *MockBundleMockRecorder) ExpandTo(arg0 any) *MockBundleExpandToCall
ExpandTo indicates an expected call of ExpandTo.
type MockBundleReader ¶
type MockBundleReader struct {
// contains filtered or unexported fields
}
MockBundleReader is a mock of BundleReader interface.
func NewMockBundleReader ¶
func NewMockBundleReader(ctrl *gomock.Controller) *MockBundleReader
NewMockBundleReader creates a new mock instance.
func (*MockBundleReader) EXPECT ¶
func (m *MockBundleReader) EXPECT() *MockBundleReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBundleReader) Read ¶
func (m *MockBundleReader) Read(arg0 context.Context, arg1 charm.BundleInfo, arg2 <-chan struct{}) (charm.Bundle, error)
Read mocks base method.
type MockBundleReaderMockRecorder ¶
type MockBundleReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockBundleReaderMockRecorder is the mock recorder for MockBundleReader.
func (*MockBundleReaderMockRecorder) Read ¶
func (mr *MockBundleReaderMockRecorder) Read(arg0, arg1, arg2 any) *MockBundleReaderReadCall
Read indicates an expected call of Read.
type MockBundleReaderReadCall ¶
MockBundleReaderReadCall wrap *gomock.Call
func (*MockBundleReaderReadCall) Do ¶
func (c *MockBundleReaderReadCall) Do(f func(context.Context, charm.BundleInfo, <-chan struct{}) (charm.Bundle, error)) *MockBundleReaderReadCall
Do rewrite *gomock.Call.Do
func (*MockBundleReaderReadCall) DoAndReturn ¶
func (c *MockBundleReaderReadCall) DoAndReturn(f func(context.Context, charm.BundleInfo, <-chan struct{}) (charm.Bundle, error)) *MockBundleReaderReadCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockBundleReaderReadCall) Return ¶
func (c *MockBundleReaderReadCall) Return(arg0 charm.Bundle, arg1 error) *MockBundleReaderReadCall
Return rewrite *gomock.Call.Return