Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SvcProxyAnnotationPrefix defines the annotation prefix used by the proxy. SvcProxyAnnotationPrefix = "k8s-svc-proxy.local/" // SvcProxyAnnotationPath is the annotation used by a kubernetes service // to add a specific string to the list of paths handled by this proxy. SvcProxyAnnotationPath = SvcProxyAnnotationPrefix + "path" // SvcProxyAnnotationPort (optional) specifies the HTTP port to forward traffic to. SvcProxyAnnotationPort = SvcProxyAnnotationPrefix + "port" // SvcProxyAnnotationMap (optional) specifies a URL mapping by prefix. SvcProxyAnnotationMap = SvcProxyAnnotationPrefix + "map" // SvcProxyAnnotationDescription (optional) defines a human readable description for the service. SvcProxyAnnotationDescription = SvcProxyAnnotationPrefix + "description" // SvcProxyAnnotationEndpoint (optional) specifies that the endpoints of the service should be // exposed under the /endpoint path. SvcProxyAnnotationEndpoint = SvcProxyAnnotationPrefix + "endpoint-port" )
View Source
const SvcProxyHTTPPath = "/k8s-svc-proxy/"
SvcProxyHTTPPath is the http request path served by the proxy itself.
Variables ¶
This section is empty.
Functions ¶
func ExpandVars ¶
ExpandVars performs variable expansion of variables in the form of ${VAR}.
Types ¶
type EndpointStatus ¶
EndpointStatus is the status information corresponding to service backends.
Click to show internal directories.
Click to hide internal directories.