Documentation
¶
Overview ¶
Package ingress is the in-process slice of Hanzo Ingress.
The reverse-proxy / TLS / provider machinery lives in cmd/ingress and stays out-of-process at the cluster edge — nothing about that changes here. What this package builds is the small surface a co-resident binary needs: a health endpoint that answers while the edge proxy reloads, and a read-only /_/ingress/config view of the entrypoints and providers the deployment expects. That is enough to confirm an ingress is configured for the brand without standing the whole proxy up in the same process.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func App ¶
App builds ingress's in-process surface and returns it, for a host to compose.
Brand and domain are the only two facts ingress needs from whoever runs it, and both are read straight back out on /_/ingress/config, so they arrive as two strings. They used to arrive as a cloud.Deps — the host's own dependency struct, carried across the boundary to reach two fields. That made ingress import its host, which costs more than the import line: hanzoai/cloud ships two editions that both declare the module path github.com/hanzoai/cloud, so cloud.Deps names a different type in each, and a package that takes one can be composed by exactly one of them.
Returning the app rather than writing into one handed in turns the last arrow around too. Ingress no longer registers itself in a registry the host owns — the host holds what it gets back and mounts it wherever it likes.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
ingress
command
|
|
|
internal/gen
command
|
|
|
fixtures/ocsp
command
|
|
|
helloworld
Package helloworld is a generated protocol buffer package.
|
Package helloworld is a generated protocol buffer package. |
|
release
command
|
|
|
testsci
command
|
|
|
pkg
|
|
|
config/label
Package label implements the decoding and encoding between flat labels and a typed Configuration.
|
Package label implements the decoding and encoding between flat labels and a typed Configuration. |
|
kms
Package kms reads this deployment's secrets from Hanzo KMS.
|
Package kms reads this deployment's secrets from Hanzo KMS. |
|
middlewares/capture
Package capture is a middleware that captures requests/responses size, and status.
|
Package capture is a middleware that captures requests/responses size, and status. |
|
middlewares/geoblock
Package geoblock implements the GeoIP-based country block + header injection middleware.
|
Package geoblock implements the GeoIP-based country block + header injection middleware. |
|
middlewares/headers
Package headers Middleware based on https://github.com/unrolled/secure.
|
Package headers Middleware based on https://github.com/unrolled/secure. |
|
middlewares/ratelimiter
Package ratelimiter implements a rate limiting and traffic shaping middleware with a set of token buckets.
|
Package ratelimiter implements a rate limiting and traffic shaping middleware with a set of token buckets. |
|
middlewares/waf
Package waf implements the web application firewall middleware.
|
Package waf implements the web application firewall middleware. |
|
provider/kubernetes/crd/generated/clientset/versioned/fake
This package has the automatically generated fake clientset.
|
This package has the automatically generated fake clientset. |
|
provider/kubernetes/crd/generated/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
|
This package contains the scheme of the automatically generated clientset. |
|
provider/kubernetes/crd/generated/clientset/versioned/typed/hanzoai/v1alpha1
This package has the automatically generated typed clients.
|
This package has the automatically generated typed clients. |
|
provider/kubernetes/crd/generated/clientset/versioned/typed/hanzoai/v1alpha1/fake
Package fake has the automatically generated clients.
|
Package fake has the automatically generated clients. |
|
provider/kubernetes/crd/hanzoai/v1alpha1
Package v1alpha1 is the v1alpha1 version of the API.
|
Package v1alpha1 is the v1alpha1 version of the API. |
|
server/service
Package service: forward_backend wires the canonical HIP-0110 "HTTP-over-ZAP" Forward contract (github.com/luxfi/zap/forward) for selected AI routes.
|
Package service: forward_backend wires the canonical HIP-0110 "HTTP-over-ZAP" Forward contract (github.com/luxfi/zap/forward) for selected AI routes. |