actions

package
v5.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowedErrorCode

func AllowedErrorCode(code int64) bool

func AllowedErrorStatusCode

func AllowedErrorStatusCode(code int64) bool

func IsPayload

func IsPayload(in string) bool

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, parserType types.ParserType, 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, parserType types.ParserType, 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, parserType types.ParserType, 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, parserType types.ParserType, comment string) error

func (*Auth) String

func (f *Auth) String() string

type CacheStore

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

func (*CacheStore) GetComment

func (f *CacheStore) GetComment() string

func (*CacheStore) Parse

func (f *CacheStore) Parse(parts []string, parserType types.ParserType, comment string) error

func (*CacheStore) String

func (f *CacheStore) 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, parserType types.ParserType, 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, parserType types.ParserType, 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, parserType types.ParserType, comment string) error

func (*CheckComment) String

func (c *CheckComment) 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, parserType types.ParserType, comment string) error

func (*CheckDisableOn404) String

func (c *CheckDisableOn404) 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, parserType types.ParserType, 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, parserType types.ParserType, 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, parserType types.ParserType, comment string) error

func (*DelACL) String

func (f *DelACL) String() string

type DelHeader

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

func (*DelHeader) GetComment

func (f *DelHeader) GetComment() string

func (*DelHeader) Parse

func (f *DelHeader) Parse(parts []string, parserType types.ParserType, 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, parserType types.ParserType, comment string) error

func (*DelMap) String

func (f *DelMap) String() string

type Deny

type Deny struct {
	Comment       string
	Status        *int64
	ContentType   string
	ContentFormat string
	Content       string
	Hdrs          []*Hdr
	Cond          string
	CondTest      string
}

func (*Deny) GetComment

func (f *Deny) GetComment() string

func (*Deny) Parse

func (f *Deny) Parse(parts []string, parserType types.ParserType, 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, parserType types.ParserType, comment string) error

func (*DisableL7Retry) String

func (f *DisableL7Retry) 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, parserType types.ParserType, comment string) error

func (*EarlyHint) String

func (f *EarlyHint) String() string

type Hdr

type Hdr struct {
	Name string
	Fmt  string
}

type NormalizeURI

type NormalizeURI struct {
	Normalizer string
	Full       bool
	Strict     bool
	Cond       string
	CondTest   string
	Comment    string
}

func (*NormalizeURI) GetComment

func (f *NormalizeURI) GetComment() string

func (*NormalizeURI) Parse

func (f *NormalizeURI) Parse(parts []string, parserType types.ParserType, comment string) error

func (*NormalizeURI) String

func (f *NormalizeURI) 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, parserType types.ParserType, comment string) error

func (*Redirect) String

func (f *Redirect) 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, parserType types.ParserType, 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, parserType types.ParserType, comment string) error

func (*ReplacePath) String

func (f *ReplacePath) String() string

type ReplacePathQ

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

func (*ReplacePathQ) GetComment

func (f *ReplacePathQ) GetComment() string

func (*ReplacePathQ) Parse

func (f *ReplacePathQ) Parse(parts []string, parserType types.ParserType, comment string) error

func (*ReplacePathQ) String

func (f *ReplacePathQ) 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, parserType types.ParserType, 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, parserType types.ParserType, comment string) error

func (*ReplaceValue) String

func (f *ReplaceValue) String() string

type Return

type Return struct {
	Comment       string
	Status        *int64
	ContentType   string
	ContentFormat string
	Content       string
	Hdrs          []*Hdr
	Cond          string
	CondTest      string
}

func (*Return) GetComment

func (f *Return) GetComment() string

func (*Return) Parse

func (f *Return) Parse(parts []string, parserType types.ParserType, comment string) error

func (*Return) String

func (f *Return) 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, parserType types.ParserType, comment string) error

func (*SetHeader) String

func (f *SetHeader) 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, parserType types.ParserType, comment string) error

func (*SetMap) String

func (f *SetMap) 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, parserType types.ParserType, comment string) error

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

func (*SetMethod) String

func (f *SetMethod) 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, parserType types.ParserType, comment string) error

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

func (*SetPath) String

func (f *SetPath) String() string

type SetPathQ

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

func (*SetPathQ) GetComment

func (f *SetPathQ) GetComment() string

func (*SetPathQ) Parse

func (f *SetPathQ) Parse(parts []string, parserType types.ParserType, comment string) error

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

func (*SetPathQ) String

func (f *SetPathQ) 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, parserType types.ParserType, 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, parserType types.ParserType, comment string) error

func (*SetSrc) String

func (f *SetSrc) 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, parserType types.ParserType, comment string) error

func (*SetStatus) String

func (f *SetStatus) String() string

type SetTimeout

type SetTimeout struct {
	Type     string
	Timeout  string
	Cond     string
	CondTest string
	Comment  string
}

func (*SetTimeout) GetComment

func (f *SetTimeout) GetComment() string

func (*SetTimeout) Parse

func (f *SetTimeout) Parse(parts []string, parserType types.ParserType, comment string) error

func (*SetTimeout) String

func (f *SetTimeout) 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, parserType types.ParserType, comment string) error

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

func (*SetURI) String

func (f *SetURI) String() string

type Status

type Status struct {
	Comment       string
	Status        *int64
	ContentType   string
	ContentFormat string
	Content       string
	Hdrs          []*Hdr
}

func (*Status) GetComment

func (f *Status) GetComment() string

func (*Status) Parse

func (f *Status) Parse(parts []string, parserType types.ParserType, comment string) error

Parse parses http-error status <code> [content-type <type>] [ { default-errorfiles | errorfile <file> | errorfiles <name> | file <file> | lf-file <file> | string <str> | lf-string <fmt> } ] [ hdr <name> <fmt> ]*

func (*Status) String

func (f *Status) 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, parserType types.ParserType, comment string) error

func (*StrictMode) String

func (f *StrictMode) String() string

type Tarpit

type Tarpit struct {
	Comment       string
	Status        *int64
	ContentType   string
	ContentFormat string
	Content       string
	Hdrs          []*Hdr
	Cond          string
	CondTest      string
}

func (*Tarpit) GetComment

func (f *Tarpit) GetComment() string

func (*Tarpit) Parse

func (f *Tarpit) Parse(parts []string, parserType types.ParserType, comment string) error

func (*Tarpit) String

func (f *Tarpit) String() string

type WaitForBody

type WaitForBody struct {
	Time     string
	AtLeast  string
	Cond     string
	CondTest string
	Comment  string
}

func (*WaitForBody) GetComment

func (f *WaitForBody) GetComment() string

func (*WaitForBody) Parse

func (f *WaitForBody) Parse(parts []string, parserType types.ParserType, comment string) error

func (*WaitForBody) String

func (f *WaitForBody) 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, parserType types.ParserType, 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