clients

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StorageTypeNotSupported          string = "the requested storage type is not supported"
	StorageManagerCommunicationError string = "could not communicate with storage manager"
)

ErrorMessages that are reported to the user

Variables

This section is empty.

Functions

This section is empty.

Types

type StorageManagerInterface

type StorageManagerInterface interface {
	// AllocateStorage allocates storage based on the selected storage account by invoking the specific implementation agent
	// returns a Connection object in case of success, and an error - otherwise
	AllocateStorage(request *storagemanager.AllocateStorageRequest) (*storagemanager.AllocateStorageResponse, error)
	// DeleteStorage deletes the allocated storage
	DeleteStorage(request *storagemanager.DeleteStorageRequest) error
	// GetSupportedStorageTypes returns a list of supported connection types
	GetSupportedStorageTypes() (*storagemanager.GetSupportedStorageTypesResponse, error)
	io.Closer
}

StorageManagerInterface is an interface for storage management

func NewMockupStorageManager

func NewMockupStorageManager() StorageManagerInterface

func NewOpenAPIStorageManager

func NewOpenAPIStorageManager(address string) StorageManagerInterface

NewOpenAPIStorageManager creates a StorageManagerInterface facade that connects to a openApi service

func NewStorageManager

func NewStorageManager() (StorageManagerInterface, error)

Jump to

Keyboard shortcuts

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