executor

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeZcmd

type FakeZcmd struct {
	// contains filtered or unexported fields
}

FakeZcmd holds the Pool and Volumes information which will helpful to mocking zpool and zfs commands

func NewFakeZCommand

func NewFakeZCommand() *FakeZcmd

NewFakeZCommand returns new instance of FakeZcmd

func NewFakeZCommandFromMockers added in v1.12.0

func NewFakeZCommandFromMockers(poolMocker *zpool.PoolMocker,
	volumeMocker *zfs.VolumeMocker) *FakeZcmd

NewFakeZCommandFromMockers returns new instance of FakeZcmd from MockPoolInfo

func (*FakeZcmd) Execute

func (f *FakeZcmd) Execute(cmd string) ([]byte, error)

Execute is to execute fake ZPOOL/ZFS commands which may return output (or) error based on test configuration

Jump to

Keyboard shortcuts

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