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: 8 Imported by: 1

Documentation

Overview

Copyright 2019 HAProxy Technologies

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckParsePair

func CheckParsePair(parts []string, i *int, str *string)

func CheckWritePair

func CheckWritePair(sb io.StringWriter, key string, value string)

Types

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
}

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

func (*CheckConnect) String

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

func (*CheckExpect) String

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

func (*DoResolve) String

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

func (*Lua) String

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

func (*Reject) String

func (f *Reject) String() string

type ScAddGpc

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

func (*ScAddGpc) GetComment

func (f *ScAddGpc) GetComment() string

func (*ScAddGpc) Parse

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

func (*ScAddGpc) String

func (f *ScAddGpc) String() string

type ScIncGpc

type ScIncGpc struct {
	Idx      string
	ID       string
	Cond     string
	CondTest string
	Comment  string
}

func (*ScIncGpc) GetComment

func (f *ScIncGpc) GetComment() string

func (*ScIncGpc) Parse

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

func (*ScIncGpc) String

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

func (*ScIncGpc1) String

func (f *ScIncGpc1) String() string

type ScSetGpt added in v5.0.2

type ScSetGpt struct {
	ScID     string
	Idx      int64
	Int      *int64
	Expr     common.Expression
	Cond     string
	CondTest string
	Comment  string
}

func (*ScSetGpt) GetComment added in v5.0.2

func (f *ScSetGpt) GetComment() string

func (*ScSetGpt) Parse added in v5.0.2

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

func (*ScSetGpt) String added in v5.0.2

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

func (*SendSpoeGroup) String

func (f *SendSpoeGroup) String() string

type SetBandwidthLimit

type SetBandwidthLimit struct {
	Limit    common.Expression
	Period   common.Expression
	Name     string
	Cond     string
	CondTest string
	Comment  string
}

func (*SetBandwidthLimit) GetComment

func (f *SetBandwidthLimit) GetComment() string

func (*SetBandwidthLimit) Parse

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

func (*SetBandwidthLimit) String

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

func (*SetDstPort) String

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

func (*SetLogLevel) String

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

func (*SetMark) String

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

func (*SetNice) String

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

func (*SetPriorityOffset) String

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

func (*SetSrcPort) String

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

func (*SetTos) String

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

func (*SetVar) String

func (f *SetVar) String() string

type SetVarCheck

type SetVarCheck struct {
	VarScope string
	VarName  string
	Expr     common.Expression
	Comment  string
}

func (*SetVarCheck) GetComment

func (f *SetVarCheck) GetComment() string

func (*SetVarCheck) Parse

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

func (*SetVarCheck) String

func (f *SetVarCheck) String() string

type SetVarFmt

type SetVarFmt struct {
	VarScope string
	VarName  string
	Fmt      common.Expression
	Cond     string
	CondTest string
	Comment  string
}

func (*SetVarFmt) GetComment

func (f *SetVarFmt) GetComment() string

func (*SetVarFmt) Parse

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

func (*SetVarFmt) String

func (f *SetVarFmt) String() string

type SetVarFmtCheck

type SetVarFmtCheck struct {
	VarScope string
	VarName  string
	Format   common.Expression
	Comment  string
}

func (*SetVarFmtCheck) GetComment

func (f *SetVarFmtCheck) GetComment() string

func (*SetVarFmtCheck) Parse

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

func (*SetVarFmtCheck) String

func (f *SetVarFmtCheck) String() string

type SilentDrop

type SilentDrop struct {
	RstTTL   int64
	Cond     string
	CondTest string
	Comment  string
}

func (*SilentDrop) GetComment

func (f *SilentDrop) GetComment() string

func (*SilentDrop) Parse

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

func (*SilentDrop) String

func (f *SilentDrop) String() string

type TrackSc

type TrackSc struct {
	Type         TrackScT
	StickCounter int64
	Key          string
	Table        string
	Comment      string
	Cond         string
	CondTest     string
}

func (*TrackSc) GetComment

func (f *TrackSc) GetComment() string

func (*TrackSc) Parse

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

func (*TrackSc) String

func (f *TrackSc) String() string

type TrackScT

type TrackScT string
const (
	TrackScType TrackScT = "track-sc"
)

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

func (*UnsetVar) String

func (f *UnsetVar) String() string

type UnsetVarCheck

type UnsetVarCheck struct {
	Scope   string
	Name    string
	Comment string
}

func (*UnsetVarCheck) GetComment

func (f *UnsetVarCheck) GetComment() string

func (*UnsetVarCheck) Parse

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

func (*UnsetVarCheck) String

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

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

func (*UseService) String

func (us *UseService) String() string

Jump to

Keyboard shortcuts

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