Documentation
¶
Index ¶
Constants ¶
View Source
const ( // HAPROXY_MAX_LINE_ARGS is the maximum number of arguments that haproxy // supports on a configuration line. // Ref: https://github.com/haproxy/haproxy/blob/master/include/common/defaults.h#L75 HAPROXY_MAX_LINE_ARGS = 64 // HAPROXY_MAX_WHITELIST_LENGTH is the maximum number of CIDRs allowed // for an "acl whitelist src [<cidr>]*" config line. HAPROXY_MAX_WHITELIST_LENGTH = HAPROXY_MAX_LINE_ARGS - 3 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BackendConfig ¶
type BackendConfig struct {
Name string
Host string
Path string
IsWildcard bool
Termination routev1.TLSTerminationType
InsecurePolicy routev1.InsecureEdgeTerminationPolicyType
HasCertificate bool
}
BackendConfig is the haproxy backend config.
type HAProxyMapEntry ¶
HAProxyMapEntry is a haproxy map entry.
func GenerateMapEntry ¶
func GenerateMapEntry(id string, cfg *BackendConfig) *HAProxyMapEntry
GenerateMapEntry generates a haproxy map entry.
Source Files
¶
- map_entry.go
- types.go
- whitelist.go
Click to show internal directories.
Click to hide internal directories.