Documentation
¶
Index ¶
- type AuthUser
- type Backend
- type BasicAuth
- type CORSConfig
- type Endpoint
- type ErrorFile
- type ExternalAuth
- type HTTPHost
- type HTTPPath
- type HTTPService
- type Limit
- type OptionConfig
- type SharedInfo
- type StatsInfo
- type TCPHost
- type TCPService
- type TLSAuth
- type TLSHeader
- type TemplateData
- type TimeoutConfig
- type UserList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
Name string
NameGenerated bool
BasicAuth *BasicAuth
BackendRules []string
// Deprecated
RewriteRules []string
// Deprecated
HeaderRules []string
Endpoints []*Endpoint
Sticky bool
StickyCookieName string
StickyCookieHash string
ALPNOptions string
Proto string
LoadBalanceOn string
}
type CORSConfig ¶
type ExternalAuth ¶
type HTTPHost ¶
type HTTPHost struct {
Host string
Paths []*HTTPPath
ExternalAuth *ExternalAuth
}
type HTTPService ¶
type HTTPService struct {
FrontendName string
Address string
Port int
NodePort int32
NodePortFor443 int32
OffloadSSL bool
ALPNOptions string
Proto string
FrontendRules []string
BasicAuth *BasicAuth
TLSAuth *TLSAuth
Hosts []*HTTPHost
}
func (HTTPService) RedirectSSL ¶
func (svc HTTPService) RedirectSSL() bool
func (*HTTPService) RemoveBackendAuth ¶
func (svc *HTTPService) RemoveBackendAuth()
type OptionConfig ¶
func OptionConfigs ¶
func OptionConfigs(in map[string]bool) []OptionConfig
type SharedInfo ¶
type SharedInfo struct {
// Add accept-proxy to bind statements
}
type TCPService ¶
type TLSHeader ¶
func TLSHeaders ¶
type TemplateData ¶
type TemplateData struct {
TimeoutDefaults []TimeoutConfig
OptionsDefaults []OptionConfig
Stats *StatsInfo
DNSResolvers []*api.DNSResolver
HTTPService []*HTTPService
TCPService []*TCPService
ErrorFiles []*ErrorFile
UserLists []UserList
}
func (*TemplateData) Canonicalize ¶
func (td *TemplateData) Canonicalize()
func (*TemplateData) IsValid ¶
func (td *TemplateData) IsValid() error
func (TemplateData) String ¶
func (td TemplateData) String() string
func (TemplateData) UsesTLSAuth ¶
func (td TemplateData) UsesTLSAuth() bool
type TimeoutConfig ¶
func TimeOutConfigs ¶
func TimeOutConfigs(in map[string]string) []TimeoutConfig
Click to show internal directories.
Click to hide internal directories.