sanity

package
v9.4.28+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

README

OSD Sanity Tester

This library provides a simple way to ensure that a OSD plugin conforms to the OpenStorage specification.

Please see osd-sanity

Documentation

Index

Constants

View Source
const (
	BYTE = 1.0 << (10 * iota)
	KILOBYTE
	MEGABYTE
	GIGABYTE
	TERABYTE
)

Variables

This section is empty.

Functions

func Test

func Test(t *testing.T, address, driver, cloudBackupConfigPath string)

Test will test the CSI driver at the specified address

Types

type CloudBackupConfig

type CloudBackupConfig struct {
	//CloudProvider string `yaml:"providers"`
	// map[string]string is volume.VolumeParams equivalent
	CloudProviders map[string]map[string]string
}

CloudBackupConfig struct for cloud backup configuration

func CloudProviderConfigParse

func CloudProviderConfigParse(filePath string) (*CloudBackupConfig, error)

CloudProviderConfigParse parses the config file of cloudBackup

Jump to

Keyboard shortcuts

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