route

package
v1.10.7 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Main frontends
	FrontendHTTP  = "http"
	FrontendHTTPS = "https"
	// Routing Maps
	SNI         maps.Name = "sni"
	HOST        maps.Name = "host"
	PATH_EXACT  maps.Name = "path-exact"
	PATH_PREFIX maps.Name = "path-prefix"
)

Variables

View Source
var (
	CustomRoutes = make(map[string]string)
)

Functions

func AddCustomRoute

func AddCustomRoute(route Route, routeACLAnn string, 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 maps.Maps) error

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

func CustomRoutesReset

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

Types

type Route

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

Jump to

Keyboard shortcuts

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