Documentation ¶
Index ¶
- func CloneSlice(src []interface{}) ([]interface{}, error)
- func CompareBool(value interface{}, operator string, expectedValue interface{}) bool
- func CompareFloat(value interface{}, operator string, expectedValue interface{}) bool
- func CompareString(value interface{}, operator string, filterValue interface{}) bool
- func Filter(entities []interface{}, filters []storageTY.Filter, returnSingle bool) []interface{}
- func FilterByStringMap(entities []interface{}, filtersMap map[string]string) []interface{}
- func GetID(data interface{}) string
- func GetSortByKeyPath(keyPath, orderBy string, data []interface{}) []interface{}
- func GetValueByKeyPath(data interface{}, keyPath string) (reflect.Kind, interface{}, error)
- func IsMatching(entity interface{}, filters []storageTY.Filter) bool
- func IsMine(svcFilter *sfTY.ServiceFilter, targetType, targetID string, ...) bool
- func Sort(entities []interface{}, pagination *storageTY.Pagination) ([]interface{}, int64)
- func VerifyBoolSlice(value bool, operator string, filterValue interface{}) bool
- func VerifyFloatSlice(value float64, operator string, expectedValue interface{}) bool
- func VerifyStringSlice(value string, operator string, filterValue interface{}) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneSlice ¶
func CloneSlice(src []interface{}) ([]interface{}, error)
CloneSlice source to destination
func CompareBool ¶
CompareBool compares strings
func CompareFloat ¶
CompareFloat compares float
func CompareString ¶
CompareString compares strings
func FilterByStringMap ¶
FilterByStringMap filter
func GetSortByKeyPath ¶
func GetSortByKeyPath(keyPath, orderBy string, data []interface{}) []interface{}
GetSortByKeyPath returns the slice in order
func GetValueByKeyPath ¶
GetValueByKeyPath returns type and value from the given struct returns reflect.Kind, value, error
func IsMatching ¶
IsMatching returns matching status
func IsMine ¶
func IsMine(svcFilter *sfTY.ServiceFilter, targetType, targetID string, targetLabels cmap.CustomStringMap) bool
IsMine verifies the supplied id and labels with valid list
func Sort ¶
func Sort(entities []interface{}, pagination *storageTY.Pagination) ([]interface{}, int64)
Sort given slice
func VerifyBoolSlice ¶
VerifyBoolSlice implementation
func VerifyFloatSlice ¶
VerifyFloatSlice implementation
func VerifyStringSlice ¶
VerifyStringSlice implementation
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.