package
1.9.2
Repository: https://github.com/tkestack/tke.git
Documentation: pkg.go.dev

# Functions

ClusterFrom get the cluster name from request context.
FuzzyResourceFrom get the fuzzy resource name from request context.
ClusterFrom get the cluster name from request context.
RequestBodyFrom returns the RequestBody object.
WithCluster creates an http handler that tries to get the cluster name from the given request, and then stores any such cluster name found onto the provided context for the request.
WithFuzzyResource adds the fuzzy resource name to the context of the http access chain.
WithNamespace creates an http handler that tries to get the namespace id from the given request query params, and then stores any such namespace found onto the provided context for the request.
WithRequestBody adds the request body to the context of the http access chain.

# Constants

ClusterNameHeaderKey is the header name of cluster.
FuzzyResourceNameHeaderKey is the header name of fuzzy resource query name.
ProjectNameHeaderKey is the header name of project.

# Structs

RequestBody represents the body of HTTP request.