route

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Main frontends
	FrontendHTTP  = "http"
	FrontendHTTPS = "https"
)

Variables

View Source
var CustomRoutes bool

Functions

func AddCustomRoute

func AddCustomRoute(route Route, routeACLAnn store.StringW, api api.HAProxyClient) (reload bool, err error)

AddCustomRoute adds an ingress route with specific ACL via use_backend haproxy directive

func AddHostPathRoute

func AddHostPathRoute(route Route, mapFiles *haproxy.Maps) error

AddHostPathRoute adds Host/Path ingress route to haproxy Map files used for backend switching.

func RoutesReset

func RoutesReset(api api.HAProxyClient) (err error)

Types

type Route

type Route struct {
	Host           string
	Path           *store.IngressPath
	HAProxyRules   []haproxy.RuleID
	BackendName    string
	SSLPassthrough bool
}

Jump to

Keyboard shortcuts

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