cmd

package
v0.0.0-...-b39fe23 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Baseline

func Baseline(ctx context.Context, output string) error

Baseline executes the baseline check

func BlockMountCheck

func BlockMountCheck(ctx context.Context, output, outfile string, cleanupOnly bool, checkerArgs block.BlockMountCheckerArgs) error

func CSICheck

func CSICheck(ctx context.Context, output, outfile,
	namespace string,
	storageclass string,
	volumesnapshotclass string,
	runAsUser int64,
	containerImage string,
	cleanup bool,
	skipCFScheck bool,
) error

func CsiPvcBrowse

func CsiPvcBrowse(ctx context.Context,
	pvcName string,
	namespace string,
	volumeSnapshotClass string,
	runAsUser int64,
	localPort int,
	showTree bool,
) error

func CsiSnapshotBrowse

func CsiSnapshotBrowse(ctx context.Context,
	snapshotName string,
	namespace string,
	runAsUser int64,
	localPort int,
	showTree bool,
) error

func Execute

func Execute() error

Execute executes the main command

func FileRestore

func FileRestore(ctx context.Context,
	fromSnapshotName string,
	fromPVCName string,
	toPVCName string,
	namespace string,
	runAsUser int64,
	localPort int,
	path string,
) error

func Fio

func Fio(ctx context.Context, output, outfile, storageclass, size, namespace string, nodeSelector map[string]string, jobName, fioFilePath string, containerImage string) error

Fio executes the FIO test.

func PrintAndJsonOutput

func PrintAndJsonOutput(result []*kubestr.TestOutput, output string, outfile string) bool

PrintAndJsonOutput Print JSON output to stdout and to file if arguments say so Returns whether we have generated output or JSON

Types

This section is empty.

Jump to

Keyboard shortcuts

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