mocks

package
v0.0.0-...-1c5d739 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DFS

type DFS struct {
	mock.Mock
}

func (*DFS) Backup

func (_m *DFS) Backup(info dfs.BackupInfo, w io.Writer) error

Backup provides a mock function with given fields: info, w

func (*DFS) BackupInfo

func (_m *DFS) BackupInfo(r io.Reader) (*dfs.BackupInfo, error)

BackupInfo provides a mock function with given fields: r

func (*DFS) Commit

func (_m *DFS) Commit(ctrID string) (string, error)

Commit provides a mock function with given fields: ctrID

func (*DFS) Create

func (_m *DFS) Create(tenantID string) error

Create provides a mock function with given fields: tenantID

func (*DFS) Delete

func (_m *DFS) Delete(snapshotID string) error

Delete provides a mock function with given fields: snapshotID

func (*DFS) Destroy

func (_m *DFS) Destroy(tenantID string) error

Destroy provides a mock function with given fields: tenantID

func (*DFS) DfPath

func (_m *DFS) DfPath(path string, excludes []string) (uint64, error)

Get free disk space for a path

func (*DFS) Download

func (_m *DFS) Download(image string, tenantID string, upgrade bool) (string, error)

Download provides a mock function with given fields: image, tenantID, upgrade

func (*DFS) EstimateImagePullSize

func (_m *DFS) EstimateImagePullSize(images []string) (uint64, error)

func (*DFS) GetImageInfo

func (_m *DFS) GetImageInfo(image string) (*dfs.ImageInfo, error)

func (*DFS) Info

func (_m *DFS) Info(snapshotID string) (*dfs.SnapshotInfo, error)

Info provides a mock function with given fields: snapshotID

func (*DFS) List

func (_m *DFS) List(tenantID string) ([]string, error)

List provides a mock function with given fields: tenantID

func (*DFS) Lock

func (_m *DFS) Lock(opName string)

Lock provides a mock function with given fields: opName

func (*DFS) LockWithTimeout

func (_m *DFS) LockWithTimeout(opName string, timeout time.Duration) error

LockWithTimeout provides a mock function with given fields: opName, timeout

func (*DFS) Override

func (_m *DFS) Override(newImage string, oldImage string) error

Override provides a mock function with given fields: newImage, oldImage

func (*DFS) Restore

func (_m *DFS) Restore(r io.Reader, version int) error

Restore provides a mock function with given fields: r, backupInfo

func (*DFS) Rollback

func (_m *DFS) Rollback(snapshotID string) error

Rollback provides a mock function with given fields: snapshotID

func (*DFS) Snapshot

func (_m *DFS) Snapshot(info dfs.SnapshotInfo, spaceFactor int) (string, error)

Snapshot provides a mock function with given fields: info

func (*DFS) Tag

func (_m *DFS) Tag(snapshotID string, tagName string) error

Tag provides a mock function with given fields: snapshotID, tagName

func (*DFS) TagInfo

func (_m *DFS) TagInfo(tenantID string, tagName string) (*dfs.SnapshotInfo, error)

TagInfo provides a mock function with given fields: tenantID, tagName

func (*DFS) Timeout

func (_m *DFS) Timeout() time.Duration

Timeout provides a mock function with given fields:

func (*DFS) Unlock

func (_m *DFS) Unlock()

Unlock provides a mock function with given fields:

func (*DFS) Untag

func (_m *DFS) Untag(tenantID string, tagName string) (string, error)

Untag provides a mock function with given fields: tenantID, tagName

func (*DFS) UpgradeRegistry

func (_m *DFS) UpgradeRegistry(svcs []service.ServiceDetails, tenantID string, registryHost string, override bool) error

UpgradeRegistry provides a mock function with given fields: svcs, tenantID, registryHost, override

func (*DFS) VerifyTenantMounts

func (_m *DFS) VerifyTenantMounts(tenantid string) error

Jump to

Keyboard shortcuts

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