snapshottest

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeSnapshotter

type FakeSnapshotter struct {
	ShouldReturnFakeError bool
}

FakeSnapshotter is used to mock the snapshot operations

func (*FakeSnapshotter) CreateSnapshot

func (fs *FakeSnapshotter) CreateSnapshot(ip, volName, snapName string) (*v1proto.VolumeSnapCreateResponse, error)

CreateSnapshot mocks snapshot create operation

func (*FakeSnapshotter) DestroySnapshot

func (fs *FakeSnapshotter) DestroySnapshot(ip, volName, snapName string) (*v1proto.VolumeSnapDeleteResponse, error)

DestroySnapshot mocks snapshot delete operation

Jump to

Keyboard shortcuts

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