shared

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PFlexConfigVersion       string = "v2.10.0"
	ConfigVersion            string = "v2.8.0"
	UpgradeConfigVersion     string = "v2.9.0"
	JumpUpgradeConfigVersion string = "v2.10.0"
	OldConfigVersion         string = "v2.2.0"
	BadConfigVersion         string = "v0"
	PStoreConfigVersion      string = "v2.10.0"
	UnityConfigVersion       string = "v2.10.0"
	PScaleConfigVersion      string = "v2.10.0"
	PmaxConfigVersion        string = "v2.10.0"
	AccConfigVersion         string = "v1.0.0"
)

ConfigVersions used for all unit tests

Variables

This section is empty.

Functions

func MakeAcc added in v1.4.0

func MakeAcc(name, ns, configVersion string) csmv1.ApexConnectivityClient

MakeAcc - returns a csm from given params

func MakeApexConnectivityClient added in v1.4.0

func MakeApexConnectivityClient(configVersion, _ string) csmv1.Client

MakeApexConnectivityClient returns a driver object from given params

func MakeCSM

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

MakeCSM returns a csm from given params

func MakeConfigMap added in v1.2.0

func MakeConfigMap(name, ns, _ string) *corev1.ConfigMap

MakeConfigMap returns a driver pre-req configmap array-config

func MakeDriver

func MakeDriver(configVersion, skipCertValid string) csmv1.Driver

MakeDriver returns a driver object from given params

func MakeModule added in v1.0.0

func MakeModule(configVersion string) csmv1.Module

MakeModule returns a module object from given params

func MakeModuleCSM added in v1.0.0

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

MakeModuleCSM returns a csm from given params

func MakePod

func MakePod(name, ns string) corev1.Pod

MakePod returns a pod object

func MakeReverseProxyModule added in v1.2.0

func MakeReverseProxyModule(_ string) csmv1.Module

MakeReverseProxyModule returns a csireverseproxy object

func MakeSecret

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

MakeSecret returns a driver pre-req secret array-config

func MakeSecretWithJSON added in v1.0.0

func MakeSecretWithJSON(name string, ns string, configFile string) *corev1.Secret

MakeSecretWithJSON 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