shared

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// ConfigVersion - used in all unit test
	ConfigVersion string = "v2.2.0"
)

Variables

This section is empty.

Functions

func MakeCSM

func MakeCSM(name, ns, configVersion string) csmv1.ContainerStorageModule

MakeCSM returns a csm from given params

func MakeDriver

func MakeDriver(configVersion, skipCertValid string) csmv1.Driver

MakeDriver returns a driver object from given params

func MakePod

func MakePod(name, ns string) corev1.Pod

MakePod returns a pod object

func MakeSecret

func MakeSecret(name, ns, configVersion string) *corev1.Secret

MakeSecret returns a driver pre-req secret array-config

Types

type ErrorInjector

type ErrorInjector interface {
	ShouldFail(method string, obj runtime.Object) error
}

ErrorInjector is used for testing errors for the fake client

type StorageKey

type StorageKey struct {
	Namespace string
	Name      string
	Kind      string
}

StorageKey is used to store a runtime object. It's used for both clientgo client and controller runtime client

func GetKey

func GetKey(obj runtime.Object) (StorageKey, error)

GetKey returns the storageKey based on the given runtime object

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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