util

package
v0.14.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PaddleflowRouterPrefix    = "/api/paddleflow"
	PaddleflowRouterVersionV1 = "/v1"

	DefaultMaxKeys     = 50
	ListPageMax        = 1000
	MaxDescLength      = 256
	StsDurationDefault = "43200"

	ParamKeyQueueName         = "queueName"
	ParamKeyRunID             = "runID"
	ParamKeyCheckCache        = "checkCache"
	ParamKeyRunCacheID        = "runCacheID"
	ParamKeyPipelineID        = "pipelineID"
	ParamKeyPipelineVersionID = "pipelineVersionID"
	ParamKeyScheduleID        = "scheduleID"

	QueryKeyAction    = "action"
	QueryActionStop   = "stop"
	QueryActionRetry  = "retry"
	QueryActionDelete = "delete"
	QueryActionCreate = "create"
	QueryActionModify = "modify"

	QueryKeyMarker  = "marker"
	QueryKeyMaxKeys = "maxKeys"

	QueryKeyPipelineID       = "pipelineID"
	QueryKeyScheduleFilter   = "scheduleFilter"
	QueryKeyStatusFilter     = "statusFilter"
	QueryKeyUserFilter       = "userFilter"
	QueryKeyFsFilter         = "fsFilter"
	QueryKeyPplFilter        = "pplFilter"
	QueryKeyPplVersionFilter = "pplVersionFilter"
	QueryKeyNameFilter       = "nameFilter"
	QueryKeyRunFilter        = "runFilter"
	QueryKeyTypeFilter       = "typeFilter"
	QueryKeyPathFilter       = "pathFilter"
	QueryKeyUser             = "user"
	QueryKeyName             = "name"
	QueryKeyNamespace        = "namespace"
	QueryKeyUserName         = "username"
	QueryKeyClusterName      = "clusterName"
	QueryResourceType        = "resourceType"
	QueryResourceID          = "resourceID"
	QueryKeyStatus           = "status"
	QueryKeyTimestamp        = "timestamp"
	QueryKeyStartTime        = "startTime"
	QueryKeyQueue            = "queue"
	QueryKeyLabels           = "labels"
	QueryKeyReadFromTail     = "readFromTail"
	QueryKeySizeLimit        = "sizeLimit"
	QueryKeyLineLimit        = "lineLimit"
	QueryKeyType             = "type"
	QueryKeyFramework        = "framework"

	ParamKeyClusterName   = "clusterName"
	ParamKeyClusterNames  = "clusterNames"
	ParamKeyClusterStatus = "clusterStatus"

	QueryFsPath     = "fsPath"
	QueryFsName     = "fsName"
	QueryFsname     = "fsname"
	QueryPath       = "path"
	QueryClusterID  = "clusterID"
	QueryNodeName   = "nodename"
	QueryMountPoint = "mountpoint"

	ParamFlavourName = "flavourName"

	// cluster name最大长度
	ClusterNameMaxLength = 255

	ParamKeyName            = "name"
	ParamKeyNamespace       = "namespace"
	ParamKeyKind            = "kind"
	ParamKeyAPIVersion      = "apiVersion"
	ParamKeyJobID           = "jobID"
	ParamKeyPageNo          = "pageNo"
	ParamKeyPageSize        = "pageSize"
	ParamKeyLogFilePosition = "logFilePosition"

	ParamKeyStart = "start"
	ParamKeyEnd   = "end"
	ParamKeyStep  = "step"
)

Variables

This section is empty.

Functions

func GetQueryMaxKeys

func GetQueryMaxKeys(ctx *logger.RequestContext, r *http.Request) (int, error)

func SplitFilter added in v0.14.3

func SplitFilter(strFilter string, splitter string, toStrip bool) (filterList []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL