rules

package
v1.6.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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() haproxy.RuleType

type ReqBasicAuth

type ReqBasicAuth struct {
	AuthGroup string
	AuthRealm string
	Data      map[string][]byte
}

func (ReqBasicAuth) Create

func (r ReqBasicAuth) Create(client api.HAProxyClient, frontend *models.Frontend, ingressACL string) (err error)

func (ReqBasicAuth) GetType

func (r ReqBasicAuth) GetType() haproxy.RuleType

type ReqCapture

type ReqCapture struct {
	Expression string
	CaptureLen int64
}

func (ReqCapture) Create

func (r ReqCapture) Create(client api.HAProxyClient, frontend *models.Frontend, ingressACL string) error

func (ReqCapture) GetType

func (r ReqCapture) GetType() haproxy.RuleType

type ReqDeny

type ReqDeny struct {
	SrcIPsMap string
	Whitelist bool
}

func (ReqDeny) Create

func (r ReqDeny) Create(client api.HAProxyClient, frontend *models.Frontend, ingressACL string) error

func (ReqDeny) GetType

func (r ReqDeny) GetType() haproxy.RuleType

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() haproxy.RuleType

type ReqPathRewrite

type ReqPathRewrite struct {
	PathMatch string
	PathFmt   string
}

func (ReqPathRewrite) Create

func (r ReqPathRewrite) Create(client api.HAProxyClient, frontend *models.Frontend, ingressACL string) error

func (ReqPathRewrite) GetType

func (r ReqPathRewrite) GetType() haproxy.RuleType

type ReqProxyProtocol

type ReqProxyProtocol struct {
	SrcIPsMap string
}

func (ReqProxyProtocol) Create

func (r ReqProxyProtocol) Create(client api.HAProxyClient, frontend *models.Frontend, ingressACL string) error

func (ReqProxyProtocol) GetType

func (r ReqProxyProtocol) GetType() haproxy.RuleType

type ReqRateLimit

type ReqRateLimit struct {
	TableName      string
	ReqsLimit      int64
	DenyStatusCode int64
}

func (ReqRateLimit) Create

func (r ReqRateLimit) Create(client api.HAProxyClient, frontend *models.Frontend, ingressACL string) error

func (ReqRateLimit) GetType

func (r ReqRateLimit) GetType() haproxy.RuleType

type ReqSetSrc

type ReqSetSrc struct {
	HeaderName string
}

func (ReqSetSrc) Create

func (r ReqSetSrc) Create(client api.HAProxyClient, frontend *models.Frontend, ingressACL string) error

func (ReqSetSrc) GetType

func (r ReqSetSrc) GetType() haproxy.RuleType

type ReqSetVar

type ReqSetVar struct {
	Name       string
	Scope      string
	Expression string
	CondTest   string
}

func (ReqSetVar) Create

func (r ReqSetVar) Create(client api.HAProxyClient, frontend *models.Frontend, ingressACL string) error

func (ReqSetVar) GetType

func (r ReqSetVar) GetType() haproxy.RuleType

type ReqTrack

type ReqTrack struct {
	TableName   string
	TablePeriod *int64
	TableSize   *int64
	TrackKey    string
}

func (ReqTrack) Create

func (r ReqTrack) Create(client api.HAProxyClient, frontend *models.Frontend, ingressACL string) error

func (ReqTrack) GetType

func (r ReqTrack) GetType() haproxy.RuleType

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() haproxy.RuleType

type SetHdr

type SetHdr struct {
	Response       bool
	ForwardedProto bool
	HdrName        string
	HdrFormat      string
	Type           haproxy.RuleType
	CondTest       string
}

func (SetHdr) Create

func (r SetHdr) Create(client api.HAProxyClient, frontend *models.Frontend, ingressACL string) error

func (SetHdr) GetType

func (r SetHdr) GetType() haproxy.RuleType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL