util

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

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

	DefaultMaxKeys = 50
	ListPageMax    = 1000

	ParamKeyQueueName  = "queueName"
	ParamKeyRunID      = "runID"
	ParamKeyCheckCache = "checkCache"
	ParamKeyRunCacheID = "runCacheID"
	ParamKeyPipelineID = "pipelineID"

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

	QueryKeyMarker  = "marker"
	QueryKeyMaxKeys = "maxKeys"

	QueryKeyUserFilter = "userFilter"
	QueryKeyFsFilter   = "fsFilter"
	QueryKeyNameFilter = "nameFilter"
	QueryKeyRunFilter  = "runFilter"
	QueryKeyTypeFilter = "typeFilter"
	QueryKeyPathFilter = "pathFilter"
	QueryKeyUser       = "user"
	QueryKeyName       = "name"
	QueryKeyUserName   = "username"
	QueryResourceType  = "resourceType"
	QueryResourceID    = "resourceID"
	QueryKeyStatus     = "status"
	QueryKeyTimestamp  = "timestamp"
	QueryKeyStartTime  = "startTime"
	QueryKeyQueue      = "queue"
	QueryKeyLabels     = "labels"

	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"
)

Variables

This section is empty.

Functions

func GetQueryMaxKeys

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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