http

package
v0.9.3-beta Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// APIVersion is the version of API.
	APIVersion = "/apis/v1alpha1"

	// TenantNamePathParameterName represents the name of the path parameter for tenant name.
	TenantNamePathParameterName = "tenant"

	// ProjectNamePathParameterName represents the name of the path parameter for project name.
	ProjectNamePathParameterName = "project"

	// ResourceNamePathParameterName represents the name of the path parameter for resource name.
	ResourceNamePathParameterName = "resource"

	// StageNamePathParameterName represents the name of the path parameter for stage name.
	StageNamePathParameterName = "stage"

	// TemplateNamePathParameterName represents the name of the path parameter for template name.
	TemplateNamePathParameterName = "template"

	// WorkflowNamePathParameterName represents the name of the path parameter for workflow name.
	WorkflowNamePathParameterName = "workflow"

	// WorkflowRunNamePathParameterName represents the name of the path parameter for workflowrun name.
	WorkflowRunNamePathParameterName = "workflowrun"

	// WorkflowTriggerNamePathParameterName represents the name of the path parameter for workflowtrigger name.
	WorkflowTriggerNamePathParameterName = "workflowtrigger"

	// StageNameQueryParameter represents the query param stage name.
	StageNameQueryParameter = "stage"

	// ContainerNameQueryParameter represents the query param container name.
	ContainerNameQueryParameter = "container"

	// PaginationAutoParameter represents the auto param pagination.
	PaginationAutoParameter = "pagination"

	// TenantHeaderName is name of tenant header name in http reqeust
	TenantHeaderName = "X-Tenant"

	// HeaderContentType represents the the key of Content-Type.
	HeaderContentType = "Content-Type"

	// DefaultNamespace represents the default namespace 'default'.
	DefaultNamespace = "default"

	// DownloadQueryParameter represents a download flag of the query parameter.
	DownloadQueryParameter = "download"

	// StatusQueryParameter represents a status of the query parameter.
	StatusQueryParameter = "status"

	// IncludePublicQueryParameter indicates whether include system level resources, for example, when list
	// stage templates in a tenant, whether to include system level templates. Default is true.
	IncludePublicQueryParameter = "includePublic"
)

Variables

This section is empty.

Functions

func GetHTTPRequest added in v0.9.3

func GetHTTPRequest(ctx context.Context) *http.Request

GetHTTPRequest gets request from context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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