Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultStep = 10 * time.Minute DefaultFilter = ".*" DefaultOrder = model.OrderDescending DefaultPage = 1 DefaultLimit = 5 ErrNoHit = "'end' or 'time' must be after the namespace creation time." ErrParamConflict = "'time' and the combination of 'start' and 'end' are mutually exclusive." ErrInvalidStartEnd = "'start' must be before 'end'." ErrInvalidPage = "Invalid parameter 'page'." ErrInvalidLimit = "Invalid parameter 'limit'." ErrParameterNotfound = "Parmameter [%s] not found" ErrResourceNotfound = "resource not found" ErrScopeNotAllowed = "scope [%s] not allowed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Query ¶
type Query struct { Level monitoring.Level Operation string LabelSelector string Time string Start string End string Step string Target string Order string Page string Limit string MetricFilter string ResourceFilter string NodeName string WorkspaceName string NamespaceName string WorkloadKind string WorkloadName string PodName string Applications string Services string StorageClassName string PVCFilter string Cluster string }
func ParseQueryParameter ¶
func ParseQueryParameter(req *restful.Request) *Query
Click to show internal directories.
Click to hide internal directories.