feat(clientcache): Define sort types and constants (#6331)
Co-authored-by: Sepehr <sepehr.foroughishafiei@hashicorp.com>
This commit is contained in:
1 parent
b054fc7e34
commit
11f9a9aac0
1 file changed
+16
+16
@@ -17,6 +17,22 @@ import (
|
||||
"github.com/hashicorp/go-bexpr"
|
||||
)
|
||||
|
||||
type SortBy string
|
||||
|
||||
const (
|
||||
SortByDefault SortBy = ""
|
||||
SortByName SortBy = "name"
|
||||
SortByCreatedTime SortBy = "created_time"
|
||||
)
|
||||
|
||||
type SortDirection string
|
||||
|
||||
const (
|
||||
SortDirectionDefault SortDirection = ""
|
||||
Ascending SortDirection = "asc"
|
||||
Descending SortDirection = "desc"
|
||||
)
|
||||
|
||||
type SearchableResource string
|
||||
|
||||
const (
|
||||
|
||||
Reference in new issue
Block a user