backend

package
v0.0.0-...-863bf19 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Topology constant for topology filter function
	Topology = "topology"
)

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, driverName string) error

func SelectStoragePool

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

func SyncUpdateCapabilities

func SyncUpdateCapabilities() error

Types

type AccessibleTopology

type AccessibleTopology struct {
	RequisiteTopologies []map[string]string
	PreferredTopologies []map[string]string
}

AccessibleTopology represents selected node topology

type Backend

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

	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
}

func (*StoragePool) GetSupportedTopologies

func (pool *StoragePool) GetSupportedTopologies() []map[string]string

GetSupportedTopologies return configured supported topology by pool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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