Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RouteTypes is an array of the available route types RouteTypes []RouteType = []RouteType{QueryRoute, RegexRoute, PrefixRoute} )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { File string Log Log Debug Debug HTTP HTTP Tracing Tracing Asset Asset Policies []Policy OIDC *OIDC PolicySelector *PolicySelector `mapstructure:"policy_selector"` }
Config combines all available configuration parts.
type MigrationSelectorConf ¶ added in v0.3.0
type MigrationSelectorConf struct { AccFoundPolicy string `mapstructure:"acc_found_policy"` AccNotFoundPolicy string `mapstructure:"acc_not_found_policy"` UnauthenticatedPolicy string `mapstructure:"unauthenticated_policy"` }
MigrationSelectorConf is the config for the migration-selector
type OIDC ¶ added in v0.3.0
OIDC is the config for the OpenID-Connect middleware. If set the proxy will try to authenticate every request with the configured oidc-provider
type PolicySelector ¶ added in v0.3.0
type PolicySelector struct { Static *StaticSelectorConf Migration *MigrationSelectorConf }
PolicySelector is the toplevel-configuration for different selectors
type Route ¶
type Route struct { Type RouteType Endpoint string Backend string ApacheVHost bool `mapstructure:"apache-vhost"` }
Route define forwarding routes
type RouteType ¶ added in v0.2.0
type RouteType string
RouteType defines the type of a route
const ( // PrefixRoute are routes matched by a prefix PrefixRoute RouteType = "prefix" // QueryRoute are routes machted by a prefix and query parameters QueryRoute RouteType = "query" // RegexRoute are routes matched by a pattern RegexRoute RouteType = "regex" // DefaultRouteType is the PrefixRoute DefaultRouteType RouteType = PrefixRoute )
type StaticSelectorConf ¶ added in v0.3.0
type StaticSelectorConf struct {
Policy string
}
StaticSelectorConf is the config for the static-policy-selector
Click to show internal directories.
Click to hide internal directories.