Documentation ¶
Index ¶
Constants ¶
View Source
const ( OrderBy = "sortBy" Ascending = "ascending" Descending = "descending" Limit = "limit" Page = "page" LabelSelector = "labelSelector" Details = "details" Type = "type" Source = "source" )
View Source
const ( CreateTime = "createTime" Name = "name" InspectPolicy = "inspectPolicy" Strategy = "strategy" Status = "status" Duration = "duration" Suspend = "suspend" InspectType = "inspectType" LastTaskStatus = "lastTaskStatus" LastTaskStartTime = "lastTaskStartTime" StartTimestamp = "startTimestamp" )
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.