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 ¶ added in v0.1.4
CompareOperator ...
func GetPoolCapabilityMap ¶ added in v0.1.5
func GetPoolCapabilityMap(pool *model.StoragePoolSpec) (map[string]interface{}, error)
GetPoolCapabilityMap ...
func InOperator ¶ added in v0.1.4
InOperator ...
func IsAvailablePool ¶ added in v0.1.4
func IsAvailablePool(filterReq map[string]interface{}, pool *model.StoragePoolSpec) (bool, error)
IsAvailablePool ...
func OrOperator ¶ added in v0.1.4
OrOperator ...
func ParseBoolAndCompare ¶ added in v0.1.4
ParseBoolAndCompare ...
func ParseFloat64AndCompare ¶ added in v0.1.4
ParseFloat64AndCompare ...
func SelectSupportedPools ¶ added in v0.1.4
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.
func NewSelector ¶
func NewSelector() Selector
NewSelector method creates a new selector structure and return its pointer.
Click to show internal directories.
Click to hide internal directories.