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)
Click to show internal directories.
Click to hide internal directories.