Documentation
¶
Index ¶
- func CompareOperator(op string, key string, reqValue string, value interface{}) (bool, error)
- func GetPoolCapabilityMap(pool *model.StoragePoolSpec) (map[string]interface{}, error)
- func InOperator(key string, reqValue string, value interface{}) (bool, error)
- func IsAvailablePool(filterReq map[string]interface{}, pool *model.StoragePoolSpec) (bool, error)
- func OrOperator(key string, words []string, value interface{}) (bool, error)
- func ParseBoolAndCompare(key string, a interface{}, b string) (bool, error)
- func ParseFloat64AndCompare(op string, key string, a interface{}, b string) (bool, error)
- func SelectSupportedPools(maxNum int, filterReq map[string]interface{}, pools []*model.StoragePoolSpec) ([]*model.StoragePoolSpec, error)
- func StringCompare(op string, key string, a string, b string) (bool, error)
- type Selector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareOperator ¶
CompareOperator ...
func GetPoolCapabilityMap ¶ added in v0.1.8
func GetPoolCapabilityMap(pool *model.StoragePoolSpec) (map[string]interface{}, error)
GetPoolCapabilityMap ...
func InOperator ¶
InOperator ...
func IsAvailablePool ¶
func IsAvailablePool(filterReq map[string]interface{}, pool *model.StoragePoolSpec) (bool, error)
IsAvailablePool ...
func OrOperator ¶
OrOperator ...
func ParseBoolAndCompare ¶
ParseBoolAndCompare ...
func ParseFloat64AndCompare ¶
ParseFloat64AndCompare ...
func SelectSupportedPools ¶
func SelectSupportedPools(maxNum int, filterReq map[string]interface{}, pools []*model.StoragePoolSpec) ([]*model.StoragePoolSpec, error)
SelectSupportedPools ...
Types ¶
type Selector ¶
type Selector interface { SelectSupportedPool(map[string]interface{}) (*model.StoragePoolSpec, error) SelectSupportedPoolForVG(*model.VolumeGroupSpec) (*model.StoragePoolSpec, error) }
Selector is an interface that exposes some operation of different selectors.
Source Files
¶
- filter.go
- selector.go
Click to show internal directories.
Click to hide internal directories.