mirror of
https://github.com/rancher/steve.git
synced 2025-09-02 07:55:31 +00:00
Add parsing of the indirect access operator ('=>').
This commit is contained in:
@@ -40,10 +40,12 @@ type ListOptions struct {
|
||||
//
|
||||
// If more than one value is given for the `Match` field, we do an "IN (<values>)" test
|
||||
type Filter struct {
|
||||
Field []string
|
||||
Matches []string
|
||||
Op Op
|
||||
Partial bool
|
||||
Field []string
|
||||
Matches []string
|
||||
Op Op
|
||||
Partial bool
|
||||
IsIndirect bool
|
||||
IndirectFields []string
|
||||
}
|
||||
|
||||
// OrFilter represents a set of possible fields to filter by, where an item may match any filter in the set to be included in the result.
|
||||
@@ -57,12 +59,10 @@ type OrFilter struct {
|
||||
// The order is represented by prefixing the sort key by '-', e.g. sort=-metadata.name.
|
||||
// e.g. To sort internal clusters first followed by clusters in alpha order: sort=-spec.internal,spec.displayName
|
||||
type Sort struct {
|
||||
Fields []string
|
||||
Order SortOrder
|
||||
}
|
||||
|
||||
type SortList struct {
|
||||
SortDirectives []Sort
|
||||
Fields []string
|
||||
Order SortOrder
|
||||
IsIndirect bool
|
||||
IndirectFields []string
|
||||
}
|
||||
|
||||
type SortList struct {
|
||||
@@ -80,9 +80,3 @@ func NewSortList() *SortList {
|
||||
SortDirectives: []Sort{},
|
||||
}
|
||||
}
|
||||
|
||||
func NewSortList() *SortList {
|
||||
return &SortList{
|
||||
SortDirectives: []Sort{},
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user