Documentation ¶
Index ¶
- func NewHandler(o *proxyoptions.Options, index index.Index) (http.Handler, error)
- func ShardURLFrom(ctx context.Context) *url.URL
- func WithProxyAuthHeaders(delegate http.HandlerFunc, UserHeader, GroupHeader string) http.HandlerFunc
- func WithShardURL(parent context.Context, shardURL *url.URL) context.Context
- type PathMapping
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func WithProxyAuthHeaders ¶
func WithProxyAuthHeaders(delegate http.HandlerFunc, UserHeader, GroupHeader string) http.HandlerFunc
WithProxyAuthHeaders does client cert termination by extracting the user and groups and passing them through access headers to the shard.
Types ¶
type PathMapping ¶
type PathMapping struct { Path string `json:"path"` Backend string `json:"backend"` BackendServerCA string `json:"backend_server_ca"` ProxyClientCert string `json:"proxy_client_cert"` ProxyClientKey string `json:"proxy_client_key"` UserHeader string `json:"user_header,omitempty"` GroupHeader string `json:"group_header,omitempty"` }
PathMapping describes how to route traffic from a path to a backend server. Each Path is registered with the DefaultServeMux with a handler that delegates to the specified backend.
Click to show internal directories.
Click to hide internal directories.