testutils

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SlowNoSnapshots = "slow-no-snapshots"
	SlowSnapshots   = "slow-snapshots"
	FastSmall       = "fast-small"
	FastThinOnly    = "fast-thin-only"
	FastUniqueAttr  = "fast-unique-attr"
	MediumOverlap   = "medium-overlap"
)

Variables

This section is empty.

Functions

func GenerateFakePools

func GenerateFakePools(count int) map[string]*fake.StoragePool

func GenerateVolumeConfig

func GenerateVolumeConfig(
	name string, gb int, storageClass string, protocol config.Protocol,
) *storage.VolumeConfig

func GetFakePools

func GetFakePools() map[string]*fake.StoragePool

Types

type PoolMatch

type PoolMatch struct {
	Backend string
	Pool    string
}

func (*PoolMatch) Matches

func (p *PoolMatch) Matches(pool storage.Pool) bool

func (*PoolMatch) String

func (p *PoolMatch) String() string

Jump to

Keyboard shortcuts

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