Documentation
¶
Index ¶
Constants ¶
View Source
const ( HttpServer = "ingress_server" MetricsServer = "metrics_server" )
Variables ¶
This section is empty.
Functions ¶
func RegisterPlugin ¶
func RegisterPlugin(m Plugin)
Types ¶
type Config ¶
type Config struct { Admin caddy.AdminConfig `json:"admin,omitempty"` Storage Storage `json:"storage"` Apps map[string]interface{} `json:"apps"` Logging caddy.Logging `json:"logging"` }
Config represents a caddy2 config file.
func (Config) GetHTTPServer ¶
func (Config) GetMetricsServer ¶ added in v0.1.4
type GlobalMiddleware ¶
GlobalMiddleware is called with a default caddy config already configured with:
- Secret storage store
- A TLS App (https://caddyserver.com/docs/json/apps/tls/)
- A HTTP App with an HTTP server listening to 80 443 ports (https://caddyserver.com/docs/json/apps/http/)
type IngressMiddleware ¶
type IngressMiddleware interface {
IngressHandler(input IngressMiddlewareInput) (*caddyhttp.Route, error)
}
IngressMiddleware is called for each Caddy route that is generated for a specific ingress. It allows anyone to manipulate caddy routes before sending it to caddy.
type IngressMiddlewareInput ¶
type Plugin ¶
type Plugin interface {
IngressPlugin() PluginInfo
}
func Plugins ¶
Plugins return a sorted array of plugin instances. Sort is made following these rules:
- Plugins specified in the order slice will always go first (in the order specified in the slice)
- A Plugin with higher priority will go before a plugin with lower priority
- If 2 plugins have the same priority (and not in order slice), they will be sorted by plugin name
type PluginInfo ¶
type Storage ¶
type Storage struct { System string `json:"module"` StorageValues }
Storage represents the certmagic storage configuration.
type StorageValues ¶
StorageValues represents the config for certmagic storage providers.
Click to show internal directories.
Click to hide internal directories.