Documentation ¶
Index ¶
- Constants
- Variables
- type List
- type ReqAcceptContent
- type ReqBasicAuth
- type ReqCapture
- type ReqDeny
- type ReqInspectDelay
- type ReqPathRewrite
- type ReqProxyProtocol
- type ReqRateLimit
- type ReqSetSrc
- type ReqSetVar
- type ReqTrack
- type RequestRedirect
- type Rule
- type RuleID
- type Rules
- type SectionRules
- type SetHdr
- type Type
Constants ¶
View Source
const ( CREATED ruleState = 0 TO_CREATE ruleState = 1 TO_DELETE ruleState = 2 )
nolint: golint,stylecheck
Variables ¶
View Source
var HTTPACLVar = "txn.path_match"
HTTPACLVar used to match against RuleID in haproxy http frontend
View Source
var TCPACLVar = "txn.sni_match"
TCPACLVar used to match against RuleID in haproxy ssl frontend
Functions ¶
This section is empty.
Types ¶
type ReqAcceptContent ¶
type ReqAcceptContent struct{}
func (ReqAcceptContent) Create ¶
func (r ReqAcceptContent) Create(client api.HAProxyClient, frontend *models.Frontend, ingressACL string) error
func (ReqAcceptContent) GetType ¶
func (r ReqAcceptContent) GetType() Type
type ReqBasicAuth ¶
func (ReqBasicAuth) Create ¶
func (r ReqBasicAuth) Create(client api.HAProxyClient, frontend *models.Frontend, ingressACL string) (err error)
func (ReqBasicAuth) GetType ¶
func (r ReqBasicAuth) GetType() Type
type ReqCapture ¶
func (ReqCapture) Create ¶
func (r ReqCapture) Create(client api.HAProxyClient, frontend *models.Frontend, ingressACL string) error
func (ReqCapture) GetType ¶
func (r ReqCapture) GetType() Type
type ReqInspectDelay ¶
type ReqInspectDelay struct {
Timeout *int64
}
func (ReqInspectDelay) Create ¶
func (r ReqInspectDelay) Create(client api.HAProxyClient, frontend *models.Frontend, ingressACL string) error
func (ReqInspectDelay) GetType ¶
func (r ReqInspectDelay) GetType() Type
type ReqPathRewrite ¶
func (ReqPathRewrite) Create ¶
func (r ReqPathRewrite) Create(client api.HAProxyClient, frontend *models.Frontend, ingressACL string) error
func (ReqPathRewrite) GetType ¶
func (r ReqPathRewrite) GetType() Type
type ReqProxyProtocol ¶
func (ReqProxyProtocol) Create ¶
func (r ReqProxyProtocol) Create(client api.HAProxyClient, frontend *models.Frontend, ingressACL string) error
func (ReqProxyProtocol) GetType ¶
func (r ReqProxyProtocol) GetType() Type
type ReqRateLimit ¶
func (ReqRateLimit) Create ¶
func (r ReqRateLimit) Create(client api.HAProxyClient, frontend *models.Frontend, ingressACL string) error
func (ReqRateLimit) GetType ¶
func (r ReqRateLimit) GetType() Type
type RequestRedirect ¶
type RequestRedirect struct { RedirectCode int64 RedirectPort int Host string SSLRequest bool SSLRedirect bool }
func (RequestRedirect) Create ¶
func (r RequestRedirect) Create(client api.HAProxyClient, frontend *models.Frontend, ingressACL string) error
func (RequestRedirect) GetType ¶
func (r RequestRedirect) GetType() Type
type SectionRules ¶
type SectionRules map[string]*ruleset
func New ¶
func New() *SectionRules
func (SectionRules) AddRule ¶
func (r SectionRules) AddRule(frontend string, rule Rule, ingressRule bool) error
func (SectionRules) CleanRules ¶
func (r SectionRules) CleanRules()
func (SectionRules) DeleteFTRules ¶
func (r SectionRules) DeleteFTRules(frontend string)
func (SectionRules) RefreshRules ¶
func (r SectionRules) RefreshRules(client api.HAProxyClient) (reload bool)
type SetHdr ¶
type SetHdr struct { Response bool ForwardedProto bool HdrName string HdrFormat string Type Type CondTest string Cond string }
Click to show internal directories.
Click to hide internal directories.