Documentation ¶
Index ¶
- func AllowRemote(ctx Context)
- func BasicAuth(ctx Context)
- func BodyLimit(ctx Context)
- func ForwardAuth(ctx Context)
- func InjectHSTS(ctx Context)
- func InjectStateIngress(ctx Context)
- func JaegerTrace(ctx Context)
- func OperationsTrace(ctx Context)
- func RateLimit(ctx Context)
- func RedirectHTTPS(ctx Context)
- func RedirectRules(ctx Context)
- func StripPrefix(ctx Context)
- func UpstreamHost(ctx Context)
- func UpstreamPath(ctx Context)
- func UpstreamProtocol(ctx Context)
- type Context
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowRemote ¶ added in v0.10.7
func AllowRemote(ctx Context)
AllowRemote allows only request come from given ip range except /.well-known/acme-challenge
func BodyLimit ¶ added in v0.3.1
func BodyLimit(ctx Context)
BodyLimit injects body limit middleware
func InjectStateIngress ¶ added in v0.10.0
func InjectStateIngress(ctx Context)
InjectStateIngress injects ingress name and namespace to state
func OperationsTrace ¶ added in v0.10.8
func OperationsTrace(ctx Context)
OperationsTrace traces to google cloud operation
func RateLimit ¶ added in v0.3.1
func RateLimit(ctx Context)
RateLimit injects rate limit middleware
func RedirectHTTPS ¶ added in v0.3.1
func RedirectHTTPS(ctx Context)
RedirectHTTPS redirects http to https except /.well-known/acme-challenge
func RedirectRules ¶ added in v0.3.1
func RedirectRules(ctx Context)
RedirectRules load redirect rules from annotation and inject to routes
func StripPrefix ¶ added in v0.10.7
func StripPrefix(ctx Context)
StripPrefix strip prefix request path
func UpstreamHost ¶ added in v0.6.0
func UpstreamHost(ctx Context)
UpstreamHost overrides request's host
func UpstreamPath ¶ added in v0.11.3
func UpstreamPath(ctx Context)
UpstreamPath adds path prefix before send to upstream
func UpstreamProtocol ¶ added in v0.4.0
func UpstreamProtocol(ctx Context)
UpstreamProtocol changes upstream protocol
Types ¶
type Context ¶
type Context struct { *parapet.Middlewares Routes map[string]http.Handler Ingress *networking.Ingress }
Context holds plugin's relate data
Click to show internal directories.
Click to hide internal directories.