plugin

package
v0.11.17 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

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 BasicAuth added in v0.6.0

func BasicAuth(ctx Context)

BasicAuth adds basic auth

func BodyLimit added in v0.3.1

func BodyLimit(ctx Context)

BodyLimit injects body limit middleware

func ForwardAuth added in v0.11.9

func ForwardAuth(ctx Context)

ForwardAuth adds forward auth

func InjectHSTS added in v0.3.1

func InjectHSTS(ctx Context)

InjectHSTS injects hsts header

func InjectStateIngress added in v0.10.0

func InjectStateIngress(ctx Context)

InjectStateIngress injects ingress name and namespace to state

func JaegerTrace added in v0.11.1

func JaegerTrace(ctx Context)

JaegerTrace traces to jaeger

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

type Plugin

type Plugin func(ctx Context)

Plugin injects middleware or mutate router while reading ingress object

Jump to

Keyboard shortcuts

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