config

package
v0.0.0-...-9265221 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(reader io.Reader)

Types

type Endpoints

type Endpoints struct {
	SessionService string `yaml:"sessionService"`
}

type GatewayConfig

type GatewayConfig struct {
	ProtectedSitesConfig []ProtectedSiteConfig
	SessionID            string    `yaml:"sessionID"`
	Endpoints            Endpoints `yaml:"endpoints"`
}

func GetConfig

func GetConfig() GatewayConfig

type ProtectedPathConfig

type ProtectedPathConfig struct {
	URLPattern      string
	PolicyValidator policy.PolicyValidator
	AuthURL         string
}

type ProtectedSiteConfig

type ProtectedSiteConfig struct {
	RequestHost          string
	TargetHost           string
	ProtectedPathsConfig []ProtectedPathConfig
	Proxy                *httputil.ReverseProxy
}

Jump to

Keyboard shortcuts

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