Documentation
¶
Index ¶
- Constants
- type ACL
- type Acls
- type Backend
- type BackendHashType
- type BackendStickTable
- type BackendSwitchingRule
- type BackendSwitchingRules
- type Backends
- type Balance
- type Bind
- type Binds
- type CPUMap
- type DefaultServer
- type Defaults
- type Endpoint
- type Endpoints
- type Error
- type Errorfile
- type Filter
- type Filters
- type Forwardfor
- type Frontend
- type Frontends
- type Global
- type HTTPRequestRule
- type HTTPRequestRules
- type HTTPResponseRule
- type HTTPResponseRules
- type Httpchk
- type Info
- type InfoAPI
- type InfoSystem
- type InfoSystemCPUInfo
- type InfoSystemMemInfo
- type LogTarget
- type LogTargets
- type NativeStat
- type NativeStatStats
- type NativeStats
- type NativeStatsCollection
- type ProcessInfo
- type ProcessInfoHaproxy
- type Redispatch
- type Reload
- type Reloads
- type RuntimeAPI
- type Server
- type ServerSwitchingRule
- type ServerSwitchingRules
- type Servers
- type Site
- type SiteFarm
- type SiteService
- type Sites
- type StickRule
- type StickRules
- type TCPRequestRule
- type TCPRequestRules
- type TCPResponseRule
- type TCPResponseRules
- type Transaction
- type Transactions
Constants ¶
const ( // BackendAdvCheckSslHelloChk captures enum value "ssl-hello-chk" BackendAdvCheckSslHelloChk string = "ssl-hello-chk" // BackendAdvCheckSmtpchk captures enum value "smtpchk" BackendAdvCheckSmtpchk string = "smtpchk" // BackendAdvCheckLdapCheck captures enum value "ldap-check" BackendAdvCheckLdapCheck string = "ldap-check" // BackendAdvCheckMysqlCheck captures enum value "mysql-check" BackendAdvCheckMysqlCheck string = "mysql-check" // BackendAdvCheckPgsqlCheck captures enum value "pgsql-check" BackendAdvCheckPgsqlCheck string = "pgsql-check" // BackendAdvCheckTCPCheck captures enum value "tcp-check" BackendAdvCheckTCPCheck string = "tcp-check" // BackendAdvCheckRedisCheck captures enum value "redis-check" BackendAdvCheckRedisCheck string = "redis-check" )
const ( // BackendExternalCheckEnabled captures enum value "enabled" BackendExternalCheckEnabled string = "enabled" // BackendExternalCheckDisabled captures enum value "disabled" BackendExternalCheckDisabled string = "disabled" )
const ( // BackendHTTPUseHtxEnabled captures enum value "enabled" BackendHTTPUseHtxEnabled string = "enabled" // BackendHTTPUseHtxDisabled captures enum value "disabled" BackendHTTPUseHtxDisabled string = "disabled" )
const ( // BackendHTTPConnectionModeHttpclose captures enum value "httpclose" BackendHTTPConnectionModeHttpclose string = "httpclose" // BackendHTTPConnectionModeHTTPServerClose captures enum value "http-server-close" BackendHTTPConnectionModeHTTPServerClose string = "http-server-close" // BackendHTTPConnectionModeHTTPKeepAlive captures enum value "http-keep-alive" BackendHTTPConnectionModeHTTPKeepAlive string = "http-keep-alive" )
const ( // BackendHTTPPretendKeepaliveEnabled captures enum value "enabled" BackendHTTPPretendKeepaliveEnabled string = "enabled" // BackendHTTPPretendKeepaliveDisabled captures enum value "disabled" BackendHTTPPretendKeepaliveDisabled string = "disabled" )
const ( // BackendModeHTTP captures enum value "http" BackendModeHTTP string = "http" // BackendModeTCP captures enum value "tcp" BackendModeTCP string = "tcp" )
const ( // BackendHashTypeFunctionSdbm captures enum value "sdbm" BackendHashTypeFunctionSdbm string = "sdbm" // BackendHashTypeFunctionDjb2 captures enum value "djb2" BackendHashTypeFunctionDjb2 string = "djb2" // BackendHashTypeFunctionWt6 captures enum value "wt6" BackendHashTypeFunctionWt6 string = "wt6" // BackendHashTypeFunctionCrc32 captures enum value "crc32" BackendHashTypeFunctionCrc32 string = "crc32" )
const ( // BackendHashTypeMethodMapBased captures enum value "map-based" BackendHashTypeMethodMapBased string = "map-based" // BackendHashTypeMethodConsistent captures enum value "consistent" BackendHashTypeMethodConsistent string = "consistent" )
const ( // BackendStickTableTypeIP captures enum value "ip" BackendStickTableTypeIP string = "ip" // BackendStickTableTypeIPV6 captures enum value "ipv6" BackendStickTableTypeIPV6 string = "ipv6" // BackendStickTableTypeInteger captures enum value "integer" BackendStickTableTypeInteger string = "integer" // BackendStickTableTypeString captures enum value "string" BackendStickTableTypeString string = "string" // BackendStickTableTypeBinary captures enum value "binary" BackendStickTableTypeBinary string = "binary" )
const ( // BackendSwitchingRuleCondIf captures enum value "if" BackendSwitchingRuleCondIf string = "if" // BackendSwitchingRuleCondUnless captures enum value "unless" BackendSwitchingRuleCondUnless string = "unless" )
const ( // BalanceAlgorithmRoundrobin captures enum value "roundrobin" BalanceAlgorithmRoundrobin string = "roundrobin" // BalanceAlgorithmStaticRr captures enum value "static-rr" BalanceAlgorithmStaticRr string = "static-rr" // BalanceAlgorithmLeastconn captures enum value "leastconn" BalanceAlgorithmLeastconn string = "leastconn" // BalanceAlgorithmFirst captures enum value "first" BalanceAlgorithmFirst string = "first" // BalanceAlgorithmSource captures enum value "source" BalanceAlgorithmSource string = "source" // BalanceAlgorithmURI captures enum value "uri" BalanceAlgorithmURI string = "uri" // BalanceAlgorithmURLParam captures enum value "url_param" BalanceAlgorithmURLParam string = "url_param" // BalanceAlgorithmRandom captures enum value "random" BalanceAlgorithmRandom string = "random" )
const ( // BindVerifyNone captures enum value "none" BindVerifyNone string = "none" // BindVerifyOptional captures enum value "optional" BindVerifyOptional string = "optional" // BindVerifyRequired captures enum value "required" BindVerifyRequired string = "required" )
const ( // DefaultsAdvCheckSslHelloChk captures enum value "ssl-hello-chk" DefaultsAdvCheckSslHelloChk string = "ssl-hello-chk" // DefaultsAdvCheckSmtpchk captures enum value "smtpchk" DefaultsAdvCheckSmtpchk string = "smtpchk" // DefaultsAdvCheckLdapCheck captures enum value "ldap-check" DefaultsAdvCheckLdapCheck string = "ldap-check" // DefaultsAdvCheckMysqlCheck captures enum value "mysql-check" DefaultsAdvCheckMysqlCheck string = "mysql-check" // DefaultsAdvCheckPgsqlCheck captures enum value "pgsql-check" DefaultsAdvCheckPgsqlCheck string = "pgsql-check" // DefaultsAdvCheckTCPCheck captures enum value "tcp-check" DefaultsAdvCheckTCPCheck string = "tcp-check" // DefaultsAdvCheckRedisCheck captures enum value "redis-check" DefaultsAdvCheckRedisCheck string = "redis-check" )
const ( // DefaultsClitcpkaEnabled captures enum value "enabled" DefaultsClitcpkaEnabled string = "enabled" // DefaultsClitcpkaDisabled captures enum value "disabled" DefaultsClitcpkaDisabled string = "disabled" )
const ( // DefaultsDontlognullEnabled captures enum value "enabled" DefaultsDontlognullEnabled string = "enabled" // DefaultsDontlognullDisabled captures enum value "disabled" DefaultsDontlognullDisabled string = "disabled" )
const ( // DefaultsExternalCheckEnabled captures enum value "enabled" DefaultsExternalCheckEnabled string = "enabled" // DefaultsExternalCheckDisabled captures enum value "disabled" DefaultsExternalCheckDisabled string = "disabled" )
const ( // DefaultsHTTPUseHtxEnabled captures enum value "enabled" DefaultsHTTPUseHtxEnabled string = "enabled" // DefaultsHTTPUseHtxDisabled captures enum value "disabled" DefaultsHTTPUseHtxDisabled string = "disabled" )
const ( // DefaultsHTTPConnectionModeHttpclose captures enum value "httpclose" DefaultsHTTPConnectionModeHttpclose string = "httpclose" // DefaultsHTTPConnectionModeHTTPServerClose captures enum value "http-server-close" DefaultsHTTPConnectionModeHTTPServerClose string = "http-server-close" // DefaultsHTTPConnectionModeHTTPKeepAlive captures enum value "http-keep-alive" DefaultsHTTPConnectionModeHTTPKeepAlive string = "http-keep-alive" )
const ( // DefaultsHTTPPretendKeepaliveEnabled captures enum value "enabled" DefaultsHTTPPretendKeepaliveEnabled string = "enabled" // DefaultsHTTPPretendKeepaliveDisabled captures enum value "disabled" DefaultsHTTPPretendKeepaliveDisabled string = "disabled" )
const ( // DefaultsLogSeparateErrorsEnabled captures enum value "enabled" DefaultsLogSeparateErrorsEnabled string = "enabled" // DefaultsLogSeparateErrorsDisabled captures enum value "disabled" DefaultsLogSeparateErrorsDisabled string = "disabled" )
const ( // DefaultsModeTCP captures enum value "tcp" DefaultsModeTCP string = "tcp" // DefaultsModeHTTP captures enum value "http" DefaultsModeHTTP string = "http" )
const ( // FilterTypeTrace captures enum value "trace" FilterTypeTrace string = "trace" // FilterTypeCompression captures enum value "compression" FilterTypeCompression string = "compression" // FilterTypeSpoe captures enum value "spoe" FilterTypeSpoe string = "spoe" // FilterTypeCache captures enum value "cache" FilterTypeCache string = "cache" )
const ( // FrontendClitcpkaEnabled captures enum value "enabled" FrontendClitcpkaEnabled string = "enabled" // FrontendClitcpkaDisabled captures enum value "disabled" FrontendClitcpkaDisabled string = "disabled" )
const ( // FrontendDontlognullEnabled captures enum value "enabled" FrontendDontlognullEnabled string = "enabled" // FrontendDontlognullDisabled captures enum value "disabled" FrontendDontlognullDisabled string = "disabled" )
const ( // FrontendHTTPUseHtxEnabled captures enum value "enabled" FrontendHTTPUseHtxEnabled string = "enabled" // FrontendHTTPUseHtxDisabled captures enum value "disabled" FrontendHTTPUseHtxDisabled string = "disabled" )
const ( // FrontendHTTPConnectionModeHttpclose captures enum value "httpclose" FrontendHTTPConnectionModeHttpclose string = "httpclose" // FrontendHTTPConnectionModeHTTPServerClose captures enum value "http-server-close" FrontendHTTPConnectionModeHTTPServerClose string = "http-server-close" // FrontendHTTPConnectionModeHTTPKeepAlive captures enum value "http-keep-alive" FrontendHTTPConnectionModeHTTPKeepAlive string = "http-keep-alive" )
const ( // FrontendLogSeparateErrorsEnabled captures enum value "enabled" FrontendLogSeparateErrorsEnabled string = "enabled" // FrontendLogSeparateErrorsDisabled captures enum value "disabled" FrontendLogSeparateErrorsDisabled string = "disabled" )
const ( // FrontendModeHTTP captures enum value "http" FrontendModeHTTP string = "http" // FrontendModeTCP captures enum value "tcp" FrontendModeTCP string = "tcp" )
const ( // GlobalDaemonEnabled captures enum value "enabled" GlobalDaemonEnabled string = "enabled" // GlobalDaemonDisabled captures enum value "disabled" GlobalDaemonDisabled string = "disabled" )
const ( // RuntimeAPILevelUser captures enum value "user" RuntimeAPILevelUser string = "user" // RuntimeAPILevelOperator captures enum value "operator" RuntimeAPILevelOperator string = "operator" // RuntimeAPILevelAdmin captures enum value "admin" RuntimeAPILevelAdmin string = "admin" )
const ( // HTTPRequestRuleCondIf captures enum value "if" HTTPRequestRuleCondIf string = "if" // HTTPRequestRuleCondUnless captures enum value "unless" HTTPRequestRuleCondUnless string = "unless" )
const ( // HTTPRequestRuleLogLevelEmerg captures enum value "emerg" HTTPRequestRuleLogLevelEmerg string = "emerg" // HTTPRequestRuleLogLevelAlert captures enum value "alert" HTTPRequestRuleLogLevelAlert string = "alert" // HTTPRequestRuleLogLevelCrit captures enum value "crit" HTTPRequestRuleLogLevelCrit string = "crit" // HTTPRequestRuleLogLevelErr captures enum value "err" HTTPRequestRuleLogLevelErr string = "err" // HTTPRequestRuleLogLevelWarning captures enum value "warning" HTTPRequestRuleLogLevelWarning string = "warning" // HTTPRequestRuleLogLevelNotice captures enum value "notice" HTTPRequestRuleLogLevelNotice string = "notice" // HTTPRequestRuleLogLevelInfo captures enum value "info" HTTPRequestRuleLogLevelInfo string = "info" // HTTPRequestRuleLogLevelDebug captures enum value "debug" HTTPRequestRuleLogLevelDebug string = "debug" // HTTPRequestRuleLogLevelSilent captures enum value "silent" HTTPRequestRuleLogLevelSilent string = "silent" )
const ( // HTTPRequestRuleRedirTypeLocation captures enum value "location" HTTPRequestRuleRedirTypeLocation string = "location" // HTTPRequestRuleRedirTypePrefix captures enum value "prefix" HTTPRequestRuleRedirTypePrefix string = "prefix" // HTTPRequestRuleRedirTypeScheme captures enum value "scheme" HTTPRequestRuleRedirTypeScheme string = "scheme" )
const ( // HTTPRequestRuleTypeAllow captures enum value "allow" HTTPRequestRuleTypeAllow string = "allow" // HTTPRequestRuleTypeDeny captures enum value "deny" HTTPRequestRuleTypeDeny string = "deny" // HTTPRequestRuleTypeAuth captures enum value "auth" HTTPRequestRuleTypeAuth string = "auth" // HTTPRequestRuleTypeRedirect captures enum value "redirect" HTTPRequestRuleTypeRedirect string = "redirect" // HTTPRequestRuleTypeTarpit captures enum value "tarpit" HTTPRequestRuleTypeTarpit string = "tarpit" // HTTPRequestRuleTypeAddHeader captures enum value "add-header" HTTPRequestRuleTypeAddHeader string = "add-header" // HTTPRequestRuleTypeReplaceHeader captures enum value "replace-header" HTTPRequestRuleTypeReplaceHeader string = "replace-header" // HTTPRequestRuleTypeReplaceValue captures enum value "replace-value" HTTPRequestRuleTypeReplaceValue string = "replace-value" // HTTPRequestRuleTypeDelHeader captures enum value "del-header" HTTPRequestRuleTypeDelHeader string = "del-header" // HTTPRequestRuleTypeSetHeader captures enum value "set-header" HTTPRequestRuleTypeSetHeader string = "set-header" // HTTPRequestRuleTypeSetLogLevel captures enum value "set-log-level" HTTPRequestRuleTypeSetLogLevel string = "set-log-level" // HTTPRequestRuleTypeSetPath captures enum value "set-path" HTTPRequestRuleTypeSetPath string = "set-path" // HTTPRequestRuleTypeSetQuery captures enum value "set-query" HTTPRequestRuleTypeSetQuery string = "set-query" // HTTPRequestRuleTypeSetURI captures enum value "set-uri" HTTPRequestRuleTypeSetURI string = "set-uri" // HTTPRequestRuleTypeSetVar captures enum value "set-var" HTTPRequestRuleTypeSetVar string = "set-var" // HTTPRequestRuleTypeSendSpoeGroup captures enum value "send-spoe-group" HTTPRequestRuleTypeSendSpoeGroup string = "send-spoe-group" // HTTPRequestRuleTypeAddACL captures enum value "add-acl" HTTPRequestRuleTypeAddACL string = "add-acl" // HTTPRequestRuleTypeDelACL captures enum value "del-acl" HTTPRequestRuleTypeDelACL string = "del-acl" )
const ( // HTTPResponseRuleCondIf captures enum value "if" HTTPResponseRuleCondIf string = "if" // HTTPResponseRuleCondUnless captures enum value "unless" HTTPResponseRuleCondUnless string = "unless" )
const ( // HTTPResponseRuleLogLevelEmerg captures enum value "emerg" HTTPResponseRuleLogLevelEmerg string = "emerg" // HTTPResponseRuleLogLevelAlert captures enum value "alert" HTTPResponseRuleLogLevelAlert string = "alert" // HTTPResponseRuleLogLevelCrit captures enum value "crit" HTTPResponseRuleLogLevelCrit string = "crit" // HTTPResponseRuleLogLevelErr captures enum value "err" HTTPResponseRuleLogLevelErr string = "err" // HTTPResponseRuleLogLevelWarning captures enum value "warning" HTTPResponseRuleLogLevelWarning string = "warning" // HTTPResponseRuleLogLevelNotice captures enum value "notice" HTTPResponseRuleLogLevelNotice string = "notice" // HTTPResponseRuleLogLevelInfo captures enum value "info" HTTPResponseRuleLogLevelInfo string = "info" // HTTPResponseRuleLogLevelDebug captures enum value "debug" HTTPResponseRuleLogLevelDebug string = "debug" // HTTPResponseRuleLogLevelSilent captures enum value "silent" HTTPResponseRuleLogLevelSilent string = "silent" )
const ( // HTTPResponseRuleRedirTypeLocation captures enum value "location" HTTPResponseRuleRedirTypeLocation string = "location" // HTTPResponseRuleRedirTypePrefix captures enum value "prefix" HTTPResponseRuleRedirTypePrefix string = "prefix" // HTTPResponseRuleRedirTypeScheme captures enum value "scheme" HTTPResponseRuleRedirTypeScheme string = "scheme" )
const ( // HTTPResponseRuleTypeAllow captures enum value "allow" HTTPResponseRuleTypeAllow string = "allow" // HTTPResponseRuleTypeDeny captures enum value "deny" HTTPResponseRuleTypeDeny string = "deny" // HTTPResponseRuleTypeRedirect captures enum value "redirect" HTTPResponseRuleTypeRedirect string = "redirect" // HTTPResponseRuleTypeAddHeader captures enum value "add-header" HTTPResponseRuleTypeAddHeader string = "add-header" // HTTPResponseRuleTypeSetHeader captures enum value "set-header" HTTPResponseRuleTypeSetHeader string = "set-header" // HTTPResponseRuleTypeDelHeader captures enum value "del-header" HTTPResponseRuleTypeDelHeader string = "del-header" // HTTPResponseRuleTypeSetLogLevel captures enum value "set-log-level" HTTPResponseRuleTypeSetLogLevel string = "set-log-level" // HTTPResponseRuleTypeSetVar captures enum value "set-var" HTTPResponseRuleTypeSetVar string = "set-var" // HTTPResponseRuleTypeSetStatus captures enum value "set-status" HTTPResponseRuleTypeSetStatus string = "set-status" // HTTPResponseRuleTypeSendSpoeGroup captures enum value "send-spoe-group" HTTPResponseRuleTypeSendSpoeGroup string = "send-spoe-group" // HTTPResponseRuleTypeReplaceHeader captures enum value "replace-header" HTTPResponseRuleTypeReplaceHeader string = "replace-header" // HTTPResponseRuleTypeReplaceValue captures enum value "replace-value" HTTPResponseRuleTypeReplaceValue string = "replace-value" // HTTPResponseRuleTypeAddACL captures enum value "add-acl" HTTPResponseRuleTypeAddACL string = "add-acl" // HTTPResponseRuleTypeDelACL captures enum value "del-acl" HTTPResponseRuleTypeDelACL string = "del-acl" )
const ( // HttpchkMethodHEAD captures enum value "HEAD" HttpchkMethodHEAD string = "HEAD" // HttpchkMethodPUT captures enum value "PUT" HttpchkMethodPUT string = "PUT" // HttpchkMethodPOST captures enum value "POST" HttpchkMethodPOST string = "POST" // HttpchkMethodGET captures enum value "GET" HttpchkMethodGET string = "GET" // HttpchkMethodTRACE captures enum value "TRACE" HttpchkMethodTRACE string = "TRACE" // HttpchkMethodPATCH captures enum value "PATCH" HttpchkMethodPATCH string = "PATCH" )
const ( // LogTargetFacilityKern captures enum value "kern" LogTargetFacilityKern string = "kern" // LogTargetFacilityUser captures enum value "user" LogTargetFacilityUser string = "user" // LogTargetFacilityMail captures enum value "mail" LogTargetFacilityMail string = "mail" // LogTargetFacilityDaemon captures enum value "daemon" LogTargetFacilityDaemon string = "daemon" // LogTargetFacilityAuth captures enum value "auth" LogTargetFacilityAuth string = "auth" // LogTargetFacilitySyslog captures enum value "syslog" LogTargetFacilitySyslog string = "syslog" // LogTargetFacilityLpr captures enum value "lpr" LogTargetFacilityLpr string = "lpr" // LogTargetFacilityNews captures enum value "news" LogTargetFacilityNews string = "news" // LogTargetFacilityUucp captures enum value "uucp" LogTargetFacilityUucp string = "uucp" // LogTargetFacilityCron captures enum value "cron" LogTargetFacilityCron string = "cron" // LogTargetFacilityAuth2 captures enum value "auth2" LogTargetFacilityAuth2 string = "auth2" // LogTargetFacilityFtp captures enum value "ftp" LogTargetFacilityFtp string = "ftp" // LogTargetFacilityNtp captures enum value "ntp" LogTargetFacilityNtp string = "ntp" // LogTargetFacilityAudit captures enum value "audit" LogTargetFacilityAudit string = "audit" // LogTargetFacilityAlert captures enum value "alert" LogTargetFacilityAlert string = "alert" // LogTargetFacilityCron2 captures enum value "cron2" LogTargetFacilityCron2 string = "cron2" // LogTargetFacilityLocal0 captures enum value "local0" LogTargetFacilityLocal0 string = "local0" // LogTargetFacilityLocal1 captures enum value "local1" LogTargetFacilityLocal1 string = "local1" // LogTargetFacilityLocal2 captures enum value "local2" LogTargetFacilityLocal2 string = "local2" // LogTargetFacilityLocal3 captures enum value "local3" LogTargetFacilityLocal3 string = "local3" // LogTargetFacilityLocal4 captures enum value "local4" LogTargetFacilityLocal4 string = "local4" // LogTargetFacilityLocal5 captures enum value "local5" LogTargetFacilityLocal5 string = "local5" // LogTargetFacilityLocal6 captures enum value "local6" LogTargetFacilityLocal6 string = "local6" // LogTargetFacilityLocal7 captures enum value "local7" LogTargetFacilityLocal7 string = "local7" )
const ( // LogTargetFormatRfc3164 captures enum value "rfc3164" LogTargetFormatRfc3164 string = "rfc3164" // LogTargetFormatRfc5424 captures enum value "rfc5424" LogTargetFormatRfc5424 string = "rfc5424" // LogTargetFormatShort captures enum value "short" LogTargetFormatShort string = "short" // LogTargetFormatRaw captures enum value "raw" LogTargetFormatRaw string = "raw" )
const ( // LogTargetLevelEmerg captures enum value "emerg" LogTargetLevelEmerg string = "emerg" // LogTargetLevelAlert captures enum value "alert" LogTargetLevelAlert string = "alert" // LogTargetLevelCrit captures enum value "crit" LogTargetLevelCrit string = "crit" // LogTargetLevelErr captures enum value "err" LogTargetLevelErr string = "err" // LogTargetLevelWarning captures enum value "warning" LogTargetLevelWarning string = "warning" // LogTargetLevelNotice captures enum value "notice" LogTargetLevelNotice string = "notice" // LogTargetLevelInfo captures enum value "info" LogTargetLevelInfo string = "info" // LogTargetLevelDebug captures enum value "debug" LogTargetLevelDebug string = "debug" )
const ( // LogTargetMinlevelEmerg captures enum value "emerg" LogTargetMinlevelEmerg string = "emerg" // LogTargetMinlevelAlert captures enum value "alert" LogTargetMinlevelAlert string = "alert" // LogTargetMinlevelCrit captures enum value "crit" LogTargetMinlevelCrit string = "crit" // LogTargetMinlevelErr captures enum value "err" LogTargetMinlevelErr string = "err" // LogTargetMinlevelWarning captures enum value "warning" LogTargetMinlevelWarning string = "warning" // LogTargetMinlevelNotice captures enum value "notice" LogTargetMinlevelNotice string = "notice" // LogTargetMinlevelInfo captures enum value "info" LogTargetMinlevelInfo string = "info" // LogTargetMinlevelDebug captures enum value "debug" LogTargetMinlevelDebug string = "debug" )
const ( // NativeStatTypeBackend captures enum value "backend" NativeStatTypeBackend string = "backend" // NativeStatTypeServer captures enum value "server" NativeStatTypeServer string = "server" // NativeStatTypeFrontend captures enum value "frontend" NativeStatTypeFrontend string = "frontend" )
const ( // NativeStatStatsAgentStatusUNK captures enum value "UNK" NativeStatStatsAgentStatusUNK string = "UNK" // NativeStatStatsAgentStatusINI captures enum value "INI" NativeStatStatsAgentStatusINI string = "INI" // NativeStatStatsAgentStatusSOCKERR captures enum value "SOCKERR" NativeStatStatsAgentStatusSOCKERR string = "SOCKERR" // NativeStatStatsAgentStatusL40K captures enum value "L40K" NativeStatStatsAgentStatusL40K string = "L40K" // NativeStatStatsAgentStatusL4TOUT captures enum value "L4TOUT" NativeStatStatsAgentStatusL4TOUT string = "L4TOUT" // NativeStatStatsAgentStatusL4CON captures enum value "L4CON" NativeStatStatsAgentStatusL4CON string = "L4CON" // NativeStatStatsAgentStatusL7OK captures enum value "L7OK" NativeStatStatsAgentStatusL7OK string = "L7OK" // NativeStatStatsAgentStatusL7STS captures enum value "L7STS" NativeStatStatsAgentStatusL7STS string = "L7STS" )
const ( // NativeStatStatsCheckStatusUNK captures enum value "UNK" NativeStatStatsCheckStatusUNK string = "UNK" // NativeStatStatsCheckStatusINI captures enum value "INI" NativeStatStatsCheckStatusINI string = "INI" // NativeStatStatsCheckStatusSOCKERR captures enum value "SOCKERR" NativeStatStatsCheckStatusSOCKERR string = "SOCKERR" // NativeStatStatsCheckStatusL40K captures enum value "L40K" NativeStatStatsCheckStatusL40K string = "L40K" // NativeStatStatsCheckStatusL4TOUT captures enum value "L4TOUT" NativeStatStatsCheckStatusL4TOUT string = "L4TOUT" // NativeStatStatsCheckStatusL4CON captures enum value "L4CON" NativeStatStatsCheckStatusL4CON string = "L4CON" // NativeStatStatsCheckStatusL6OK captures enum value "L6OK" NativeStatStatsCheckStatusL6OK string = "L6OK" // NativeStatStatsCheckStatusL6TOUT captures enum value "L6TOUT" NativeStatStatsCheckStatusL6TOUT string = "L6TOUT" // NativeStatStatsCheckStatusL6RSP captures enum value "L6RSP" NativeStatStatsCheckStatusL6RSP string = "L6RSP" // NativeStatStatsCheckStatusL7OK captures enum value "L7OK" NativeStatStatsCheckStatusL7OK string = "L7OK" // NativeStatStatsCheckStatusL7OKC captures enum value "L7OKC" NativeStatStatsCheckStatusL7OKC string = "L7OKC" // NativeStatStatsCheckStatusL7TOUT captures enum value "L7TOUT" NativeStatStatsCheckStatusL7TOUT string = "L7TOUT" // NativeStatStatsCheckStatusL7RSP captures enum value "L7RSP" NativeStatStatsCheckStatusL7RSP string = "L7RSP" // NativeStatStatsCheckStatusL7STS captures enum value "L7STS" NativeStatStatsCheckStatusL7STS string = "L7STS" )
const ( // NativeStatStatsModeTCP captures enum value "tcp" NativeStatStatsModeTCP string = "tcp" // NativeStatStatsModeHTTP captures enum value "http" NativeStatStatsModeHTTP string = "http" // NativeStatStatsModeHealth captures enum value "health" NativeStatStatsModeHealth string = "health" // NativeStatStatsModeUnknown captures enum value "unknown" NativeStatStatsModeUnknown string = "unknown" )
const ( // NativeStatStatsStatusUP captures enum value "UP" NativeStatStatsStatusUP string = "UP" // NativeStatStatsStatusDOWN captures enum value "DOWN" NativeStatStatsStatusDOWN string = "DOWN" // NativeStatStatsStatusNOLB captures enum value "NOLB" NativeStatStatsStatusNOLB string = "NOLB" // NativeStatStatsStatusMAINT captures enum value "MAINT" NativeStatStatsStatusMAINT string = "MAINT" // NativeStatStatsStatusNoCheck captures enum value "no check" NativeStatStatsStatusNoCheck string = "no check" )
const ( // RedispatchEnabledEnabled captures enum value "enabled" RedispatchEnabledEnabled string = "enabled" // RedispatchEnabledDisabled captures enum value "disabled" RedispatchEnabledDisabled string = "disabled" )
const ( // ReloadStatusFailed captures enum value "failed" ReloadStatusFailed string = "failed" // ReloadStatusInProgress captures enum value "in_progress" ReloadStatusInProgress string = "in_progress" // ReloadStatusSucceeded captures enum value "succeeded" ReloadStatusSucceeded string = "succeeded" )
const ( // ServerBackupEnabled captures enum value "enabled" ServerBackupEnabled string = "enabled" // ServerBackupDisabled captures enum value "disabled" ServerBackupDisabled string = "disabled" )
const ( // ServerCheckEnabled captures enum value "enabled" ServerCheckEnabled string = "enabled" // ServerCheckDisabled captures enum value "disabled" ServerCheckDisabled string = "disabled" )
const ( // ServerMaintenanceEnabled captures enum value "enabled" ServerMaintenanceEnabled string = "enabled" // ServerMaintenanceDisabled captures enum value "disabled" ServerMaintenanceDisabled string = "disabled" )
const ( // ServerOnErrorFastinter captures enum value "fastinter" ServerOnErrorFastinter string = "fastinter" // ServerOnErrorFailCheck captures enum value "fail-check" ServerOnErrorFailCheck string = "fail-check" // ServerOnErrorSuddenDeath captures enum value "sudden-death" ServerOnErrorSuddenDeath string = "sudden-death" // ServerOnErrorMarkDown captures enum value "mark-down" ServerOnErrorMarkDown string = "mark-down" )
const ( // ServerSendProxyEnabled captures enum value "enabled" ServerSendProxyEnabled string = "enabled" // ServerSendProxyDisabled captures enum value "disabled" ServerSendProxyDisabled string = "disabled" )
const ( // ServerSendProxyV2Enabled captures enum value "enabled" ServerSendProxyV2Enabled string = "enabled" // ServerSendProxyV2Disabled captures enum value "disabled" ServerSendProxyV2Disabled string = "disabled" )
const ( // ServerSslEnabled captures enum value "enabled" ServerSslEnabled string = "enabled" // ServerSslDisabled captures enum value "disabled" ServerSslDisabled string = "disabled" )
const ( // ServerTLSTicketsEnabled captures enum value "enabled" ServerTLSTicketsEnabled string = "enabled" // ServerTLSTicketsDisabled captures enum value "disabled" ServerTLSTicketsDisabled string = "disabled" )
const ( // ServerVerifyNone captures enum value "none" ServerVerifyNone string = "none" // ServerVerifyRequired captures enum value "required" ServerVerifyRequired string = "required" )
const ( // ServerSwitchingRuleCondIf captures enum value "if" ServerSwitchingRuleCondIf string = "if" // ServerSwitchingRuleCondUnless captures enum value "unless" ServerSwitchingRuleCondUnless string = "unless" )
const ( // SiteFarmCondIf captures enum value "if" SiteFarmCondIf string = "if" // SiteFarmCondUnless captures enum value "unless" SiteFarmCondUnless string = "unless" )
const ( // SiteFarmModeHTTP captures enum value "http" SiteFarmModeHTTP string = "http" // SiteFarmModeTCP captures enum value "tcp" SiteFarmModeTCP string = "tcp" )
const ( // SiteFarmUseAsDefault captures enum value "default" SiteFarmUseAsDefault string = "default" // SiteFarmUseAsConditional captures enum value "conditional" SiteFarmUseAsConditional string = "conditional" )
const ( // SiteServiceHTTPConnectionModeHTTPTunnel captures enum value "http-tunnel" SiteServiceHTTPConnectionModeHTTPTunnel string = "http-tunnel" // SiteServiceHTTPConnectionModeHttpclose captures enum value "httpclose" SiteServiceHTTPConnectionModeHttpclose string = "httpclose" // SiteServiceHTTPConnectionModeForcedClose captures enum value "forced-close" SiteServiceHTTPConnectionModeForcedClose string = "forced-close" // SiteServiceHTTPConnectionModeHTTPServerClose captures enum value "http-server-close" SiteServiceHTTPConnectionModeHTTPServerClose string = "http-server-close" // SiteServiceHTTPConnectionModeHTTPKeepAlive captures enum value "http-keep-alive" SiteServiceHTTPConnectionModeHTTPKeepAlive string = "http-keep-alive" )
const ( // SiteServiceModeHTTP captures enum value "http" SiteServiceModeHTTP string = "http" // SiteServiceModeTCP captures enum value "tcp" SiteServiceModeTCP string = "tcp" )
const ( // StickRuleCondIf captures enum value "if" StickRuleCondIf string = "if" // StickRuleCondUnless captures enum value "unless" StickRuleCondUnless string = "unless" )
const ( // StickRuleTypeMatch captures enum value "match" StickRuleTypeMatch string = "match" // StickRuleTypeOn captures enum value "on" StickRuleTypeOn string = "on" // StickRuleTypeStoreRequest captures enum value "store-request" StickRuleTypeStoreRequest string = "store-request" // StickRuleTypeStoreResponse captures enum value "store-response" StickRuleTypeStoreResponse string = "store-response" )
const ( // TCPRequestRuleActionAccept captures enum value "accept" TCPRequestRuleActionAccept string = "accept" // TCPRequestRuleActionReject captures enum value "reject" TCPRequestRuleActionReject string = "reject" )
const ( // TCPRequestRuleCondIf captures enum value "if" TCPRequestRuleCondIf string = "if" // TCPRequestRuleCondUnless captures enum value "unless" TCPRequestRuleCondUnless string = "unless" )
const ( // TCPRequestRuleTypeConnection captures enum value "connection" TCPRequestRuleTypeConnection string = "connection" // TCPRequestRuleTypeContent captures enum value "content" TCPRequestRuleTypeContent string = "content" // TCPRequestRuleTypeInspectDelay captures enum value "inspect-delay" TCPRequestRuleTypeInspectDelay string = "inspect-delay" // TCPRequestRuleTypeSession captures enum value "session" TCPRequestRuleTypeSession string = "session" )
const ( // TCPResponseRuleActionAccept captures enum value "accept" TCPResponseRuleActionAccept string = "accept" // TCPResponseRuleActionReject captures enum value "reject" TCPResponseRuleActionReject string = "reject" )
const ( // TCPResponseRuleCondIf captures enum value "if" TCPResponseRuleCondIf string = "if" // TCPResponseRuleCondUnless captures enum value "unless" TCPResponseRuleCondUnless string = "unless" )
const ( // TCPResponseRuleTypeContent captures enum value "content" TCPResponseRuleTypeContent string = "content" // TCPResponseRuleTypeInspectDelay captures enum value "inspect-delay" TCPResponseRuleTypeInspectDelay string = "inspect-delay" )
const ( // TransactionStatusFailed captures enum value "failed" TransactionStatusFailed string = "failed" // TransactionStatusInProgress captures enum value "in_progress" TransactionStatusInProgress string = "in_progress" // TransactionStatusSuccess captures enum value "success" TransactionStatusSuccess string = "success" )
const ( // BackendHashTypeModifierAvalanche captures enum value "avalanche" BackendHashTypeModifierAvalanche string = "avalanche" )
const ( // DefaultsContstatsEnabled captures enum value "enabled" DefaultsContstatsEnabled string = "enabled" )
const ( // ForwardforEnabledEnabled captures enum value "enabled" ForwardforEnabledEnabled string = "enabled" )
const ( // FrontendContstatsEnabled captures enum value "enabled" FrontendContstatsEnabled string = "enabled" )
const ( // ServerOnMarkedDownShutdownSessions captures enum value "shutdown-sessions" ServerOnMarkedDownShutdownSessions string = "shutdown-sessions" )
const ( // ServerOnMarkedUpShutdownBackupSessions captures enum value "shutdown-backup-sessions" ServerOnMarkedUpShutdownBackupSessions string = "shutdown-backup-sessions" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACL ¶
type ACL struct {
// acl name
// Required: true
// Pattern: ^[^\s]+$
ACLName string `json:"acl_name"`
// criterion
// Required: true
// Pattern: ^[^\s]+$
Criterion string `json:"criterion"`
// id
// Required: true
ID *int64 `json:"id"`
// value
// Required: true
Value string `json:"value"`
}
ACL ACL Lines
The use of Access Control Lists (ACL) provides a flexible solution to perform content switching and generally to take decisions based on content extracted from the request, the response or any environmental status.
swagger:model acl
func (*ACL) MarshalBinary ¶
MarshalBinary interface implementation
func (*ACL) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Acls ¶
type Acls []*ACL
Acls ACL Lines Array
HAProxy ACL lines array (corresponds to acl directives) swagger:model acls
type Backend ¶
type Backend struct {
// adv check
// Enum: [ssl-hello-chk smtpchk ldap-check mysql-check pgsql-check tcp-check redis-check]
AdvCheck string `json:"adv_check,omitempty"`
// balance
Balance *Balance `json:"balance,omitempty"`
// check timeout
CheckTimeout *int64 `json:"check_timeout,omitempty"`
// connect timeout
ConnectTimeout *int64 `json:"connect_timeout,omitempty"`
// cookie
Cookie string `json:"cookie,omitempty"`
// default server
DefaultServer *DefaultServer `json:"default_server,omitempty"`
// external check
// Enum: [enabled disabled]
ExternalCheck string `json:"external_check,omitempty"`
// external check command
// Pattern: ^[^\s]+$
ExternalCheckCommand string `json:"external_check_command,omitempty"`
// external check path
// Pattern: ^[^\s]+$
ExternalCheckPath string `json:"external_check_path,omitempty"`
// forwardfor
Forwardfor *Forwardfor `json:"forwardfor,omitempty"`
// hash type
HashType *BackendHashType `json:"hash_type,omitempty"`
// http use htx
// Enum: [enabled disabled]
HTTPUseHtx string `json:"http-use-htx,omitempty"`
// http connection mode
// Enum: [httpclose http-server-close http-keep-alive]
HTTPConnectionMode string `json:"http_connection_mode,omitempty"`
// http keep alive timeout
HTTPKeepAliveTimeout *int64 `json:"http_keep_alive_timeout,omitempty"`
// http pretend keepalive
// Enum: [enabled disabled]
HTTPPretendKeepalive string `json:"http_pretend_keepalive,omitempty"`
// http request timeout
HTTPRequestTimeout *int64 `json:"http_request_timeout,omitempty"`
// httpchk
Httpchk *Httpchk `json:"httpchk,omitempty"`
// log tag
// Pattern: ^[^\s]+$
LogTag string `json:"log_tag,omitempty"`
// mode
// Enum: [http tcp]
Mode string `json:"mode,omitempty"`
// name
// Required: true
// Pattern: ^[A-Za-z0-9-_.:]+$
Name string `json:"name"`
// queue timeout
QueueTimeout *int64 `json:"queue_timeout,omitempty"`
// redispatch
Redispatch *Redispatch `json:"redispatch,omitempty"`
// retries
Retries *int64 `json:"retries,omitempty"`
// server timeout
ServerTimeout *int64 `json:"server_timeout,omitempty"`
// stick table
StickTable *BackendStickTable `json:"stick_table,omitempty"`
}
Backend Backend
HAProxy backend configuration swagger:model backend
func (*Backend) MarshalBinary ¶
MarshalBinary interface implementation
func (*Backend) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type BackendHashType ¶ added in v1.2.1
type BackendHashType struct {
// function
// Enum: [sdbm djb2 wt6 crc32]
Function string `json:"function,omitempty"`
// method
// Enum: [map-based consistent]
Method string `json:"method,omitempty"`
// modifier
// Enum: [avalanche]
Modifier string `json:"modifier,omitempty"`
}
BackendHashType backend hash type swagger:model BackendHashType
func (*BackendHashType) MarshalBinary ¶ added in v1.2.1
func (m *BackendHashType) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BackendHashType) UnmarshalBinary ¶ added in v1.2.1
func (m *BackendHashType) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type BackendStickTable ¶
type BackendStickTable struct {
// expire
Expire *int64 `json:"expire,omitempty"`
// keylen
Keylen *int64 `json:"keylen,omitempty"`
// nopurge
Nopurge bool `json:"nopurge,omitempty"`
// peers
// Pattern: ^[^\s]+$
Peers string `json:"peers,omitempty"`
// size
Size *int64 `json:"size,omitempty"`
// store
// Pattern: ^[^\s]+$
Store string `json:"store,omitempty"`
// type
// Enum: [ip ipv6 integer string binary]
Type string `json:"type,omitempty"`
}
BackendStickTable backend stick table swagger:model BackendStickTable
func (*BackendStickTable) MarshalBinary ¶
func (m *BackendStickTable) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BackendStickTable) UnmarshalBinary ¶
func (m *BackendStickTable) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type BackendSwitchingRule ¶
type BackendSwitchingRule struct {
// cond
// Enum: [if unless]
Cond string `json:"cond,omitempty"`
// cond test
CondTest string `json:"cond_test,omitempty"`
// id
// Required: true
ID *int64 `json:"id"`
// name
// Required: true
// Pattern: ^[^\s]+$
Name string `json:"name"`
}
BackendSwitchingRule Backend Switching Rule
HAProxy backend switching rule configuration (corresponds to use_backend directive) swagger:model backend_switching_rule
func (*BackendSwitchingRule) MarshalBinary ¶
func (m *BackendSwitchingRule) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BackendSwitchingRule) UnmarshalBinary ¶
func (m *BackendSwitchingRule) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type BackendSwitchingRules ¶
type BackendSwitchingRules []*BackendSwitchingRule
BackendSwitchingRules Backend Switching Rules Array
HAProxy backend switching rules array (corresponds to use_backend directives) swagger:model backend_switching_rules
type Backends ¶
type Backends []*Backend
Backends Backends
HAProxy backends array swagger:model backends
type Balance ¶ added in v0.9.3
type Balance struct {
// algorithm
// Enum: [roundrobin static-rr leastconn first source uri url_param random]
Algorithm string `json:"algorithm,omitempty"`
// arguments
Arguments []string `json:"arguments"`
}
Balance balance swagger:model balance
func (*Balance) MarshalBinary ¶ added in v0.9.3
MarshalBinary interface implementation
func (*Balance) UnmarshalBinary ¶ added in v0.9.3
UnmarshalBinary interface implementation
type Bind ¶
type Bind struct {
// accept proxy
AcceptProxy bool `json:"accept_proxy,omitempty"`
// address
// Pattern: ^[^\s]+$
Address string `json:"address,omitempty"`
// allow 0rtt
Allow0rtt bool `json:"allow_0rtt,omitempty"`
// alpn
// Pattern: ^[^\s]+$
Alpn string `json:"alpn,omitempty"`
// name
// Required: true
// Pattern: ^[^\s]+$
Name string `json:"name"`
// port
// Maximum: 65535
// Minimum: 0
Port *int64 `json:"port,omitempty"`
// process
// Pattern: ^[^\s]+$
Process string `json:"process,omitempty"`
// ssl
Ssl bool `json:"ssl,omitempty"`
// ssl cafile
// Pattern: ^[^\s]+$
SslCafile string `json:"ssl_cafile,omitempty"`
// ssl certificate
// Pattern: ^[^\s]+$
SslCertificate string `json:"ssl_certificate,omitempty"`
// tcp user timeout
TCPUserTimeout *int64 `json:"tcp_user_timeout,omitempty"`
// transparent
Transparent bool `json:"transparent,omitempty"`
// v4v6
V4v6 bool `json:"v4v6,omitempty"`
// verify
// Enum: [none optional required]
Verify string `json:"verify,omitempty"`
}
Bind Bind
HAProxy frontend bind configuration swagger:model bind
func (*Bind) MarshalBinary ¶
MarshalBinary interface implementation
func (*Bind) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Binds ¶
type Binds []*Bind
Binds Binds
HAProxy frontend binds array (corresponds to bind directives) swagger:model binds
type CPUMap ¶
type CPUMap struct {
// cpu set
// Required: true
CPUSet *string `json:"cpu_set"`
// process
// Required: true
Process *string `json:"process"`
}
CPUMap CPU map swagger:model CPUMap
func (*CPUMap) MarshalBinary ¶
MarshalBinary interface implementation
func (*CPUMap) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type DefaultServer ¶ added in v0.9.3
type DefaultServer struct {
// fall
Fall *int64 `json:"fall,omitempty"`
// inter
Inter *int64 `json:"inter,omitempty"`
// port
// Maximum: 65535
// Minimum: 0
Port *int64 `json:"port,omitempty"`
// rise
Rise *int64 `json:"rise,omitempty"`
}
DefaultServer default server swagger:model default_server
func (*DefaultServer) MarshalBinary ¶ added in v0.9.3
func (m *DefaultServer) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DefaultServer) UnmarshalBinary ¶ added in v0.9.3
func (m *DefaultServer) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Defaults ¶ added in v0.9.3
type Defaults struct {
// error files
ErrorFiles []*Errorfile `json:"error_files"`
// adv check
// Enum: [ssl-hello-chk smtpchk ldap-check mysql-check pgsql-check tcp-check redis-check]
AdvCheck string `json:"adv_check,omitempty"`
// balance
Balance *Balance `json:"balance,omitempty"`
// check timeout
CheckTimeout *int64 `json:"check_timeout,omitempty"`
// clflog
Clflog bool `json:"clflog,omitempty"`
// client timeout
ClientTimeout *int64 `json:"client_timeout,omitempty"`
// clitcpka
// Enum: [enabled disabled]
Clitcpka string `json:"clitcpka,omitempty"`
// connect timeout
ConnectTimeout *int64 `json:"connect_timeout,omitempty"`
// contstats
// Enum: [enabled]
Contstats string `json:"contstats,omitempty"`
// cookie
Cookie string `json:"cookie,omitempty"`
// default backend
// Pattern: ^[A-Za-z0-9-_.:]+$
DefaultBackend string `json:"default_backend,omitempty"`
// default server
DefaultServer *DefaultServer `json:"default_server,omitempty"`
// dontlognull
// Enum: [enabled disabled]
Dontlognull string `json:"dontlognull,omitempty"`
// external check
// Enum: [enabled disabled]
ExternalCheck string `json:"external_check,omitempty"`
// external check command
// Pattern: ^[^\s]+$
ExternalCheckCommand string `json:"external_check_command,omitempty"`
// external check path
// Pattern: ^[^\s]+$
ExternalCheckPath string `json:"external_check_path,omitempty"`
// forwardfor
Forwardfor *Forwardfor `json:"forwardfor,omitempty"`
// http use htx
// Enum: [enabled disabled]
HTTPUseHtx string `json:"http-use-htx,omitempty"`
// http connection mode
// Enum: [httpclose http-server-close http-keep-alive]
HTTPConnectionMode string `json:"http_connection_mode,omitempty"`
// http keep alive timeout
HTTPKeepAliveTimeout *int64 `json:"http_keep_alive_timeout,omitempty"`
// http pretend keepalive
// Enum: [enabled disabled]
HTTPPretendKeepalive string `json:"http_pretend_keepalive,omitempty"`
// http request timeout
HTTPRequestTimeout *int64 `json:"http_request_timeout,omitempty"`
// httpchk
Httpchk *Httpchk `json:"httpchk,omitempty"`
// httplog
Httplog bool `json:"httplog,omitempty"`
// log format
LogFormat string `json:"log_format,omitempty"`
// log format sd
LogFormatSd string `json:"log_format_sd,omitempty"`
// log separate errors
// Enum: [enabled disabled]
LogSeparateErrors string `json:"log_separate_errors,omitempty"`
// log tag
// Pattern: ^[^\s]+$
LogTag string `json:"log_tag,omitempty"`
// maxconn
Maxconn *int64 `json:"maxconn,omitempty"`
// mode
// Enum: [tcp http]
Mode string `json:"mode,omitempty"`
// queue timeout
QueueTimeout *int64 `json:"queue_timeout,omitempty"`
// redispatch
Redispatch *Redispatch `json:"redispatch,omitempty"`
// retries
Retries *int64 `json:"retries,omitempty"`
// server timeout
ServerTimeout *int64 `json:"server_timeout,omitempty"`
// tcplog
Tcplog bool `json:"tcplog,omitempty"`
}
Defaults Defaults
HAProxy defaults configuration swagger:model defaults
func (*Defaults) MarshalBinary ¶ added in v0.9.3
MarshalBinary interface implementation
func (*Defaults) UnmarshalBinary ¶ added in v0.9.3
UnmarshalBinary interface implementation
type Endpoint ¶
type Endpoint struct {
// Endpoint description
Description string `json:"description,omitempty"`
// Endpoint title
Title string `json:"title,omitempty"`
// Path to the endpoint
URL string `json:"url,omitempty"`
}
Endpoint Endpoint
Endpoint definition swagger:model endpoint
func (*Endpoint) MarshalBinary ¶
MarshalBinary interface implementation
func (*Endpoint) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Endpoints ¶
type Endpoints []*Endpoint
Endpoints Endpoints Array
Collection of endpoints swagger:model endpoints
type Error ¶
type Error struct {
// code
// Required: true
Code *int64 `json:"code"`
// message
// Required: true
Message *string `json:"message"`
// error
Error map[string]string `json:"-"`
}
Error Error
API Error swagger:model error
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (Error) MarshalJSON ¶
MarshalJSON marshals this object with additional properties into a JSON object
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*Error) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object with additional properties from JSON
type Errorfile ¶ added in v0.9.3
type Errorfile struct {
// code
// Enum: [200 400 403 405 408 425 429 500 502 503 504]
Code int64 `json:"code,omitempty"`
// file
File string `json:"file,omitempty"`
}
Errorfile errorfile swagger:model errorfile
func (*Errorfile) MarshalBinary ¶ added in v0.9.3
MarshalBinary interface implementation
func (*Errorfile) UnmarshalBinary ¶ added in v0.9.3
UnmarshalBinary interface implementation
type Filter ¶
type Filter struct {
// cache name
// Pattern: ^[^\s]+$
CacheName string `json:"cache_name,omitempty"`
// id
// Required: true
ID *int64 `json:"id"`
// spoe config
// Pattern: ^[^\s]+$
SpoeConfig string `json:"spoe_config,omitempty"`
// spoe engine
// Pattern: ^[^\s]+$
SpoeEngine string `json:"spoe_engine,omitempty"`
// trace hexdump
TraceHexdump bool `json:"trace_hexdump,omitempty"`
// trace name
// Pattern: ^[^\s]+$
TraceName string `json:"trace_name,omitempty"`
// trace rnd forwarding
TraceRndForwarding bool `json:"trace_rnd_forwarding,omitempty"`
// trace rnd parsing
TraceRndParsing bool `json:"trace_rnd_parsing,omitempty"`
// type
// Required: true
// Enum: [trace compression spoe cache]
Type string `json:"type"`
}
Filter Filter
HAProxy filters swagger:model filter
func (*Filter) MarshalBinary ¶
MarshalBinary interface implementation
func (*Filter) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Filters ¶
type Filters []*Filter
Filters Filters Array
HAProxy filters array (corresponds to filter directive) swagger:model filters
type Forwardfor ¶ added in v0.9.3
type Forwardfor struct {
// enabled
// Required: true
// Enum: [enabled]
Enabled *string `json:"enabled"`
// except
// Pattern: ^[^\s]+$
Except string `json:"except,omitempty"`
// header
// Pattern: ^[^\s]+$
Header string `json:"header,omitempty"`
// ifnone
Ifnone bool `json:"ifnone,omitempty"`
}
Forwardfor forwardfor swagger:model forwardfor
func (*Forwardfor) MarshalBinary ¶ added in v0.9.3
func (m *Forwardfor) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Forwardfor) UnmarshalBinary ¶ added in v0.9.3
func (m *Forwardfor) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Frontend ¶
type Frontend struct {
// clflog
Clflog bool `json:"clflog,omitempty"`
// client timeout
ClientTimeout *int64 `json:"client_timeout,omitempty"`
// clitcpka
// Enum: [enabled disabled]
Clitcpka string `json:"clitcpka,omitempty"`
// contstats
// Enum: [enabled]
Contstats string `json:"contstats,omitempty"`
// default backend
// Pattern: ^[A-Za-z0-9-_.:]+$
DefaultBackend string `json:"default_backend,omitempty"`
// dontlognull
// Enum: [enabled disabled]
Dontlognull string `json:"dontlognull,omitempty"`
// forwardfor
Forwardfor *Forwardfor `json:"forwardfor,omitempty"`
// http use htx
// Enum: [enabled disabled]
HTTPUseHtx string `json:"http-use-htx,omitempty"`
// http connection mode
// Enum: [httpclose http-server-close http-keep-alive]
HTTPConnectionMode string `json:"http_connection_mode,omitempty"`
// http keep alive timeout
HTTPKeepAliveTimeout *int64 `json:"http_keep_alive_timeout,omitempty"`
// http request timeout
HTTPRequestTimeout *int64 `json:"http_request_timeout,omitempty"`
// httplog
Httplog bool `json:"httplog,omitempty"`
// log format
LogFormat string `json:"log_format,omitempty"`
// log format sd
LogFormatSd string `json:"log_format_sd,omitempty"`
// log separate errors
// Enum: [enabled disabled]
LogSeparateErrors string `json:"log_separate_errors,omitempty"`
// log tag
// Pattern: ^[A-Za-z0-9-_.:]+$
LogTag string `json:"log_tag,omitempty"`
// maxconn
Maxconn *int64 `json:"maxconn,omitempty"`
// mode
// Enum: [http tcp]
Mode string `json:"mode,omitempty"`
// name
// Required: true
// Pattern: ^[A-Za-z0-9-_.:]+$
Name string `json:"name"`
// tcplog
Tcplog bool `json:"tcplog,omitempty"`
}
Frontend Frontend
HAProxy frontend configuration swagger:model frontend
func (*Frontend) MarshalBinary ¶
MarshalBinary interface implementation
func (*Frontend) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Frontends ¶
type Frontends []*Frontend
Frontends Frontends
HAProxy frontends array swagger:model frontends
type Global ¶
type Global struct {
// CPU maps
CPUMaps []*CPUMap `json:"cpu_maps"`
// runtime apis
RuntimeApis []*RuntimeAPI `json:"runtime_apis"`
// daemon
// Enum: [enabled disabled]
Daemon string `json:"daemon,omitempty"`
// external check
ExternalCheck bool `json:"external_check,omitempty"`
// master worker
MasterWorker bool `json:"master-worker,omitempty"`
// maxconn
Maxconn int64 `json:"maxconn,omitempty"`
// nbproc
Nbproc int64 `json:"nbproc,omitempty"`
// nbthread
Nbthread int64 `json:"nbthread,omitempty"`
// pidfile
Pidfile string `json:"pidfile,omitempty"`
// ssl default bind ciphers
SslDefaultBindCiphers string `json:"ssl_default_bind_ciphers,omitempty"`
// ssl default bind options
SslDefaultBindOptions string `json:"ssl_default_bind_options,omitempty"`
// stats timeout
StatsTimeout *int64 `json:"stats_timeout,omitempty"`
// tune ssl default dh param
TuneSslDefaultDhParam int64 `json:"tune_ssl_default_dh_param,omitempty"`
}
Global Global
HAProxy global configuration swagger:model global
func (*Global) MarshalBinary ¶
MarshalBinary interface implementation
func (*Global) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type HTTPRequestRule ¶
type HTTPRequestRule struct {
// acl file
// Pattern: ^[^\s]+$
ACLFile string `json:"acl_file,omitempty"`
// acl keyfmt
// Pattern: ^[^\s]+$
ACLKeyfmt string `json:"acl_keyfmt,omitempty"`
// auth realm
// Pattern: ^[^\s]+$
AuthRealm string `json:"auth_realm,omitempty"`
// cond
// Enum: [if unless]
Cond string `json:"cond,omitempty"`
// cond test
CondTest string `json:"cond_test,omitempty"`
// deny status
DenyStatus int64 `json:"deny_status,omitempty"`
// hdr format
// Pattern: ^[^\s]+$
HdrFormat string `json:"hdr_format,omitempty"`
// hdr match
// Pattern: ^[^\s]+$
HdrMatch string `json:"hdr_match,omitempty"`
// hdr name
// Pattern: ^[^\s]+$
HdrName string `json:"hdr_name,omitempty"`
// id
// Required: true
ID *int64 `json:"id"`
// log level
// Enum: [emerg alert crit err warning notice info debug silent]
LogLevel string `json:"log_level,omitempty"`
// path fmt
PathFmt string `json:"path_fmt,omitempty"`
// query fmt
QueryFmt string `json:"query-fmt,omitempty"`
// redir code
// Enum: [301 302 303]
RedirCode int64 `json:"redir_code,omitempty"`
// redir option
RedirOption string `json:"redir_option,omitempty"`
// redir type
// Enum: [location prefix scheme]
RedirType string `json:"redir_type,omitempty"`
// redir value
// Pattern: ^[^\s]+$
RedirValue string `json:"redir_value,omitempty"`
// spoe engine
// Pattern: ^[^\s]+$
SpoeEngine string `json:"spoe_engine,omitempty"`
// spoe group
// Pattern: ^[^\s]+$
SpoeGroup string `json:"spoe_group,omitempty"`
// type
// Required: true
// Enum: [allow deny auth redirect tarpit add-header replace-header replace-value del-header set-header set-log-level set-path set-query set-uri set-var send-spoe-group add-acl del-acl]
Type string `json:"type"`
// uri fmt
URIFmt string `json:"uri-fmt,omitempty"`
// var expr
VarExpr string `json:"var_expr,omitempty"`
// var name
// Pattern: ^[^\s]+$
VarName string `json:"var_name,omitempty"`
// var scope
// Pattern: ^[^\s]+$
VarScope string `json:"var_scope,omitempty"`
}
HTTPRequestRule HTTP Request Rule
HAProxy HTTP request rule configuration (corresponds to http-request directives) swagger:model http_request_rule
func (*HTTPRequestRule) MarshalBinary ¶
func (m *HTTPRequestRule) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HTTPRequestRule) UnmarshalBinary ¶
func (m *HTTPRequestRule) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HTTPRequestRules ¶
type HTTPRequestRules []*HTTPRequestRule
HTTPRequestRules HTTP Request Rules Array
HAProxy HTTP request rules array (corresponds to http-request directives) swagger:model http_request_rules
type HTTPResponseRule ¶
type HTTPResponseRule struct {
// acl file
// Pattern: ^[^\s]+$
ACLFile string `json:"acl_file,omitempty"`
// acl keyfmt
// Pattern: ^[^\s]+$
ACLKeyfmt string `json:"acl_keyfmt,omitempty"`
// cond
// Enum: [if unless]
Cond string `json:"cond,omitempty"`
// cond test
CondTest string `json:"cond_test,omitempty"`
// hdr format
// Pattern: ^[^\s]+$
HdrFormat string `json:"hdr_format,omitempty"`
// hdr match
// Pattern: ^[^\s]+$
HdrMatch string `json:"hdr_match,omitempty"`
// hdr name
// Pattern: ^[^\s]+$
HdrName string `json:"hdr_name,omitempty"`
// id
// Required: true
ID *int64 `json:"id"`
// log level
// Enum: [emerg alert crit err warning notice info debug silent]
LogLevel string `json:"log_level,omitempty"`
// redir code
// Enum: [301 302 303]
RedirCode int64 `json:"redir_code,omitempty"`
// redir option
RedirOption string `json:"redir_option,omitempty"`
// redir type
// Enum: [location prefix scheme]
RedirType string `json:"redir_type,omitempty"`
// redir value
// Pattern: ^[^\s]+$
RedirValue string `json:"redir_value,omitempty"`
// spoe engine
// Pattern: ^[^\s]+$
SpoeEngine string `json:"spoe_engine,omitempty"`
// spoe group
// Pattern: ^[^\s]+$
SpoeGroup string `json:"spoe_group,omitempty"`
// status
// Maximum: 999
// Minimum: 100
Status int64 `json:"status,omitempty"`
// status reason
StatusReason string `json:"status_reason,omitempty"`
// type
// Required: true
// Enum: [allow deny redirect add-header set-header del-header set-log-level set-var set-status send-spoe-group replace-header replace-value add-acl del-acl]
Type string `json:"type"`
// var expr
VarExpr string `json:"var_expr,omitempty"`
// var name
// Pattern: ^[^\s]+$
VarName string `json:"var_name,omitempty"`
// var scope
// Pattern: ^[^\s]+$
VarScope string `json:"var_scope,omitempty"`
}
HTTPResponseRule HTTP Response Rule
HAProxy HTTP response rule configuration (corresponds to http-response directives) swagger:model http_response_rule
func (*HTTPResponseRule) MarshalBinary ¶
func (m *HTTPResponseRule) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HTTPResponseRule) UnmarshalBinary ¶
func (m *HTTPResponseRule) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HTTPResponseRules ¶
type HTTPResponseRules []*HTTPResponseRule
HTTPResponseRules HTTP Response Rules Array
HAProxy HTTP response rules array (corresponds to http-response directives) swagger:model http_response_rules
type Httpchk ¶ added in v1.1.0
type Httpchk struct {
// method
// Enum: [HEAD PUT POST GET TRACE PATCH]
Method string `json:"method,omitempty"`
// uri
// Pattern: ^[^\s]+$
URI string `json:"uri,omitempty"`
// version
// Pattern: ^[^\s]+$
Version string `json:"version,omitempty"`
}
Httpchk httpchk swagger:model httpchk
func (*Httpchk) MarshalBinary ¶ added in v1.1.0
MarshalBinary interface implementation
func (*Httpchk) UnmarshalBinary ¶ added in v1.1.0
UnmarshalBinary interface implementation
type Info ¶ added in v1.2.2
type Info struct {
// api
API *InfoAPI `json:"api,omitempty"`
// system
System *InfoSystem `json:"system,omitempty"`
}
Info Information
General API, OS and hardware information swagger:model info
func (*Info) MarshalBinary ¶ added in v1.2.2
MarshalBinary interface implementation
func (*Info) UnmarshalBinary ¶ added in v1.2.2
UnmarshalBinary interface implementation
type InfoAPI ¶ added in v1.2.2
type InfoAPI struct {
// HAProxy Dataplane API build date
// Format: date-time
BuildDate strfmt.DateTime `json:"build_date,omitempty"`
// HAProxy Dataplane API version string
Version string `json:"version,omitempty"`
}
InfoAPI info API swagger:model InfoAPI
func (*InfoAPI) MarshalBinary ¶ added in v1.2.2
MarshalBinary interface implementation
func (*InfoAPI) UnmarshalBinary ¶ added in v1.2.2
UnmarshalBinary interface implementation
type InfoSystem ¶ added in v1.2.2
type InfoSystem struct {
// cpu info
CPUInfo *InfoSystemCPUInfo `json:"cpu_info,omitempty"`
// Hostname where the HAProxy is running
Hostname string `json:"hostname,omitempty"`
// mem info
MemInfo *InfoSystemMemInfo `json:"mem_info,omitempty"`
// OS string
OsString string `json:"os_string,omitempty"`
// Current time in milliseconds since Epoch.
Time int64 `json:"time,omitempty"`
// System uptime
Uptime *int64 `json:"uptime,omitempty"`
}
InfoSystem info system swagger:model InfoSystem
func (*InfoSystem) MarshalBinary ¶ added in v1.2.2
func (m *InfoSystem) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InfoSystem) UnmarshalBinary ¶ added in v1.2.2
func (m *InfoSystem) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InfoSystemCPUInfo ¶ added in v1.2.2
type InfoSystemCPUInfo struct {
// model
Model string `json:"model,omitempty"`
// Number of logical CPUs
NumCpus int64 `json:"num_cpus,omitempty"`
}
InfoSystemCPUInfo info system CPU info swagger:model InfoSystemCPUInfo
func (*InfoSystemCPUInfo) MarshalBinary ¶ added in v1.2.2
func (m *InfoSystemCPUInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InfoSystemCPUInfo) UnmarshalBinary ¶ added in v1.2.2
func (m *InfoSystemCPUInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InfoSystemMemInfo ¶ added in v1.2.2
type InfoSystemMemInfo struct {
// dataplaneapi memory
DataplaneapiMemory int64 `json:"dataplaneapi_memory,omitempty"`
// free memory
FreeMemory int64 `json:"free_memory,omitempty"`
// total memory
TotalMemory int64 `json:"total_memory,omitempty"`
}
InfoSystemMemInfo info system mem info swagger:model InfoSystemMemInfo
func (*InfoSystemMemInfo) MarshalBinary ¶ added in v1.2.2
func (m *InfoSystemMemInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InfoSystemMemInfo) UnmarshalBinary ¶ added in v1.2.2
func (m *InfoSystemMemInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type LogTarget ¶
type LogTarget struct {
// address
// Pattern: ^[^\s]+$
Address string `json:"address,omitempty"`
// facility
// Enum: [kern user mail daemon auth syslog lpr news uucp cron auth2 ftp ntp audit alert cron2 local0 local1 local2 local3 local4 local5 local6 local7]
Facility string `json:"facility,omitempty"`
// format
// Enum: [rfc3164 rfc5424 short raw]
Format string `json:"format,omitempty"`
// global
Global bool `json:"global,omitempty"`
// id
// Required: true
ID *int64 `json:"id"`
// length
Length int64 `json:"length,omitempty"`
// level
// Enum: [emerg alert crit err warning notice info debug]
Level string `json:"level,omitempty"`
// minlevel
// Enum: [emerg alert crit err warning notice info debug]
Minlevel string `json:"minlevel,omitempty"`
// nolog
Nolog bool `json:"nolog,omitempty"`
}
LogTarget Log Target
Per-instance logging of events and traffic. swagger:model log_target
func (*LogTarget) MarshalBinary ¶
MarshalBinary interface implementation
func (*LogTarget) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type LogTargets ¶
type LogTargets []*LogTarget
LogTargets Log Target Array
HAProxy log target array (corresponds to log directives) swagger:model log_targets
type NativeStat ¶
type NativeStat struct {
// backend name
BackendName string `json:"backend_name,omitempty"`
// name
Name string `json:"name,omitempty"`
// stats
Stats *NativeStatStats `json:"stats,omitempty"`
// type
// Enum: [backend server frontend]
Type string `json:"type,omitempty"`
}
NativeStat Stats
Current stats for one object. swagger:model NativeStat
func (*NativeStat) MarshalBinary ¶
func (m *NativeStat) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NativeStat) UnmarshalBinary ¶
func (m *NativeStat) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NativeStatStats ¶
type NativeStatStats struct {
// act
Act *int64 `json:"act,omitempty"`
// addr
Addr string `json:"addr,omitempty"`
// agent code
AgentCode *int64 `json:"agent_code,omitempty"`
// agent desc
AgentDesc string `json:"agent_desc,omitempty"`
// agent duration
AgentDuration *int64 `json:"agent_duration,omitempty"`
// agent fall
AgentFall *int64 `json:"agent_fall,omitempty"`
// agent health
AgentHealth *int64 `json:"agent_health,omitempty"`
// agent rise
AgentRise *int64 `json:"agent_rise,omitempty"`
// agent status
// Enum: [UNK INI SOCKERR L40K L4TOUT L4CON L7OK L7STS]
AgentStatus string `json:"agent_status,omitempty"`
// algo
Algo string `json:"algo,omitempty"`
// bck
Bck *int64 `json:"bck,omitempty"`
// bin
Bin *int64 `json:"bin,omitempty"`
// bout
Bout *int64 `json:"bout,omitempty"`
// check code
CheckCode *int64 `json:"check_code,omitempty"`
// check desc
CheckDesc string `json:"check_desc,omitempty"`
// check duration
CheckDuration *int64 `json:"check_duration,omitempty"`
// check fall
CheckFall *int64 `json:"check_fall,omitempty"`
// check health
CheckHealth *int64 `json:"check_health,omitempty"`
// check rise
CheckRise *int64 `json:"check_rise,omitempty"`
// check status
// Enum: [UNK INI SOCKERR L40K L4TOUT L4CON L6OK L6TOUT L6RSP L7OK L7OKC L7TOUT L7RSP L7STS]
CheckStatus string `json:"check_status,omitempty"`
// chkdown
Chkdown *int64 `json:"chkdown,omitempty"`
// chkfail
Chkfail *int64 `json:"chkfail,omitempty"`
// cli abrt
CliAbrt *int64 `json:"cli_abrt,omitempty"`
// comp byp
CompByp *int64 `json:"comp_byp,omitempty"`
// comp in
CompIn *int64 `json:"comp_in,omitempty"`
// comp out
CompOut *int64 `json:"comp_out,omitempty"`
// comp rsp
CompRsp *int64 `json:"comp_rsp,omitempty"`
// conn rate
ConnRate *int64 `json:"conn_rate,omitempty"`
// conn rate max
ConnRateMax *int64 `json:"conn_rate_max,omitempty"`
// conn tot
ConnTot *int64 `json:"conn_tot,omitempty"`
// cookie
Cookie string `json:"cookie,omitempty"`
// ctime
Ctime *int64 `json:"ctime,omitempty"`
// dcon
Dcon *int64 `json:"dcon,omitempty"`
// downtime
Downtime *int64 `json:"downtime,omitempty"`
// dreq
Dreq *int64 `json:"dreq,omitempty"`
// dresp
Dresp *int64 `json:"dresp,omitempty"`
// dses
Dses *int64 `json:"dses,omitempty"`
// econ
Econ *int64 `json:"econ,omitempty"`
// ereq
Ereq *int64 `json:"ereq,omitempty"`
// eresp
Eresp *int64 `json:"eresp,omitempty"`
// hanafail
Hanafail string `json:"hanafail,omitempty"`
// hrsp 1xx
Hrsp1xx *int64 `json:"hrsp_1xx,omitempty"`
// hrsp 2xx
Hrsp2xx *int64 `json:"hrsp_2xx,omitempty"`
// hrsp 3xx
Hrsp3xx *int64 `json:"hrsp_3xx,omitempty"`
// hrsp 4xx
Hrsp4xx *int64 `json:"hrsp_4xx,omitempty"`
// hrsp 5xx
Hrsp5xx *int64 `json:"hrsp_5xx,omitempty"`
// hrsp other
HrspOther *int64 `json:"hrsp_other,omitempty"`
// iid
Iid *int64 `json:"iid,omitempty"`
// intercepted
Intercepted *int64 `json:"intercepted,omitempty"`
// lastchg
Lastchg *int64 `json:"lastchg,omitempty"`
// lastsess
Lastsess *int64 `json:"lastsess,omitempty"`
// lbtot
Lbtot *int64 `json:"lbtot,omitempty"`
// mode
// Enum: [tcp http health unknown]
Mode string `json:"mode,omitempty"`
// pid
Pid *int64 `json:"pid,omitempty"`
// qcur
Qcur *int64 `json:"qcur,omitempty"`
// qlimit
Qlimit *int64 `json:"qlimit,omitempty"`
// qmax
Qmax *int64 `json:"qmax,omitempty"`
// qtime
Qtime *int64 `json:"qtime,omitempty"`
// rate
Rate *int64 `json:"rate,omitempty"`
// rate lim
RateLim *int64 `json:"rate_lim,omitempty"`
// rate max
RateMax *int64 `json:"rate_max,omitempty"`
// req rate
ReqRate *int64 `json:"req_rate,omitempty"`
// req rate max
ReqRateMax *int64 `json:"req_rate_max,omitempty"`
// req tot
ReqTot *int64 `json:"req_tot,omitempty"`
// rtime
Rtime *int64 `json:"rtime,omitempty"`
// scur
Scur *int64 `json:"scur,omitempty"`
// sid
Sid *int64 `json:"sid,omitempty"`
// slim
Slim *int64 `json:"slim,omitempty"`
// smax
Smax *int64 `json:"smax,omitempty"`
// srv abrt
SrvAbrt *int64 `json:"srv_abrt,omitempty"`
// status
// Enum: [UP DOWN NOLB MAINT no check]
Status string `json:"status,omitempty"`
// stot
Stot *int64 `json:"stot,omitempty"`
// throttle
Throttle *int64 `json:"throttle,omitempty"`
// tracked
Tracked *int64 `json:"tracked,omitempty"`
// ttime
Ttime *int64 `json:"ttime,omitempty"`
// weight
Weight *int64 `json:"weight,omitempty"`
// wredis
Wredis *int64 `json:"wredis,omitempty"`
// wretr
Wretr *int64 `json:"wretr,omitempty"`
}
NativeStatStats native stat stats swagger:model NativeStatStats
func (*NativeStatStats) MarshalBinary ¶
func (m *NativeStatStats) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NativeStatStats) UnmarshalBinary ¶
func (m *NativeStatStats) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NativeStats ¶
type NativeStats []*NativeStatsCollection
NativeStats Stats Array
HAProxy stats array swagger:model NativeStats
type NativeStatsCollection ¶ added in v1.2.0
type NativeStatsCollection struct {
// error
Error string `json:"error,omitempty"`
// runtime API
RuntimeAPI string `json:"runtimeAPI,omitempty"`
// stats
Stats []*NativeStat `json:"stats"`
}
NativeStatsCollection Stats collection
Stats from one runtime API swagger:model NativeStatsCollection
func (*NativeStatsCollection) MarshalBinary ¶ added in v1.2.0
func (m *NativeStatsCollection) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NativeStatsCollection) UnmarshalBinary ¶ added in v1.2.0
func (m *NativeStatsCollection) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ProcessInfo ¶
type ProcessInfo struct {
// haproxy
Haproxy *ProcessInfoHaproxy `json:"haproxy,omitempty"`
}
ProcessInfo HAProxy Information
General HAProxy process information swagger:model process_info
func (*ProcessInfo) MarshalBinary ¶
func (m *ProcessInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ProcessInfo) UnmarshalBinary ¶
func (m *ProcessInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ProcessInfoHaproxy ¶
type ProcessInfoHaproxy struct {
// Process id of the replying worker process
Pid *int64 `json:"pid,omitempty"`
// Number of spawned processes
Processes *int64 `json:"processes,omitempty"`
// HAProxy version release date
// Format: date
ReleaseDate strfmt.Date `json:"release_date,omitempty"`
// HAProxy uptime in s
Uptime *int64 `json:"uptime,omitempty"`
// HAProxy version string
Version string `json:"version,omitempty"`
}
ProcessInfoHaproxy process info haproxy swagger:model ProcessInfoHaproxy
func (*ProcessInfoHaproxy) MarshalBinary ¶
func (m *ProcessInfoHaproxy) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ProcessInfoHaproxy) UnmarshalBinary ¶
func (m *ProcessInfoHaproxy) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Redispatch ¶ added in v1.1.0
type Redispatch struct {
// enabled
// Required: true
// Enum: [enabled disabled]
Enabled *string `json:"enabled"`
// interval
Interval int64 `json:"interval,omitempty"`
}
Redispatch redispatch swagger:model redispatch
func (*Redispatch) MarshalBinary ¶ added in v1.1.0
func (m *Redispatch) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Redispatch) UnmarshalBinary ¶ added in v1.1.0
func (m *Redispatch) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Reload ¶
type Reload struct {
// id
// Pattern: ^\d{4}-\d{2}-\d{2}-\d+$
ID string `json:"id,omitempty"`
// reload timestamp
ReloadTimestamp int64 `json:"reload_timestamp,omitempty"`
// response
Response string `json:"response,omitempty"`
// status
// Enum: [failed in_progress succeeded]
Status string `json:"status,omitempty"`
}
Reload HAProxy reload
HAProxy reload swagger:model reload
func (*Reload) MarshalBinary ¶
MarshalBinary interface implementation
func (*Reload) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Reloads ¶
type Reloads []*Reload
Reloads HAProxy Reloads Array
HAProxy reloads array swagger:model reloads
type RuntimeAPI ¶
type RuntimeAPI struct {
// address
// Required: true
// Pattern: ^[^\s]+$
Address *string `json:"address"`
// expose fd listeners
ExposeFdListeners bool `json:"exposeFdListeners,omitempty"`
// level
// Enum: [user operator admin]
Level string `json:"level,omitempty"`
// mode
// Pattern: ^[^\s]+$
Mode string `json:"mode,omitempty"`
// process
// Pattern: ^[^\s]+$
Process string `json:"process,omitempty"`
}
RuntimeAPI runtime API swagger:model RuntimeAPI
func (*RuntimeAPI) MarshalBinary ¶
func (m *RuntimeAPI) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RuntimeAPI) UnmarshalBinary ¶
func (m *RuntimeAPI) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Server ¶
type Server struct {
// address
// Pattern: ^[^\s]+$
Address string `json:"address,omitempty"`
// allow 0rtt
Allow0rtt bool `json:"allow_0rtt,omitempty"`
// backup
// Enum: [enabled disabled]
Backup string `json:"backup,omitempty"`
// check
// Enum: [enabled disabled]
Check string `json:"check,omitempty"`
// cookie
// Pattern: ^[^\s]+$
Cookie string `json:"cookie,omitempty"`
// inter
Inter *int64 `json:"inter,omitempty"`
// maintenance
// Enum: [enabled disabled]
Maintenance string `json:"maintenance,omitempty"`
// maxconn
Maxconn *int64 `json:"maxconn,omitempty"`
// name
// Required: true
// Pattern: ^[^\s]+$
Name string `json:"name"`
// on error
// Enum: [fastinter fail-check sudden-death mark-down]
OnError string `json:"on-error,omitempty"`
// on marked down
// Enum: [shutdown-sessions]
OnMarkedDown string `json:"on-marked-down,omitempty"`
// on marked up
// Enum: [shutdown-backup-sessions]
OnMarkedUp string `json:"on-marked-up,omitempty"`
// port
// Maximum: 65535
// Minimum: 0
Port *int64 `json:"port,omitempty"`
// send proxy
// Enum: [enabled disabled]
SendProxy string `json:"send-proxy,omitempty"`
// send proxy v2
// Enum: [enabled disabled]
SendProxyV2 string `json:"send-proxy-v2,omitempty"`
// ssl
// Enum: [enabled disabled]
Ssl string `json:"ssl,omitempty"`
// ssl cafile
// Pattern: ^[^\s]+$
SslCafile string `json:"ssl_cafile,omitempty"`
// ssl certificate
// Pattern: ^[^\s]+$
SslCertificate string `json:"ssl_certificate,omitempty"`
// tls tickets
// Enum: [enabled disabled]
TLSTickets string `json:"tls_tickets,omitempty"`
// verify
// Enum: [none required]
Verify string `json:"verify,omitempty"`
// weight
Weight *int64 `json:"weight,omitempty"`
}
Server Server
HAProxy backend server configuration swagger:model server
func (*Server) MarshalBinary ¶
MarshalBinary interface implementation
func (*Server) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ServerSwitchingRule ¶
type ServerSwitchingRule struct {
// cond
// Enum: [if unless]
Cond string `json:"cond,omitempty"`
// cond test
CondTest string `json:"cond_test,omitempty"`
// id
// Required: true
ID *int64 `json:"id"`
// target server
// Required: true
// Pattern: ^[^\s]+$
TargetServer string `json:"target_server"`
}
ServerSwitchingRule Server Switching Rule
HAProxy server switching rule configuration (corresponds to use-server directive) swagger:model server_switching_rule
func (*ServerSwitchingRule) MarshalBinary ¶
func (m *ServerSwitchingRule) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServerSwitchingRule) UnmarshalBinary ¶
func (m *ServerSwitchingRule) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ServerSwitchingRules ¶
type ServerSwitchingRules []*ServerSwitchingRule
ServerSwitchingRules Server Switching Rules Array
HAProxy backend server switching rules array (corresponds to use-server directives) swagger:model server_switching_rules
type Servers ¶
type Servers []*Server
Servers Servers
HAProxy backend servers array swagger:model servers
type Site ¶
type Site struct {
// farms
Farms []*SiteFarm `json:"farms"`
// name
// Required: true
// Pattern: ^[A-Za-z0-9-_.:]+$
Name string `json:"name"`
// service
Service *SiteService `json:"service,omitempty"`
}
Site Site
Site configuration. Sites are considered as one service and all farms connected to that service. Farms are connected to service using use-backend and default_backend directives. Sites let you configure simple HAProxy configurations, for more advanced options use /haproxy/configuration endpoints.
swagger:model site
func (*Site) MarshalBinary ¶
MarshalBinary interface implementation
func (*Site) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type SiteFarm ¶
type SiteFarm struct {
// balance
Balance *Balance `json:"balance,omitempty"`
// cond
// Enum: [if unless]
Cond string `json:"cond,omitempty"`
// cond test
CondTest string `json:"cond_test,omitempty"`
// forwardfor
Forwardfor *Forwardfor `json:"forwardfor,omitempty"`
// mode
// Enum: [http tcp]
Mode string `json:"mode,omitempty"`
// name
// Required: true
// Pattern: ^[A-Za-z0-9-_.:]+$
Name string `json:"name"`
// servers
Servers []*Server `json:"servers"`
// use as
// Required: true
// Enum: [default conditional]
UseAs string `json:"use_as"`
}
SiteFarm site farm swagger:model SiteFarm
func (*SiteFarm) MarshalBinary ¶
MarshalBinary interface implementation
func (*SiteFarm) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type SiteService ¶
type SiteService struct {
// http connection mode
// Enum: [http-tunnel httpclose forced-close http-server-close http-keep-alive]
HTTPConnectionMode string `json:"http_connection_mode,omitempty"`
// listeners
Listeners []*Bind `json:"listeners"`
// maxconn
Maxconn *int64 `json:"maxconn,omitempty"`
// mode
// Enum: [http tcp]
Mode string `json:"mode,omitempty"`
}
SiteService site service swagger:model SiteService
func (*SiteService) MarshalBinary ¶
func (m *SiteService) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SiteService) UnmarshalBinary ¶
func (m *SiteService) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Sites ¶
type Sites []*Site
Sites Sites
Sites array. Sites are considered as one service and all farms connected to that service. Farms are connected to service using use-backend and default_backend directives. Sites let you configure simple HAProxy configurations, for more advanced options use /haproxy/configuration endpoints.
swagger:model sites
type StickRule ¶
type StickRule struct {
// cond
// Enum: [if unless]
Cond string `json:"cond,omitempty"`
// cond test
CondTest string `json:"cond_test,omitempty"`
// id
// Required: true
ID *int64 `json:"id"`
// pattern
// Required: true
// Pattern: ^[^\s]+$
Pattern string `json:"pattern"`
// table
// Pattern: ^[^\s]+$
Table string `json:"table,omitempty"`
// type
// Required: true
// Enum: [match on store-request store-response]
Type string `json:"type"`
}
StickRule Stick Rule
Define a pattern used to create an entry in a stickiness table or matching condition or associate a user to a server. swagger:model stick_rule
func (*StickRule) MarshalBinary ¶
MarshalBinary interface implementation
func (*StickRule) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type StickRules ¶
type StickRules []*StickRule
StickRules Stick Rules Array
HAProxy backend stick rules array (corresponds to stick store-request, stick match, stick on, stick store-response) swagger:model stick_rules
type TCPRequestRule ¶
type TCPRequestRule struct {
// action
// Enum: [accept reject]
Action string `json:"action,omitempty"`
// cond
// Enum: [if unless]
Cond string `json:"cond,omitempty"`
// cond test
CondTest string `json:"cond_test,omitempty"`
// id
// Required: true
ID *int64 `json:"id"`
// timeout
Timeout *int64 `json:"timeout,omitempty"`
// type
// Required: true
// Enum: [connection content inspect-delay session]
Type string `json:"type"`
}
TCPRequestRule TCP Request Rule
HAProxy TCP Request Rule configuration (corresponds to tcp-request) swagger:model tcp_request_rule
func (*TCPRequestRule) MarshalBinary ¶
func (m *TCPRequestRule) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TCPRequestRule) UnmarshalBinary ¶
func (m *TCPRequestRule) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TCPRequestRules ¶
type TCPRequestRules []*TCPRequestRule
TCPRequestRules TCP Request Rules Array
HAProxy TCP request rules array (corresponds to tcp-request directive) swagger:model tcp_request_rules
type TCPResponseRule ¶
type TCPResponseRule struct {
// action
// Enum: [accept reject]
Action string `json:"action,omitempty"`
// cond
// Enum: [if unless]
Cond string `json:"cond,omitempty"`
// cond test
CondTest string `json:"cond_test,omitempty"`
// id
// Required: true
ID *int64 `json:"id"`
// timeout
Timeout *int64 `json:"timeout,omitempty"`
// type
// Required: true
// Enum: [content inspect-delay]
Type string `json:"type"`
}
TCPResponseRule TCP Response Rule
HAProxy TCP Response Rule configuration (corresponds to tcp-response) swagger:model tcp_response_rule
func (*TCPResponseRule) MarshalBinary ¶
func (m *TCPResponseRule) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TCPResponseRule) UnmarshalBinary ¶
func (m *TCPResponseRule) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TCPResponseRules ¶
type TCPResponseRules []*TCPResponseRule
TCPResponseRules TCP Response Rules Array
HAProxy TCP response rules array (corresponds to tcp-response directive) swagger:model tcp_response_rules
type Transaction ¶
type Transaction struct {
// version
Version int64 `json:"_version,omitempty"`
// id
// Pattern: ^[^\s]+$
ID string `json:"id,omitempty"`
// status
// Enum: [failed in_progress success]
Status string `json:"status,omitempty"`
}
Transaction Configuration transaction
HAProxy configuration transaction swagger:model transaction
func (*Transaction) MarshalBinary ¶
func (m *Transaction) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Transaction) UnmarshalBinary ¶
func (m *Transaction) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Transactions ¶
type Transactions []*Transaction
Transactions Transactions array
Configuration transactions array swagger:model transactions
Source Files
¶
- acl.go
- acls.go
- backend.go
- backend_switching_rule.go
- backend_switching_rules.go
- backends.go
- balance.go
- bind.go
- binds.go
- default_server.go
- defaults.go
- endpoint.go
- endpoints.go
- error.go
- errorfile.go
- filter.go
- filters.go
- forwardfor.go
- frontend.go
- frontends.go
- global.go
- http_request_rule.go
- http_request_rules.go
- http_response_rule.go
- http_response_rules.go
- httpchk.go
- info.go
- log_target.go
- log_targets.go
- native_stat.go
- native_stats.go
- process_info.go
- redispatch.go
- reload.go
- reloads.go
- server.go
- server_switching_rule.go
- server_switching_rules.go
- servers.go
- site.go
- sites.go
- stick_rule.go
- stick_rules.go
- tcp_request_rule.go
- tcp_request_rules.go
- tcp_response_rule.go
- tcp_response_rules.go
- transaction.go
- transactions.go
