Documentation ¶
Index ¶
Constants ¶
View Source
const ( // APIVersion is the version of API. APIVersion = "/api/v1" // ProjectPathParameterName represents the name of the path parameter for project. ProjectPathParameterName = "project" // PipelinePathParameterName represents the name of the path parameter for pipeline. PipelinePathParameterName = "pipeline" // PipelineIDPathParameterName represents the name of the path parameter for pipeline id. PipelineIDPathParameterName = "pipelineid" // PipelineRecordPathParameterName represents the name of the path parameter for pipeline record. PipelineRecordPathParameterName = "recordid" // PipelineRecordStagePathParameterName represents the name of the query parameter for pipeline record stage. PipelineRecordStageQueryParameterName = "stage" // PipelineRecordTaskQueryParameterName represents the name of the query parameter for pipeline record task. PipelineRecordTaskQueryParameterName = "task" // PipelineRecordDownloadQueryParameter represents a download flag of the query parameter for pipeline record task. PipelineRecordDownloadQueryParameter = "download" // EventPathParameterName represents the name of the path parameter for event. EventPathParameterName = "eventid" // CloudPathParameterName represents the name of the path parameter for cloud. CloudPathParameterName = "cloud" // NamespaceQueryParameterName represents the k8s cluster namespce of the query parameter for cloud. NamespaceQueryParameter = "namespace" // RepoQueryParameterName represents the repo name of the query parameter. RepoQueryParameter = "repo" // StartTimeQueryParameter represents the query param start time. StartTimeQueryParameter string = "startTime" // EndTimeQueryParameter represents the query param end time. EndTimeQueryParameter string = "endTime" // HeaderUser represents the the key of user in request header. HeaderUser = "X-User" HEADER_ContentType = "Content-Type" )
Variables ¶
This section is empty.
Functions ¶
func GetHttpRequest ¶ added in v0.7.1
GetHttpRequest gets request from context.
func QueryParamsFromContext ¶ added in v0.7.1
func QueryParamsFromContext(ctx context.Context) (qp api.QueryParams, err error)
QueryParamsFromContext reads the query params from context.
func ResponseWithList ¶
func ResponseWithList(list interface{}, total int) api.ListResponse
ResponseWithList responses list with metadata.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.