Documentation ¶
Index ¶
Constants ¶
View Source
const ( OrderBy = "sortBy" Ascending = "ascending" Descending = "descending" Limit = "limit" Page = "page" LabelSelector = "labelSelector" )
View Source
const ( CreateTime = "createTime" Name = "name" InspectPolicy = "inspectPolicy" Phase = "phase" Duration = "duration" Suspend = "suspend" InspectType = "inspectType" LastTaskStatus = "lastTaskStatus" LastTaskStartTime = "lastTaskStartTime" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pagination ¶
func NewPagination ¶
func NewPagination() *Pagination
func ParsePagination ¶
func ParsePagination(values url.Values) *Pagination
type Query ¶
type Query struct { // pagination Pagination *Pagination // sort by SortBy SortBy // sort result in ascending or descending order, default to descending Ascending bool // filters Filters *Filter // label selector LabelSelector string }
func ParseQuery ¶
func (*Query) GetPageData ¶
func (*Query) ParseAscending ¶
Click to show internal directories.
Click to hide internal directories.