modulepackage
0.0.0-20210224110227-080488a64d4a
Repository: https://github.com/dgraph-io/ingressutil.git
Documentation: pkg.go.dev
# README
ingressutil
Utilities for writing an ingress controller.
Currently, this package only exposes one type.
IngressRouter
- This type can be used to monitor for changes to an ingress in Kubernetes. Use StartAutoUpdate() to trigger this.
- IngressRouter can match an HTTP Request to a namespace, service and upstream address using
MatchRequest
- Currently, this only does exact hostname match, and path prefix. This means that wildcard hosts and path regexes aren't supported
Blog Post
Coming Soon!
# Functions
No description provided by the author
NewIngressRouter is used to create an IngressRouter.
SetUpstream forces the upstream value to be set, so that you do not need to query the map again.
# Structs
IngressRouterStub can be used to create an ingress router for tests or local dev.
# Interfaces
IngressRouter monitors updates to kube ingresses, and maintains a routing table based on hostname and path.