Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: downloader.go
Generated by this command:
mockgen -source=downloader.go -destination=mocks/downloader.go Downloader
Package mock_vendors is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: downloader_test.go
Generated by this command:
mockgen -source=downloader_test.go -destination=mocks/httpDoer.go HTTPDoer
Package mock_vendors is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: syncer_test.go
Generated by this command:
mockgen -source=syncer_test.go -destination=mocks/rclone.go RCloneInfo
Package mock_vendors is a generated GoMock package.
Index ¶
- type MockDownloader
- type MockDownloaderMockRecorder
- type MockHTTPDoer
- type MockHTTPDoerMockRecorder
- type MockRCloneFS
- func (m *MockRCloneFS) EXPECT() *MockRCloneFSMockRecorder
- func (m *MockRCloneFS) Features() *fs.Features
- func (m *MockRCloneFS) Hashes() hash.Set
- func (m *MockRCloneFS) List(ctx context.Context, dir string) (fs.DirEntries, error)
- func (m *MockRCloneFS) Mkdir(ctx context.Context, dir string) error
- func (m *MockRCloneFS) Name() string
- func (m *MockRCloneFS) NewObject(ctx context.Context, remote string) (fs.Object, error)
- func (m *MockRCloneFS) Precision() time.Duration
- func (m *MockRCloneFS) Put(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error)
- func (m *MockRCloneFS) Rmdir(ctx context.Context, dir string) error
- func (m *MockRCloneFS) Root() string
- func (m *MockRCloneFS) String() string
- type MockRCloneFSMockRecorder
- func (mr *MockRCloneFSMockRecorder) Features() *gomock.Call
- func (mr *MockRCloneFSMockRecorder) Hashes() *gomock.Call
- func (mr *MockRCloneFSMockRecorder) List(ctx, dir any) *gomock.Call
- func (mr *MockRCloneFSMockRecorder) Mkdir(ctx, dir any) *gomock.Call
- func (mr *MockRCloneFSMockRecorder) Name() *gomock.Call
- func (mr *MockRCloneFSMockRecorder) NewObject(ctx, remote any) *gomock.Call
- func (mr *MockRCloneFSMockRecorder) Precision() *gomock.Call
- func (mr *MockRCloneFSMockRecorder) Put(ctx, in, src any, options ...any) *gomock.Call
- func (mr *MockRCloneFSMockRecorder) Rmdir(ctx, dir any) *gomock.Call
- func (mr *MockRCloneFSMockRecorder) Root() *gomock.Call
- func (mr *MockRCloneFSMockRecorder) String() *gomock.Call
- type MockRCloneInfo
- func (m *MockRCloneInfo) EXPECT() *MockRCloneInfoMockRecorder
- func (m *MockRCloneInfo) Features() *fs.Features
- func (m *MockRCloneInfo) Hashes() hash.Set
- func (m *MockRCloneInfo) Name() string
- func (m *MockRCloneInfo) Precision() time.Duration
- func (m *MockRCloneInfo) Root() string
- func (m *MockRCloneInfo) String() string
- type MockRCloneInfoMockRecorder
- func (mr *MockRCloneInfoMockRecorder) Features() *gomock.Call
- func (mr *MockRCloneInfoMockRecorder) Hashes() *gomock.Call
- func (mr *MockRCloneInfoMockRecorder) Name() *gomock.Call
- func (mr *MockRCloneInfoMockRecorder) Precision() *gomock.Call
- func (mr *MockRCloneInfoMockRecorder) Root() *gomock.Call
- func (mr *MockRCloneInfoMockRecorder) String() *gomock.Call
- type MockRCloneObject
- func (m *MockRCloneObject) EXPECT() *MockRCloneObjectMockRecorder
- func (m *MockRCloneObject) Fs() fs.Info
- func (m *MockRCloneObject) Hash(ctx context.Context, ty hash.Type) (string, error)
- func (m *MockRCloneObject) ModTime(arg0 context.Context) time.Time
- func (m *MockRCloneObject) Open(ctx context.Context, options ...fs.OpenOption) (io.ReadCloser, error)
- func (m *MockRCloneObject) Remote() string
- func (m *MockRCloneObject) Remove(ctx context.Context) error
- func (m *MockRCloneObject) SetModTime(ctx context.Context, t time.Time) error
- func (m *MockRCloneObject) Size() int64
- func (m *MockRCloneObject) Storable() bool
- func (m *MockRCloneObject) String() string
- func (m *MockRCloneObject) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) error
- type MockRCloneObjectMockRecorder
- func (mr *MockRCloneObjectMockRecorder) Fs() *gomock.Call
- func (mr *MockRCloneObjectMockRecorder) Hash(ctx, ty any) *gomock.Call
- func (mr *MockRCloneObjectMockRecorder) ModTime(arg0 any) *gomock.Call
- func (mr *MockRCloneObjectMockRecorder) Open(ctx any, options ...any) *gomock.Call
- func (mr *MockRCloneObjectMockRecorder) Remote() *gomock.Call
- func (mr *MockRCloneObjectMockRecorder) Remove(ctx any) *gomock.Call
- func (mr *MockRCloneObjectMockRecorder) SetModTime(ctx, t any) *gomock.Call
- func (mr *MockRCloneObjectMockRecorder) Size() *gomock.Call
- func (mr *MockRCloneObjectMockRecorder) Storable() *gomock.Call
- func (mr *MockRCloneObjectMockRecorder) String() *gomock.Call
- func (mr *MockRCloneObjectMockRecorder) Update(ctx, in, src any, options ...any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDownloader ¶
type MockDownloader struct {
// contains filtered or unexported fields
}
MockDownloader is a mock of Downloader interface.
func NewMockDownloader ¶
func NewMockDownloader(ctrl *gomock.Controller) *MockDownloader
NewMockDownloader creates a new mock instance.
func (*MockDownloader) Download ¶
func (m *MockDownloader) Download(ctx context.Context, downloadDir string, firmware *fleetdbapi.ComponentFirmwareVersion) (string, error)
Download mocks base method.
func (*MockDownloader) EXPECT ¶
func (m *MockDownloader) EXPECT() *MockDownloaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockDownloaderMockRecorder ¶
type MockDownloaderMockRecorder struct {
// contains filtered or unexported fields
}
MockDownloaderMockRecorder is the mock recorder for MockDownloader.
type MockHTTPDoer ¶ added in v0.0.20
type MockHTTPDoer struct {
// contains filtered or unexported fields
}
MockHTTPDoer is a mock of HTTPDoer interface.
func NewMockHTTPDoer ¶ added in v0.0.20
func NewMockHTTPDoer(ctrl *gomock.Controller) *MockHTTPDoer
NewMockHTTPDoer creates a new mock instance.
func (*MockHTTPDoer) EXPECT ¶ added in v0.0.20
func (m *MockHTTPDoer) EXPECT() *MockHTTPDoerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockHTTPDoerMockRecorder ¶ added in v0.0.20
type MockHTTPDoerMockRecorder struct {
// contains filtered or unexported fields
}
MockHTTPDoerMockRecorder is the mock recorder for MockHTTPDoer.
type MockRCloneFS ¶
type MockRCloneFS struct {
// contains filtered or unexported fields
}
MockRCloneFS is a mock of RCloneFS interface.
func NewMockRCloneFS ¶
func NewMockRCloneFS(ctrl *gomock.Controller) *MockRCloneFS
NewMockRCloneFS creates a new mock instance.
func (*MockRCloneFS) EXPECT ¶
func (m *MockRCloneFS) EXPECT() *MockRCloneFSMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRCloneFS) Features ¶
func (m *MockRCloneFS) Features() *fs.Features
Features mocks base method.
func (*MockRCloneFS) List ¶
func (m *MockRCloneFS) List(ctx context.Context, dir string) (fs.DirEntries, error)
List mocks base method.
func (*MockRCloneFS) Mkdir ¶
func (m *MockRCloneFS) Mkdir(ctx context.Context, dir string) error
Mkdir mocks base method.
func (*MockRCloneFS) Precision ¶
func (m *MockRCloneFS) Precision() time.Duration
Precision mocks base method.
func (*MockRCloneFS) Put ¶
func (m *MockRCloneFS) Put(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error)
Put mocks base method.
type MockRCloneFSMockRecorder ¶
type MockRCloneFSMockRecorder struct {
// contains filtered or unexported fields
}
MockRCloneFSMockRecorder is the mock recorder for MockRCloneFS.
func (*MockRCloneFSMockRecorder) Features ¶
func (mr *MockRCloneFSMockRecorder) Features() *gomock.Call
Features indicates an expected call of Features.
func (*MockRCloneFSMockRecorder) Hashes ¶
func (mr *MockRCloneFSMockRecorder) Hashes() *gomock.Call
Hashes indicates an expected call of Hashes.
func (*MockRCloneFSMockRecorder) List ¶
func (mr *MockRCloneFSMockRecorder) List(ctx, dir any) *gomock.Call
List indicates an expected call of List.
func (*MockRCloneFSMockRecorder) Mkdir ¶
func (mr *MockRCloneFSMockRecorder) Mkdir(ctx, dir any) *gomock.Call
Mkdir indicates an expected call of Mkdir.
func (*MockRCloneFSMockRecorder) Name ¶
func (mr *MockRCloneFSMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockRCloneFSMockRecorder) NewObject ¶
func (mr *MockRCloneFSMockRecorder) NewObject(ctx, remote any) *gomock.Call
NewObject indicates an expected call of NewObject.
func (*MockRCloneFSMockRecorder) Precision ¶
func (mr *MockRCloneFSMockRecorder) Precision() *gomock.Call
Precision indicates an expected call of Precision.
func (*MockRCloneFSMockRecorder) Put ¶
func (mr *MockRCloneFSMockRecorder) Put(ctx, in, src any, options ...any) *gomock.Call
Put indicates an expected call of Put.
func (*MockRCloneFSMockRecorder) Rmdir ¶
func (mr *MockRCloneFSMockRecorder) Rmdir(ctx, dir any) *gomock.Call
Rmdir indicates an expected call of Rmdir.
func (*MockRCloneFSMockRecorder) Root ¶
func (mr *MockRCloneFSMockRecorder) Root() *gomock.Call
Root indicates an expected call of Root.
func (*MockRCloneFSMockRecorder) String ¶
func (mr *MockRCloneFSMockRecorder) String() *gomock.Call
String indicates an expected call of String.
type MockRCloneInfo ¶
type MockRCloneInfo struct {
// contains filtered or unexported fields
}
MockRCloneInfo is a mock of RCloneInfo interface.
func NewMockRCloneInfo ¶
func NewMockRCloneInfo(ctrl *gomock.Controller) *MockRCloneInfo
NewMockRCloneInfo creates a new mock instance.
func (*MockRCloneInfo) EXPECT ¶
func (m *MockRCloneInfo) EXPECT() *MockRCloneInfoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRCloneInfo) Features ¶
func (m *MockRCloneInfo) Features() *fs.Features
Features mocks base method.
func (*MockRCloneInfo) Hashes ¶
func (m *MockRCloneInfo) Hashes() hash.Set
Hashes mocks base method.
func (*MockRCloneInfo) Precision ¶
func (m *MockRCloneInfo) Precision() time.Duration
Precision mocks base method.
type MockRCloneInfoMockRecorder ¶
type MockRCloneInfoMockRecorder struct {
// contains filtered or unexported fields
}
MockRCloneInfoMockRecorder is the mock recorder for MockRCloneInfo.
func (*MockRCloneInfoMockRecorder) Features ¶
func (mr *MockRCloneInfoMockRecorder) Features() *gomock.Call
Features indicates an expected call of Features.
func (*MockRCloneInfoMockRecorder) Hashes ¶
func (mr *MockRCloneInfoMockRecorder) Hashes() *gomock.Call
Hashes indicates an expected call of Hashes.
func (*MockRCloneInfoMockRecorder) Name ¶
func (mr *MockRCloneInfoMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockRCloneInfoMockRecorder) Precision ¶
func (mr *MockRCloneInfoMockRecorder) Precision() *gomock.Call
Precision indicates an expected call of Precision.
func (*MockRCloneInfoMockRecorder) Root ¶
func (mr *MockRCloneInfoMockRecorder) Root() *gomock.Call
Root indicates an expected call of Root.
func (*MockRCloneInfoMockRecorder) String ¶
func (mr *MockRCloneInfoMockRecorder) String() *gomock.Call
String indicates an expected call of String.
type MockRCloneObject ¶
type MockRCloneObject struct {
// contains filtered or unexported fields
}
MockRCloneObject is a mock of RCloneObject interface.
func NewMockRCloneObject ¶
func NewMockRCloneObject(ctrl *gomock.Controller) *MockRCloneObject
NewMockRCloneObject creates a new mock instance.
func (*MockRCloneObject) EXPECT ¶
func (m *MockRCloneObject) EXPECT() *MockRCloneObjectMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRCloneObject) ModTime ¶
func (m *MockRCloneObject) ModTime(arg0 context.Context) time.Time
ModTime mocks base method.
func (*MockRCloneObject) Open ¶
func (m *MockRCloneObject) Open(ctx context.Context, options ...fs.OpenOption) (io.ReadCloser, error)
Open mocks base method.
func (*MockRCloneObject) Remote ¶
func (m *MockRCloneObject) Remote() string
Remote mocks base method.
func (*MockRCloneObject) Remove ¶
func (m *MockRCloneObject) Remove(ctx context.Context) error
Remove mocks base method.
func (*MockRCloneObject) SetModTime ¶
SetModTime mocks base method.
func (*MockRCloneObject) Storable ¶
func (m *MockRCloneObject) Storable() bool
Storable mocks base method.
func (*MockRCloneObject) String ¶
func (m *MockRCloneObject) String() string
String mocks base method.
func (*MockRCloneObject) Update ¶
func (m *MockRCloneObject) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) error
Update mocks base method.
type MockRCloneObjectMockRecorder ¶
type MockRCloneObjectMockRecorder struct {
// contains filtered or unexported fields
}
MockRCloneObjectMockRecorder is the mock recorder for MockRCloneObject.
func (*MockRCloneObjectMockRecorder) Fs ¶
func (mr *MockRCloneObjectMockRecorder) Fs() *gomock.Call
Fs indicates an expected call of Fs.
func (*MockRCloneObjectMockRecorder) Hash ¶
func (mr *MockRCloneObjectMockRecorder) Hash(ctx, ty any) *gomock.Call
Hash indicates an expected call of Hash.
func (*MockRCloneObjectMockRecorder) ModTime ¶
func (mr *MockRCloneObjectMockRecorder) ModTime(arg0 any) *gomock.Call
ModTime indicates an expected call of ModTime.
func (*MockRCloneObjectMockRecorder) Open ¶
func (mr *MockRCloneObjectMockRecorder) Open(ctx any, options ...any) *gomock.Call
Open indicates an expected call of Open.
func (*MockRCloneObjectMockRecorder) Remote ¶
func (mr *MockRCloneObjectMockRecorder) Remote() *gomock.Call
Remote indicates an expected call of Remote.
func (*MockRCloneObjectMockRecorder) Remove ¶
func (mr *MockRCloneObjectMockRecorder) Remove(ctx any) *gomock.Call
Remove indicates an expected call of Remove.
func (*MockRCloneObjectMockRecorder) SetModTime ¶
func (mr *MockRCloneObjectMockRecorder) SetModTime(ctx, t any) *gomock.Call
SetModTime indicates an expected call of SetModTime.
func (*MockRCloneObjectMockRecorder) Size ¶
func (mr *MockRCloneObjectMockRecorder) Size() *gomock.Call
Size indicates an expected call of Size.
func (*MockRCloneObjectMockRecorder) Storable ¶
func (mr *MockRCloneObjectMockRecorder) Storable() *gomock.Call
Storable indicates an expected call of Storable.
func (*MockRCloneObjectMockRecorder) String ¶
func (mr *MockRCloneObjectMockRecorder) String() *gomock.Call
String indicates an expected call of String.