actions

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddACL

type AddACL struct {
	FileName string
	KeyFmt   string
	Cond     string
	CondTest string
	Comment  string
}

func (*AddACL) GetComment

func (f *AddACL) GetComment() string

func (*AddACL) Parse

func (f *AddACL) Parse(parts []string, comment string) error

func (*AddACL) String

func (f *AddACL) String() string

type AddHeader

type AddHeader struct {
	Name     string
	Fmt      string
	Cond     string
	CondTest string
	Comment  string
}

func (*AddHeader) GetComment

func (f *AddHeader) GetComment() string

func (*AddHeader) Parse

func (f *AddHeader) Parse(parts []string, comment string) error

func (*AddHeader) String

func (f *AddHeader) String() string

type Allow

type Allow struct {
	Cond     string
	CondTest string
	Comment  string
}

func (*Allow) GetComment

func (f *Allow) GetComment() string

func (*Allow) Parse

func (f *Allow) Parse(parts []string, comment string) error

func (*Allow) String

func (f *Allow) String() string

type Auth

type Auth struct {
	Realm    string
	Cond     string
	CondTest string
	Comment  string
}

func (*Auth) GetComment

func (f *Auth) GetComment() string

func (*Auth) Parse

func (f *Auth) Parse(parts []string, comment string) error

func (*Auth) String

func (f *Auth) String() string

type CacheUse

type CacheUse struct {
	Name     string
	Cond     string
	CondTest string
	Comment  string
}

func (*CacheUse) GetComment

func (f *CacheUse) GetComment() string

func (*CacheUse) Parse

func (f *CacheUse) Parse(parts []string, comment string) error

func (*CacheUse) String

func (f *CacheUse) String() string

type Capture

type Capture struct {
	Sample   string
	Len      *int64 // Has to be > 0.
	SlotID   *int64
	Cond     string
	CondTest string
	Comment  string
}

func (*Capture) GetComment

func (f *Capture) GetComment() string

func (*Capture) Parse

func (f *Capture) Parse(parts []string, comment string) error

func (*Capture) String

func (f *Capture) String() string

type CheckComment

type CheckComment struct {
	LogMessage string
	Comment    string
}

http-check comment <string>

func (*CheckComment) GetComment

func (c *CheckComment) GetComment() string

func (*CheckComment) Parse

func (c *CheckComment) Parse(parts []string, comment string) error

func (*CheckComment) String

func (c *CheckComment) String() string

type CheckConnect

type CheckConnect struct {
	Port         string
	Addr         string
	SNI          string
	ALPN         string
	Proto        string
	CheckComment string
	Comment      string
	Default      bool
	SendProxy    bool
	ViaSOCKS4    bool
	SSL          bool
	Linger       bool
}

http-check connect [default] [port <expr>] [addr <ip>] [send-proxy]

[via-socks4] [ssl] [sni <sni>] [alpn <alpn>] [linger]
[proto <name>] [comment <msg>]

func (*CheckConnect) GetComment

func (c *CheckConnect) GetComment() string

func (*CheckConnect) Parse

func (c *CheckConnect) Parse(parts []string, comment string) error

func (*CheckConnect) String

func (c *CheckConnect) String() string

type CheckDisableOn404

type CheckDisableOn404 struct {
	Comment string
}

http-check disable-on-404

func (*CheckDisableOn404) GetComment

func (c *CheckDisableOn404) GetComment() string

func (*CheckDisableOn404) Parse

func (c *CheckDisableOn404) Parse(parts []string, comment string) error

func (*CheckDisableOn404) String

func (c *CheckDisableOn404) String() string

type CheckExpect

type CheckExpect struct {
	MinRecv         *int64
	CheckComment    string
	OKStatus        string
	ErrorStatus     string
	TimeoutStatus   string
	OnSuccess       string
	OnError         string
	StatusCode      string
	ExclamationMark bool
	Match           string
	Pattern         string
	Comment         string
}

http-check expect [min-recv <int>] [comment <msg>]

[ok-status <st>] [error-status <st>] [tout-status <st>]
[on-success <fmt>] [on-error <fmt>] [status-code <expr>]
[!] <match> <pattern>

func (*CheckExpect) GetComment

func (c *CheckExpect) GetComment() string

func (*CheckExpect) Parse

func (c *CheckExpect) Parse(parts []string, comment string) error

func (*CheckExpect) String

func (c *CheckExpect) String() string

type CheckSend

type CheckSend struct {
	Method        string
	URI           string
	URILogFormat  string
	Version       string
	Header        []CheckSendHeader
	Body          string
	BodyLogFormat string
	CheckComment  string
	Comment       string
}

http-check send [meth <method>] [{ uri <uri> | uri-lf <fmt> }>] [ver <version>]

[hdr <name> <fmt>]* [{ body <string> | body-lf <fmt> }]
[comment <msg>]

func (*CheckSend) GetComment

func (c *CheckSend) GetComment() string

func (*CheckSend) Parse

func (c *CheckSend) Parse(parts []string, comment string) error

func (*CheckSend) String

func (c *CheckSend) String() string

type CheckSendHeader

type CheckSendHeader struct {
	Name   string
	Format string
}

type CheckSendState

type CheckSendState struct {
	Comment string
}

http-check send-state

func (*CheckSendState) GetComment

func (c *CheckSendState) GetComment() string

func (*CheckSendState) Parse

func (c *CheckSendState) Parse(parts []string, comment string) error

func (*CheckSendState) String

func (c *CheckSendState) String() string

type DelACL

type DelACL struct {
	FileName string
	KeyFmt   string
	Cond     string
	CondTest string
	Comment  string
}

func (*DelACL) GetComment

func (f *DelACL) GetComment() string

func (*DelACL) Parse

func (f *DelACL) Parse(parts []string, comment string) error

func (*DelACL) String

func (f *DelACL) String() string

type DelHeader

type DelHeader struct {
	Name     string
	Cond     string
	CondTest string
	Comment  string
}

func (*DelHeader) GetComment

func (f *DelHeader) GetComment() string

func (*DelHeader) Parse

func (f *DelHeader) Parse(parts []string, comment string) error

Parse parses { http-request | http-response } del-header <name> [ { if | unless } <condition> ]

func (*DelHeader) String

func (f *DelHeader) String() string

type DelMap

type DelMap struct {
	FileName string
	KeyFmt   string
	Cond     string
	CondTest string
	Comment  string
}

func (*DelMap) GetComment

func (f *DelMap) GetComment() string

func (*DelMap) Parse

func (f *DelMap) Parse(parts []string, comment string) error

func (*DelMap) String

func (f *DelMap) String() string

type Deny

type Deny struct {
	DenyStatus string
	Cond       string
	CondTest   string
	Comment    string
}

func (*Deny) GetComment

func (f *Deny) GetComment() string

func (*Deny) Parse

func (f *Deny) Parse(parts []string, comment string) error

func (*Deny) String

func (f *Deny) String() string

type DisableL7Retry

type DisableL7Retry struct {
	Name     string
	Cond     string
	CondTest string
	Comment  string
}

func (*DisableL7Retry) GetComment

func (f *DisableL7Retry) GetComment() string

func (*DisableL7Retry) Parse

func (f *DisableL7Retry) Parse(parts []string, comment string) error

func (*DisableL7Retry) String

func (f *DisableL7Retry) String() string

type DoResolve

type DoResolve struct {
	Var       string
	Resolvers string
	Protocol  string
	Expr      common.Expression
	Cond      string
	CondTest  string
	Comment   string
}

func (*DoResolve) GetComment

func (f *DoResolve) GetComment() string

func (*DoResolve) Parse

func (f *DoResolve) Parse(parts []string, comment string) error

func (*DoResolve) String

func (f *DoResolve) String() string

type EarlyHint

type EarlyHint struct {
	Name     string
	Fmt      string
	Cond     string
	CondTest string
	Comment  string
}

func (*EarlyHint) GetComment

func (f *EarlyHint) GetComment() string

func (*EarlyHint) Parse

func (f *EarlyHint) Parse(parts []string, comment string) error

func (*EarlyHint) String

func (f *EarlyHint) String() string

type Lua

type Lua struct {
	Action   string
	Params   string
	Cond     string
	CondTest string
	Comment  string
}

func (*Lua) GetComment

func (f *Lua) GetComment() string

func (*Lua) Parse

func (f *Lua) Parse(parts []string, comment string) error

func (*Lua) String

func (f *Lua) String() string

type Redirect

type Redirect struct {
	Type     string
	Value    string
	Code     string
	Option   string
	Cond     string
	CondTest string
	Comment  string
}

func (*Redirect) GetComment

func (f *Redirect) GetComment() string

func (*Redirect) Parse

func (f *Redirect) Parse(parts []string, comment string) error

func (*Redirect) String

func (f *Redirect) String() string

type Reject

type Reject struct {
	Cond     string
	CondTest string
	Comment  string
}

func (*Reject) GetComment

func (f *Reject) GetComment() string

func (*Reject) Parse

func (f *Reject) Parse(parts []string, comment string) error

func (*Reject) String

func (f *Reject) String() string

type ReplaceHeader

type ReplaceHeader struct {
	Name       string
	MatchRegex string
	ReplaceFmt string
	Cond       string
	CondTest   string
	Comment    string
}

func (*ReplaceHeader) GetComment

func (f *ReplaceHeader) GetComment() string

func (*ReplaceHeader) Parse

func (f *ReplaceHeader) Parse(parts []string, comment string) error

func (*ReplaceHeader) String

func (f *ReplaceHeader) String() string

type ReplacePath

type ReplacePath struct {
	MatchRegex string
	ReplaceFmt string
	Cond       string
	CondTest   string
	Comment    string
}

func (*ReplacePath) GetComment

func (f *ReplacePath) GetComment() string

func (*ReplacePath) Parse

func (f *ReplacePath) Parse(parts []string, comment string) error

func (*ReplacePath) String

func (f *ReplacePath) String() string

type ReplaceURI

type ReplaceURI struct {
	MatchRegex string
	ReplaceFmt string
	Cond       string
	CondTest   string
	Comment    string
}

func (*ReplaceURI) GetComment

func (f *ReplaceURI) GetComment() string

func (*ReplaceURI) Parse

func (f *ReplaceURI) Parse(parts []string, comment string) error

func (*ReplaceURI) String

func (f *ReplaceURI) String() string

type ReplaceValue

type ReplaceValue struct {
	Name       string
	MatchRegex string
	ReplaceFmt string
	Cond       string
	CondTest   string
	Comment    string
}

func (*ReplaceValue) GetComment

func (f *ReplaceValue) GetComment() string

func (*ReplaceValue) Parse

func (f *ReplaceValue) Parse(parts []string, comment string) error

func (*ReplaceValue) String

func (f *ReplaceValue) String() string

type ScIncGpc0

type ScIncGpc0 struct {
	ID       string
	Cond     string
	CondTest string
	Comment  string
}

func (*ScIncGpc0) GetComment

func (f *ScIncGpc0) GetComment() string

func (*ScIncGpc0) Parse

func (f *ScIncGpc0) Parse(parts []string, comment string) error

func (*ScIncGpc0) String

func (f *ScIncGpc0) String() string

type ScIncGpc1

type ScIncGpc1 struct {
	ID       string
	Cond     string
	CondTest string
	Comment  string
}

func (*ScIncGpc1) GetComment

func (f *ScIncGpc1) GetComment() string

func (*ScIncGpc1) Parse

func (f *ScIncGpc1) Parse(parts []string, comment string) error

func (*ScIncGpc1) String

func (f *ScIncGpc1) String() string

type ScSetGpt0

type ScSetGpt0 struct {
	ID       string
	Int      *int64
	Expr     common.Expression
	Cond     string
	CondTest string
	Comment  string
}

func (*ScSetGpt0) GetComment

func (f *ScSetGpt0) GetComment() string

func (*ScSetGpt0) Parse

func (f *ScSetGpt0) Parse(parts []string, comment string) error

func (*ScSetGpt0) String

func (f *ScSetGpt0) String() string

type SendSpoeGroup

type SendSpoeGroup struct {
	Engine   string
	Group    string
	Cond     string
	CondTest string
	Comment  string
}

func (*SendSpoeGroup) GetComment

func (f *SendSpoeGroup) GetComment() string

func (*SendSpoeGroup) Parse

func (f *SendSpoeGroup) Parse(parts []string, comment string) error

func (*SendSpoeGroup) String

func (f *SendSpoeGroup) String() string

type SetDst

type SetDst struct {
	Expr     common.Expression
	Cond     string
	CondTest string
	Comment  string
}

func (*SetDst) GetComment

func (f *SetDst) GetComment() string

func (*SetDst) Parse

func (f *SetDst) Parse(parts []string, comment string) error

func (*SetDst) String

func (f *SetDst) String() string

type SetDstPort

type SetDstPort struct {
	Expr     common.Expression
	Cond     string
	CondTest string
	Comment  string
}

func (*SetDstPort) GetComment

func (f *SetDstPort) GetComment() string

func (*SetDstPort) Parse

func (f *SetDstPort) Parse(parts []string, comment string) error

func (*SetDstPort) String

func (f *SetDstPort) String() string

type SetHeader

type SetHeader struct {
	Name     string
	Fmt      string
	Cond     string
	CondTest string
	Comment  string
}

func (*SetHeader) GetComment

func (f *SetHeader) GetComment() string

func (*SetHeader) Parse

func (f *SetHeader) Parse(parts []string, comment string) error

func (*SetHeader) String

func (f *SetHeader) String() string

type SetLogLevel

type SetLogLevel struct {
	Level    string
	Cond     string
	CondTest string
	Comment  string
}

func (*SetLogLevel) GetComment

func (f *SetLogLevel) GetComment() string

func (*SetLogLevel) Parse

func (f *SetLogLevel) Parse(parts []string, comment string) error

func (*SetLogLevel) String

func (f *SetLogLevel) String() string

type SetMap

type SetMap struct {
	FileName string
	KeyFmt   string
	ValueFmt string
	Cond     string
	CondTest string
	Comment  string
}

func (*SetMap) GetComment

func (f *SetMap) GetComment() string

func (*SetMap) Parse

func (f *SetMap) Parse(parts []string, comment string) error

func (*SetMap) String

func (f *SetMap) String() string

type SetMark

type SetMark struct {
	Value    string
	Cond     string
	CondTest string
	Comment  string
}

func (*SetMark) GetComment

func (f *SetMark) GetComment() string

func (*SetMark) Parse

func (f *SetMark) Parse(parts []string, comment string) error

func (*SetMark) String

func (f *SetMark) String() string

type SetMethod

type SetMethod struct {
	Fmt      string
	Cond     string
	CondTest string
	Comment  string
}

func (*SetMethod) GetComment

func (f *SetMethod) GetComment() string

func (*SetMethod) Parse

func (f *SetMethod) Parse(parts []string, comment string) error

Parse parses http-request set-path <fmt> [ { if | unless } <condition> ]

func (*SetMethod) String

func (f *SetMethod) String() string

type SetNice

type SetNice struct {
	Value    string
	Cond     string
	CondTest string
	Comment  string
}

func (*SetNice) GetComment

func (f *SetNice) GetComment() string

func (*SetNice) Parse

func (f *SetNice) Parse(parts []string, comment string) error

func (*SetNice) String

func (f *SetNice) String() string

type SetPath

type SetPath struct {
	Fmt      string
	Cond     string
	CondTest string
	Comment  string
}

func (*SetPath) GetComment

func (f *SetPath) GetComment() string

func (*SetPath) Parse

func (f *SetPath) Parse(parts []string, comment string) error

Parse parses http-request set-path <fmt> [ { if | unless } <condition> ]

func (*SetPath) String

func (f *SetPath) String() string

type SetPriorityClass

type SetPriorityClass struct {
	Expr     common.Expression
	Cond     string
	CondTest string
	Comment  string
}

func (*SetPriorityClass) GetComment

func (f *SetPriorityClass) GetComment() string

func (*SetPriorityClass) Parse

func (f *SetPriorityClass) Parse(parts []string, comment string) error

func (*SetPriorityClass) String

func (f *SetPriorityClass) String() string

type SetPriorityOffset

type SetPriorityOffset struct {
	Expr     common.Expression
	Cond     string
	CondTest string
	Comment  string
}

func (*SetPriorityOffset) GetComment

func (f *SetPriorityOffset) GetComment() string

func (*SetPriorityOffset) Parse

func (f *SetPriorityOffset) Parse(parts []string, comment string) error

func (*SetPriorityOffset) String

func (f *SetPriorityOffset) String() string

type SetQuery

type SetQuery struct {
	Fmt      string
	Cond     string
	CondTest string
	Comment  string
}

func (*SetQuery) GetComment

func (f *SetQuery) GetComment() string

func (*SetQuery) Parse

func (f *SetQuery) Parse(parts []string, comment string) error

Parse parses http-request set-query <fmt> [ { if | unless } <condition> ]

func (*SetQuery) String

func (f *SetQuery) String() string

type SetSrc

type SetSrc struct {
	Expr     common.Expression
	Cond     string
	CondTest string
	Comment  string
}

func (*SetSrc) GetComment

func (f *SetSrc) GetComment() string

func (*SetSrc) Parse

func (f *SetSrc) Parse(parts []string, comment string) error

func (*SetSrc) String

func (f *SetSrc) String() string

type SetSrcPort

type SetSrcPort struct {
	Expr     common.Expression
	Cond     string
	CondTest string
	Comment  string
}

func (*SetSrcPort) GetComment

func (f *SetSrcPort) GetComment() string

func (*SetSrcPort) Parse

func (f *SetSrcPort) Parse(parts []string, comment string) error

func (*SetSrcPort) String

func (f *SetSrcPort) String() string

type SetStatus

type SetStatus struct {
	Status   string
	Reason   string
	Cond     string
	CondTest string
	Comment  string
}

func (*SetStatus) GetComment

func (f *SetStatus) GetComment() string

func (*SetStatus) Parse

func (f *SetStatus) Parse(parts []string, comment string) error

func (*SetStatus) String

func (f *SetStatus) String() string

type SetTos

type SetTos struct {
	Value    string
	Cond     string
	CondTest string
	Comment  string
}

func (*SetTos) GetComment

func (f *SetTos) GetComment() string

func (*SetTos) Parse

func (f *SetTos) Parse(parts []string, comment string) error

func (*SetTos) String

func (f *SetTos) String() string

type SetURI

type SetURI struct {
	Fmt      string
	Cond     string
	CondTest string
	Comment  string
}

func (*SetURI) GetComment

func (f *SetURI) GetComment() string

func (*SetURI) Parse

func (f *SetURI) Parse(parts []string, comment string) error

Parse parses http-request set-uri <fmt> [ { if | unless } <condition> ]

func (*SetURI) String

func (f *SetURI) String() string

type SetVar

type SetVar struct {
	VarScope string
	VarName  string
	Expr     common.Expression
	Cond     string
	CondTest string
	Comment  string
}

func (*SetVar) GetComment

func (f *SetVar) GetComment() string

func (*SetVar) Parse

func (f *SetVar) Parse(parts []string, comment string) error

func (*SetVar) String

func (f *SetVar) String() string

type SilentDrop

type SilentDrop struct {
	Cond     string
	CondTest string
	Comment  string
}

func (*SilentDrop) GetComment

func (f *SilentDrop) GetComment() string

func (*SilentDrop) Parse

func (f *SilentDrop) Parse(parts []string, comment string) error

func (*SilentDrop) String

func (f *SilentDrop) String() string

type StrictMode

type StrictMode struct {
	Mode     string
	Cond     string
	CondTest string
	Comment  string
}

func (*StrictMode) GetComment

func (f *StrictMode) GetComment() string

func (*StrictMode) Parse

func (f *StrictMode) Parse(parts []string, comment string) error

func (*StrictMode) String

func (f *StrictMode) String() string

type Tarpit

type Tarpit struct {
	DenyStatus string
	Cond       string
	CondTest   string
	Comment    string
}

func (*Tarpit) GetComment

func (f *Tarpit) GetComment() string

func (*Tarpit) Parse

func (f *Tarpit) Parse(parts []string, comment string) error

func (*Tarpit) String

func (f *Tarpit) String() string

type TrackSc0

type TrackSc0 struct {
	Key      string
	Table    string
	Comment  string
	Cond     string
	CondTest string
}

func (*TrackSc0) GetComment

func (f *TrackSc0) GetComment() string

func (*TrackSc0) Parse

func (f *TrackSc0) Parse(parts []string, comment string) error

func (*TrackSc0) String

func (f *TrackSc0) String() string

type TrackSc1

type TrackSc1 struct {
	Key      string
	Table    string
	Comment  string
	Cond     string
	CondTest string
}

func (*TrackSc1) GetComment

func (f *TrackSc1) GetComment() string

func (*TrackSc1) Parse

func (f *TrackSc1) Parse(parts []string, comment string) error

func (*TrackSc1) String

func (f *TrackSc1) String() string

type TrackSc2

type TrackSc2 struct {
	Key      string
	Table    string
	Comment  string
	Cond     string
	CondTest string
}

func (*TrackSc2) GetComment

func (f *TrackSc2) GetComment() string

func (*TrackSc2) Parse

func (f *TrackSc2) Parse(parts []string, comment string) error

func (*TrackSc2) String

func (f *TrackSc2) String() string

type UnsetVar

type UnsetVar struct {
	Scope    string
	Name     string
	Cond     string
	CondTest string
	Comment  string
}

func (*UnsetVar) GetComment

func (f *UnsetVar) GetComment() string

func (*UnsetVar) Parse

func (f *UnsetVar) Parse(parts []string, comment string) error

func (*UnsetVar) String

func (f *UnsetVar) String() string

type UseService

type UseService struct {
	Name     string
	Cond     string
	CondTest string
	Comment  string
}

func (*UseService) GetComment

func (us *UseService) GetComment() string

func (*UseService) Parse

func (us *UseService) Parse(parts []string, comment string) error

Parse parses http-request user-service <name> [ { if | unless } <condition> ]

func (*UseService) String

func (us *UseService) String() string

type WaitForHandshake

type WaitForHandshake struct {
	Cond     string
	CondTest string
	Comment  string
}

func (*WaitForHandshake) GetComment

func (f *WaitForHandshake) GetComment() string

func (*WaitForHandshake) Parse

func (f *WaitForHandshake) Parse(parts []string, comment string) error

func (*WaitForHandshake) String

func (f *WaitForHandshake) String() string

Jump to

Keyboard shortcuts

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