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 ¶
func ValidateWhiteList ¶
ValidateWhiteList validates a haproxy acl whitelist from an annotation value.
Types ¶
type BackendConfig ¶
type BackendConfig struct { Name string Host string Path string IsWildcard bool Termination routeapi.TLSTerminationType InsecurePolicy routeapi.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.
Click to show internal directories.
Click to hide internal directories.