factory

package
v0.0.2 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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewStorageBackend

func CreateNewStorageBackend(ctx context.Context, storageDriver storage.Driver) (storage.Backend, error)

func GetStorageDriver

func GetStorageDriver(driverName string) (storage.Driver, error)

func NewStorageBackendForConfig

func NewStorageBackendForConfig(
	ctx context.Context, configJSON, configRef, backendUUID string,
	commonConfig *drivers.CommonStorageDriverConfig, backendSecret map[string]string,
) (sb storage.Backend,
	err error,
)

func SpecOnlyValidation

func SpecOnlyValidation(
	ctx context.Context, commonConfig *drivers.CommonStorageDriverConfig,
	configInJSON string,
) error

SpecOnlyValidation applies to values supplied through the CRD controller, this ensures that forbidden attributes are not in the spec, and contains the credentials field.

func ValidateCommonSettings

func ValidateCommonSettings(ctx context.Context, configJSON string) (commonConfig *drivers.CommonStorageDriverConfig,
	configInJSON string, err error,
)

Types

This section is empty.

Jump to

Keyboard shortcuts

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