backend

package
v0.0.0-...-36737da Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsyncUpdateCapabilities

func AsyncUpdateCapabilities(controllerFlagFile string)

func GetMetroDomain

func GetMetroDomain(backendName string) string

func GetMetrovStorePairID

func GetMetrovStorePairID(backendName string) string

func RegisterBackend

func RegisterBackend(backendConfigs []map[string]interface{}, keepLogin bool) error

func SelectStoragePool

func SelectStoragePool(requestSize int64, parameters map[string]interface{}) (*StoragePool, *StoragePool, error)

func SyncUpdateCapabilities

func SyncUpdateCapabilities() error

Types

type Backend

type Backend struct {
	Name       string
	Storage    string
	Available  bool
	Plugin     plugin.Plugin
	Pools      []*StoragePool
	Parameters map[string]interface{}

	MetroDomain       string
	MetrovStorePairID string
	MetroBackendName  string
	MetroBackend      *Backend

	ReplicaBackendName string
	ReplicaBackend     *Backend
}

func GetBackend

func GetBackend(backendName string) *Backend

type StoragePool

type StoragePool struct {
	Name         string
	Storage      string
	Parent       string
	Capabilities map[string]interface{}
	Plugin       plugin.Plugin
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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