mocks

package
v1.12.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func NewProvider

func NewProvider(t mockConstructorTestingTNewProvider) *Provider

NewProvider creates a new instance of Provider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Provider) Close

func (_m *Provider) Close(ctx context.Context) error

Close provides a mock function with given fields: ctx

func (*Provider) RunBackup

func (_m *Provider) RunBackup(ctx context.Context, path string, realSource string, tags map[string]string, forceFull bool, parentSnapshot string, volMode uploader.PersistentVolumeMode, updater uploader.ProgressUpdater) (string, bool, error)

RunBackup provides a mock function with given fields: ctx, path, realSource, tags, forceFull, parentSnapshot, updater

func (*Provider) RunRestore

func (_m *Provider) RunRestore(ctx context.Context, snapshotID string, volumePath string, volMode uploader.PersistentVolumeMode, updater uploader.ProgressUpdater) error

RunRestore provides a mock function with given fields: ctx, snapshotID, volumePath, updater

Jump to

Keyboard shortcuts

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