v32ee

package
v0.2.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package v32ee provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.1 DO NOT EDIT.

Index

Constants

View Source
const (
	Basic_authScopes basicAuthContextKey = "basic_auth.Scopes"
)

Variables

This section is empty.

Functions

func NewAddCaEntryRequestWithBody

func NewAddCaEntryRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)

NewAddCaEntryRequestWithBody generates requests for AddCaEntry with any type of body

func NewAddMapEntryRequest

func NewAddMapEntryRequest(server string, parentName ParentName, params *AddMapEntryParams, body AddMapEntryJSONRequestBody) (*http.Request, error)

NewAddMapEntryRequest calls the generic AddMapEntry builder with application/json body

func NewAddMapEntryRequestWithBody

func NewAddMapEntryRequestWithBody(server string, parentName ParentName, params *AddMapEntryParams, contentType string, body io.Reader) (*http.Request, error)

NewAddMapEntryRequestWithBody generates requests for AddMapEntry with any type of body

func NewCreateCaFileRequestWithBody

func NewCreateCaFileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateCaFileRequestWithBody generates requests for CreateCaFile with any type of body

func NewCreateStorageGeneralFileRequestWithBody

func NewCreateStorageGeneralFileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateStorageGeneralFileRequestWithBody generates requests for CreateStorageGeneralFile with any type of body

func NewCreateStorageMapFileRequestWithBody

func NewCreateStorageMapFileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateStorageMapFileRequestWithBody generates requests for CreateStorageMapFile with any type of body

func NewCreateStorageSSLCertificateRequestWithBody

func NewCreateStorageSSLCertificateRequestWithBody(server string, params *CreateStorageSSLCertificateParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateStorageSSLCertificateRequestWithBody generates requests for CreateStorageSSLCertificate with any type of body

func NewCreateStorageSSLCrtListFileRequestWithBody

func NewCreateStorageSSLCrtListFileRequestWithBody(server string, params *CreateStorageSSLCrtListFileParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateStorageSSLCrtListFileRequestWithBody generates requests for CreateStorageSSLCrtListFile with any type of body

func NewDeleteCaFileRequest

func NewDeleteCaFileRequest(server string, name string) (*http.Request, error)

NewDeleteCaFileRequest generates requests for DeleteCaFile

func NewDeleteRuntimeMapEntryRequest

func NewDeleteRuntimeMapEntryRequest(server string, parentName ParentName, id string, params *DeleteRuntimeMapEntryParams) (*http.Request, error)

NewDeleteRuntimeMapEntryRequest generates requests for DeleteRuntimeMapEntry

func NewDeleteStorageGeneralFileRequest

func NewDeleteStorageGeneralFileRequest(server string, name string) (*http.Request, error)

NewDeleteStorageGeneralFileRequest generates requests for DeleteStorageGeneralFile

func NewDeleteStorageMapRequest

func NewDeleteStorageMapRequest(server string, name string) (*http.Request, error)

NewDeleteStorageMapRequest generates requests for DeleteStorageMap

func NewDeleteStorageSSLCertificateRequest

func NewDeleteStorageSSLCertificateRequest(server string, name string, params *DeleteStorageSSLCertificateParams) (*http.Request, error)

NewDeleteStorageSSLCertificateRequest generates requests for DeleteStorageSSLCertificate

func NewDeleteStorageSSLCrtListFileRequest

func NewDeleteStorageSSLCrtListFileRequest(server string, name string, params *DeleteStorageSSLCrtListFileParams) (*http.Request, error)

NewDeleteStorageSSLCrtListFileRequest generates requests for DeleteStorageSSLCrtListFile

func NewGetAllCaFilesRequest

func NewGetAllCaFilesRequest(server string) (*http.Request, error)

NewGetAllCaFilesRequest generates requests for GetAllCaFiles

func NewGetAllCertsRequest

func NewGetAllCertsRequest(server string) (*http.Request, error)

NewGetAllCertsRequest generates requests for GetAllCerts

func NewGetAllStorageGeneralFilesRequest

func NewGetAllStorageGeneralFilesRequest(server string) (*http.Request, error)

NewGetAllStorageGeneralFilesRequest generates requests for GetAllStorageGeneralFiles

func NewGetAllStorageMapFilesRequest

func NewGetAllStorageMapFilesRequest(server string) (*http.Request, error)

NewGetAllStorageMapFilesRequest generates requests for GetAllStorageMapFiles

func NewGetAllStorageSSLCertificatesRequest

func NewGetAllStorageSSLCertificatesRequest(server string) (*http.Request, error)

NewGetAllStorageSSLCertificatesRequest generates requests for GetAllStorageSSLCertificates

func NewGetAllStorageSSLCrtListFilesRequest

func NewGetAllStorageSSLCrtListFilesRequest(server string) (*http.Request, error)

NewGetAllStorageSSLCrtListFilesRequest generates requests for GetAllStorageSSLCrtListFiles

func NewGetBackendRequest

func NewGetBackendRequest(server string, name string, params *GetBackendParams) (*http.Request, error)

NewGetBackendRequest generates requests for GetBackend

func NewGetBotmgmtProfileRequest

func NewGetBotmgmtProfileRequest(server string, name string, params *GetBotmgmtProfileParams) (*http.Request, error)

NewGetBotmgmtProfileRequest generates requests for GetBotmgmtProfile

func NewGetCaFileRequest

func NewGetCaFileRequest(server string, name string) (*http.Request, error)

NewGetCaFileRequest generates requests for GetCaFile

func NewGetCaptchaRequest

func NewGetCaptchaRequest(server string, name string, params *GetCaptchaParams) (*http.Request, error)

NewGetCaptchaRequest generates requests for GetCaptcha

func NewGetConfigurationVersionRequest

func NewGetConfigurationVersionRequest(server string, params *GetConfigurationVersionParams) (*http.Request, error)

NewGetConfigurationVersionRequest generates requests for GetConfigurationVersion

func NewGetHAProxyConfigurationRequest

func NewGetHAProxyConfigurationRequest(server string, params *GetHAProxyConfigurationParams) (*http.Request, error)

NewGetHAProxyConfigurationRequest generates requests for GetHAProxyConfiguration

func NewGetOneStorageGeneralFileRequest

func NewGetOneStorageGeneralFileRequest(server string, name string) (*http.Request, error)

NewGetOneStorageGeneralFileRequest generates requests for GetOneStorageGeneralFile

func NewGetOneStorageMapRequest

func NewGetOneStorageMapRequest(server string, name string) (*http.Request, error)

NewGetOneStorageMapRequest generates requests for GetOneStorageMap

func NewGetOneStorageSSLCertificateRequest

func NewGetOneStorageSSLCertificateRequest(server string, name string) (*http.Request, error)

NewGetOneStorageSSLCertificateRequest generates requests for GetOneStorageSSLCertificate

func NewGetOneStorageSSLCrtListFileRequest

func NewGetOneStorageSSLCrtListFileRequest(server string, name string) (*http.Request, error)

NewGetOneStorageSSLCrtListFileRequest generates requests for GetOneStorageSSLCrtListFile

func NewGetReloadRequest

func NewGetReloadRequest(server string, id string) (*http.Request, error)

NewGetReloadRequest generates requests for GetReload

func NewGetUDPlbRequest

func NewGetUDPlbRequest(server string, name string, params *GetUDPlbParams) (*http.Request, error)

NewGetUDPlbRequest generates requests for GetUDPlb

func NewGetWafGlobalRequest

func NewGetWafGlobalRequest(server string, params *GetWafGlobalParams) (*http.Request, error)

NewGetWafGlobalRequest generates requests for GetWafGlobal

func NewGetWafProfileRequest

func NewGetWafProfileRequest(server string, name string, params *GetWafProfileParams) (*http.Request, error)

NewGetWafProfileRequest generates requests for GetWafProfile

func NewPostHAProxyConfigurationRequestWithBody

func NewPostHAProxyConfigurationRequestWithBody(server string, params *PostHAProxyConfigurationParams, contentType string, body io.Reader) (*http.Request, error)

NewPostHAProxyConfigurationRequestWithBody generates requests for PostHAProxyConfiguration with any type of body

func NewPostHAProxyConfigurationRequestWithTextBody

func NewPostHAProxyConfigurationRequestWithTextBody(server string, params *PostHAProxyConfigurationParams, body PostHAProxyConfigurationTextRequestBody) (*http.Request, error)

NewPostHAProxyConfigurationRequestWithTextBody calls the generic PostHAProxyConfiguration builder with text/plain body

func NewReplaceCertRequestWithBody

func NewReplaceCertRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)

NewReplaceCertRequestWithBody generates requests for ReplaceCert with any type of body

func NewReplaceRuntimeMapEntryRequest

func NewReplaceRuntimeMapEntryRequest(server string, parentName ParentName, id string, params *ReplaceRuntimeMapEntryParams, body ReplaceRuntimeMapEntryJSONRequestBody) (*http.Request, error)

NewReplaceRuntimeMapEntryRequest calls the generic ReplaceRuntimeMapEntry builder with application/json body

func NewReplaceRuntimeMapEntryRequestWithBody

func NewReplaceRuntimeMapEntryRequestWithBody(server string, parentName ParentName, id string, params *ReplaceRuntimeMapEntryParams, contentType string, body io.Reader) (*http.Request, error)

NewReplaceRuntimeMapEntryRequestWithBody generates requests for ReplaceRuntimeMapEntry with any type of body

func NewReplaceStorageGeneralFileRequestWithBody

func NewReplaceStorageGeneralFileRequestWithBody(server string, name string, params *ReplaceStorageGeneralFileParams, contentType string, body io.Reader) (*http.Request, error)

NewReplaceStorageGeneralFileRequestWithBody generates requests for ReplaceStorageGeneralFile with any type of body

func NewReplaceStorageMapFileRequestWithBody

func NewReplaceStorageMapFileRequestWithBody(server string, name string, params *ReplaceStorageMapFileParams, contentType string, body io.Reader) (*http.Request, error)

NewReplaceStorageMapFileRequestWithBody generates requests for ReplaceStorageMapFile with any type of body

func NewReplaceStorageMapFileRequestWithTextBody

func NewReplaceStorageMapFileRequestWithTextBody(server string, name string, params *ReplaceStorageMapFileParams, body ReplaceStorageMapFileTextRequestBody) (*http.Request, error)

NewReplaceStorageMapFileRequestWithTextBody calls the generic ReplaceStorageMapFile builder with text/plain body

func NewReplaceStorageSSLCertificateRequestWithBody

func NewReplaceStorageSSLCertificateRequestWithBody(server string, name string, params *ReplaceStorageSSLCertificateParams, contentType string, body io.Reader) (*http.Request, error)

NewReplaceStorageSSLCertificateRequestWithBody generates requests for ReplaceStorageSSLCertificate with any type of body

func NewReplaceStorageSSLCertificateRequestWithTextBody

func NewReplaceStorageSSLCertificateRequestWithTextBody(server string, name string, params *ReplaceStorageSSLCertificateParams, body ReplaceStorageSSLCertificateTextRequestBody) (*http.Request, error)

NewReplaceStorageSSLCertificateRequestWithTextBody calls the generic ReplaceStorageSSLCertificate builder with text/plain body

func NewReplaceStorageSSLCrtListFileRequestWithBody

func NewReplaceStorageSSLCrtListFileRequestWithBody(server string, name string, params *ReplaceStorageSSLCrtListFileParams, contentType string, body io.Reader) (*http.Request, error)

NewReplaceStorageSSLCrtListFileRequestWithBody generates requests for ReplaceStorageSSLCrtListFile with any type of body

func NewReplaceStorageSSLCrtListFileRequestWithTextBody

func NewReplaceStorageSSLCrtListFileRequestWithTextBody(server string, name string, params *ReplaceStorageSSLCrtListFileParams, body ReplaceStorageSSLCrtListFileTextRequestBody) (*http.Request, error)

NewReplaceStorageSSLCrtListFileRequestWithTextBody calls the generic ReplaceStorageSSLCrtListFile builder with text/plain body

func NewSetCaFileRequestWithBody

func NewSetCaFileRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)

NewSetCaFileRequestWithBody generates requests for SetCaFile with any type of body

func NewShowRuntimeMapRequest

func NewShowRuntimeMapRequest(server string, parentName ParentName) (*http.Request, error)

NewShowRuntimeMapRequest generates requests for ShowRuntimeMap

Types

type Acl

type Acl struct {
	AclName   string                             `json:"acl_name"`
	Criterion string                             `json:"criterion"`
	Metadata  *map[string]map[string]interface{} `json:"metadata,omitempty"`
	Value     *string                            `json:"value,omitempty"`
}

Acl The use of Access Control Lists (ACL) provides a flexible solution to perform content switching and generally to take decisions based on content extracted from the request, the response or any environmental status.

type Acls

type Acls = []Acl

Acls HAProxy ACL lines array (corresponds to acl directives)

type AddCaEntryMultipartBody

type AddCaEntryMultipartBody struct {
	// FileUpload Payload of the cert entry
	FileUpload openapi_types.File `json:"file_upload"`
}

AddCaEntryMultipartBody defines parameters for AddCaEntry.

type AddCaEntryMultipartRequestBody

type AddCaEntryMultipartRequestBody AddCaEntryMultipartBody

AddCaEntryMultipartRequestBody defines body for AddCaEntry for multipart/form-data ContentType.

type AddMapEntryJSONRequestBody

type AddMapEntryJSONRequestBody = MapEntry

AddMapEntryJSONRequestBody defines body for AddMapEntry for application/json ContentType.

type AddMapEntryParams

type AddMapEntryParams struct {
	// ForceSync If true, immediately syncs changes to disk
	ForceSync *bool `form:"force_sync,omitempty" json:"force_sync,omitempty"`
}

AddMapEntryParams defines parameters for AddMapEntry.

type AlreadyExists

type AlreadyExists = Error

AlreadyExists API Error

type Backend

type Backend struct {
	Abortonclose                         *BackendAbortonclose                         `json:"abortonclose,omitempty"`
	AcceptInvalidHttpResponse            *BackendAcceptInvalidHttpResponse            `json:"accept_invalid_http_response,omitempty"`
	AcceptUnsafeViolationsInHttpResponse *BackendAcceptUnsafeViolationsInHttpResponse `json:"accept_unsafe_violations_in_http_response,omitempty"`

	// AclList HAProxy ACL lines array (corresponds to acl directives)
	AclList          *Acls              `json:"acl_list,omitempty"`
	AdvCheck         *BackendAdvCheck   `json:"adv_check,omitempty"`
	Allbackups       *BackendAllbackups `json:"allbackups,omitempty"`
	Balance          *Balance           `json:"balance,omitempty"`
	CheckTimeout     *int               `json:"check_timeout,omitempty"`
	Checkcache       *BackendCheckcache `json:"checkcache,omitempty"`
	Compression      *Compression       `json:"compression,omitempty"`
	ConnectTimeout   *int               `json:"connect_timeout,omitempty"`
	Cookie           *Cookie            `json:"cookie,omitempty"`
	DefaultServer    *DefaultServer     `json:"default_server,omitempty"`
	Description      *string            `json:"description,omitempty"`
	Disabled         *bool              `json:"disabled,omitempty"`
	DynamicCookieKey *string            `json:"dynamic_cookie_key,omitempty"`

	// EmailAlert Send emails for important log messages.
	EmailAlert               *EmailAlert           `json:"email_alert,omitempty"`
	Enabled                  *bool                 `json:"enabled,omitempty"`
	ErrorFiles               *[]Errorfile          `json:"error_files,omitempty"`
	ErrorFilesFromHTTPErrors *[]Errorfiles         `json:"errorfiles_from_http_errors,omitempty"`
	Errorloc302              *Errorloc             `json:"errorloc302,omitempty"`
	Errorloc303              *Errorloc             `json:"errorloc303,omitempty"`
	ExternalCheck            *BackendExternalCheck `json:"external_check,omitempty"`
	ExternalCheckCommand     *string               `json:"external_check_command,omitempty"`
	ExternalCheckPath        *string               `json:"external_check_path,omitempty"`

	// FilterList HAProxy filters array (corresponds to filter directive)
	FilterList *Filters `json:"filter_list,omitempty"`

	// BackendForcePersist This field is deprecated in favor of force_persist_list, and will be removed in a future release
	BackendForcePersist *struct {
		Cond     BackendForcePersistCond `json:"cond"`
		CondTest string                  `json:"cond_test"`
	} `json:"force_persist,omitempty"`
	ForcePersistList *[]struct {
		Cond     BackendForcePersistListCond `json:"cond"`
		CondTest string                      `json:"cond_test"`
	} `json:"force_persist_list,omitempty"`
	Forwardfor              *Forwardfor                     `json:"forwardfor,omitempty"`
	From                    *string                         `json:"from,omitempty"`
	Fullconn                *int                            `json:"fullconn,omitempty"`
	Guid                    *string                         `json:"guid,omitempty"`
	H1CaseAdjustBogusServer *BackendH1CaseAdjustBogusServer `json:"h1_case_adjust_bogus_server,omitempty"`
	HashBalanceFactor       *int                            `json:"hash_balance_factor,omitempty"`
	HashPreserveAffinity    *BackendHashPreserveAffinity    `json:"hash_preserve_affinity,omitempty"`
	HashType                *HashType                       `json:"hash_type,omitempty"`
	HttpBufferRequest       *BackendHttpBufferRequest       `json:"http-buffer-request,omitempty"`
	HttpDropRequestTrailers *BackendHttpDropRequestTrailers `json:"http-drop-request-trailers,omitempty"`
	HttpNoDelay             *BackendHttpNoDelay             `json:"http-no-delay,omitempty"`
	HttpUseHtx              *BackendHttpUseHtx              `json:"http-use-htx,omitempty"`

	// HttpAfterResponseRuleList HAProxy HTTP after response rules array (corresponds to http-after-response directives)
	HttpAfterResponseRuleList *HttpAfterResponseRules    `json:"http_after_response_rule_list,omitempty"`
	HttpCheckList             *HttpChecks                `json:"http_check_list,omitempty"`
	HttpConnectionMode        *BackendHttpConnectionMode `json:"http_connection_mode,omitempty"`

	// HttpErrorRuleList HAProxy HTTP error rules array (corresponds to http-error directives)
	HttpErrorRuleList    *HttpErrorRules              `json:"http_error_rule_list,omitempty"`
	HttpKeepAliveTimeout *int                         `json:"http_keep_alive_timeout,omitempty"`
	HttpPretendKeepalive *BackendHttpPretendKeepalive `json:"http_pretend_keepalive,omitempty"`
	HttpProxy            *BackendHttpProxy            `json:"http_proxy,omitempty"`

	// HttpRequestRuleList HAProxy HTTP request rules array (corresponds to http-request directives)
	HttpRequestRuleList *HttpRequestRules `json:"http_request_rule_list,omitempty"`
	HttpRequestTimeout  *int              `json:"http_request_timeout,omitempty"`

	// HttpResponseRuleList HAProxy HTTP response rules array (corresponds to http-response directives)
	HttpResponseRuleList    *HttpResponseRules              `json:"http_response_rule_list,omitempty"`
	HttpRestrictReqHdrNames *BackendHttpRestrictReqHdrNames `json:"http_restrict_req_hdr_names,omitempty"`
	HttpReuse               *BackendHttpReuse               `json:"http_reuse,omitempty"`
	HttpSendNameHeader      *string                         `json:"http_send_name_header,omitempty"`
	HttpchkParams           *HttpchkParams                  `json:"httpchk_params,omitempty"`
	Id                      *int                            `json:"id,omitempty"`

	// BackendIgnorePersist This field is deprecated in favor of ignore_persist_list, and will be removed in a future release
	BackendIgnorePersist *struct {
		Cond     BackendIgnorePersistCond `json:"cond"`
		CondTest string                   `json:"cond_test"`
	} `json:"ignore_persist,omitempty"`
	IgnorePersistList *[]struct {
		Cond     BackendIgnorePersistListCond `json:"cond"`
		CondTest string                       `json:"cond_test"`
	} `json:"ignore_persist_list,omitempty"`
	IndependentStreams      *BackendIndependentStreams      `json:"independent_streams,omitempty"`
	LoadServerStateFromFile *BackendLoadServerStateFromFile `json:"load_server_state_from_file,omitempty"`
	LogHealthChecks         *BackendLogHealthChecks         `json:"log_health_checks,omitempty"`
	LogTag                  *string                         `json:"log_tag,omitempty"`

	// LogTargetList HAProxy log target array (corresponds to log directives)
	LogTargetList       *LogTargets                        `json:"log_target_list,omitempty"`
	MaxKeepAliveQueue   *int                               `json:"max_keep_alive_queue,omitempty"`
	Metadata            *map[string]map[string]interface{} `json:"metadata,omitempty"`
	Mode                *BackendMode                       `json:"mode,omitempty"`
	MysqlCheckParams    *MysqlCheckParams                  `json:"mysql_check_params,omitempty"`
	Name                string                             `json:"name"`
	Nolinger            *BackendNolinger                   `json:"nolinger,omitempty"`
	Originalto          *Originalto                        `json:"originalto,omitempty"`
	Persist             *BackendPersist                    `json:"persist,omitempty"`
	PersistRule         *PersistRule                       `json:"persist_rule,omitempty"`
	PgsqlCheckParams    *PgsqlCheckParams                  `json:"pgsql_check_params,omitempty"`
	PreferLastServer    *BackendPreferLastServer           `json:"prefer_last_server,omitempty"`
	QueueTimeout        *int                               `json:"queue_timeout,omitempty"`
	Redispatch          *Redispatch                        `json:"redispatch,omitempty"`
	Retries             *int                               `json:"retries,omitempty"`
	RetryOn             *string                            `json:"retry_on,omitempty"`
	ServerFinTimeout    *int                               `json:"server_fin_timeout,omitempty"`
	ServerStateFileName *string                            `json:"server_state_file_name,omitempty"`

	// ServerSwitchingRuleList HAProxy backend server switching rules array (corresponds to use-server directives)
	ServerSwitchingRuleList *ServerSwitchingRules      `json:"server_switching_rule_list,omitempty"`
	ServerTemplates         *map[string]ServerTemplate `json:"server_templates,omitempty"`
	ServerTimeout           *int                       `json:"server_timeout,omitempty"`
	Servers                 *map[string]Server         `json:"servers,omitempty"`
	SmtpchkParams           *SmtpchkParams             `json:"smtpchk_params,omitempty"`
	Source                  *Source                    `json:"source,omitempty"`
	SpliceAuto              *BackendSpliceAuto         `json:"splice_auto,omitempty"`
	SpliceRequest           *BackendSpliceRequest      `json:"splice_request,omitempty"`
	SpliceResponse          *BackendSpliceResponse     `json:"splice_response,omitempty"`
	SpopCheck               *BackendSpopCheck          `json:"spop_check,omitempty"`
	Srvtcpka                *BackendSrvtcpka           `json:"srvtcpka,omitempty"`
	SrvtcpkaCnt             *int                       `json:"srvtcpka_cnt,omitempty"`
	SrvtcpkaIdle            *int                       `json:"srvtcpka_idle,omitempty"`
	SrvtcpkaIntvl           *int                       `json:"srvtcpka_intvl,omitempty"`
	StatsOptions            *StatsOptions              `json:"stats_options,omitempty"`

	// StickRuleList HAProxy backend stick rules array (corresponds to stick store-request, stick match, stick on, stick store-response)
	StickRuleList    *StickRules       `json:"stick_rule_list,omitempty"`
	StickTable       *ConfigStickTable `json:"stick_table,omitempty"`
	TarpitTimeout    *int              `json:"tarpit_timeout,omitempty"`
	TcpCheckRuleList *TcpChecks        `json:"tcp_check_rule_list,omitempty"`

	// TcpRequestRuleList HAProxy TCP request rules array (corresponds to tcp-request directive)
	TcpRequestRuleList *TcpRequestRules `json:"tcp_request_rule_list,omitempty"`

	// TcpResponseRuleList HAProxy TCP response rules array (corresponds to tcp-response directive)
	TcpResponseRuleList *TcpResponseRules       `json:"tcp_response_rule_list,omitempty"`
	TcpSmartConnect     *BackendTcpSmartConnect `json:"tcp_smart_connect,omitempty"`
	Tcpka               *BackendTcpka           `json:"tcpka,omitempty"`
	Transparent         *BackendTransparent     `json:"transparent,omitempty"`
	TunnelTimeout       *int                    `json:"tunnel_timeout,omitempty"`
	UseFcgiApp          *string                 `json:"use_fcgi_app,omitempty"`
	WafBodyRuleList     *WafBodyRules           `json:"waf_body_rule_list,omitempty"`
}

Backend defines model for backend.

type BackendAbortonclose

type BackendAbortonclose string

BackendAbortonclose defines model for Backend.Abortonclose.

const (
	BackendAbortoncloseDisabled BackendAbortonclose = "disabled"
	BackendAbortoncloseEnabled  BackendAbortonclose = "enabled"
)

Defines values for BackendAbortonclose.

func (BackendAbortonclose) Valid

func (e BackendAbortonclose) Valid() bool

Valid indicates whether the value is a known member of the BackendAbortonclose enum.

type BackendAcceptInvalidHttpResponse

type BackendAcceptInvalidHttpResponse string

BackendAcceptInvalidHttpResponse defines model for Backend.AcceptInvalidHttpResponse.

const (
	BackendAcceptInvalidHttpResponseDisabled BackendAcceptInvalidHttpResponse = "disabled"
	BackendAcceptInvalidHttpResponseEnabled  BackendAcceptInvalidHttpResponse = "enabled"
)

Defines values for BackendAcceptInvalidHttpResponse.

func (BackendAcceptInvalidHttpResponse) Valid

Valid indicates whether the value is a known member of the BackendAcceptInvalidHttpResponse enum.

type BackendAcceptUnsafeViolationsInHttpResponse

type BackendAcceptUnsafeViolationsInHttpResponse string

BackendAcceptUnsafeViolationsInHttpResponse defines model for Backend.AcceptUnsafeViolationsInHttpResponse.

const (
	BackendAcceptUnsafeViolationsInHttpResponseDisabled BackendAcceptUnsafeViolationsInHttpResponse = "disabled"
	BackendAcceptUnsafeViolationsInHttpResponseEnabled  BackendAcceptUnsafeViolationsInHttpResponse = "enabled"
)

Defines values for BackendAcceptUnsafeViolationsInHttpResponse.

func (BackendAcceptUnsafeViolationsInHttpResponse) Valid

Valid indicates whether the value is a known member of the BackendAcceptUnsafeViolationsInHttpResponse enum.

type BackendAdvCheck

type BackendAdvCheck string

BackendAdvCheck defines model for Backend.AdvCheck.

const (
	BackendAdvCheckHttpchk     BackendAdvCheck = "httpchk"
	BackendAdvCheckLdapCheck   BackendAdvCheck = "ldap-check"
	BackendAdvCheckMysqlCheck  BackendAdvCheck = "mysql-check"
	BackendAdvCheckPgsqlCheck  BackendAdvCheck = "pgsql-check"
	BackendAdvCheckRedisCheck  BackendAdvCheck = "redis-check"
	BackendAdvCheckSmtpchk     BackendAdvCheck = "smtpchk"
	BackendAdvCheckSslHelloChk BackendAdvCheck = "ssl-hello-chk"
	BackendAdvCheckTcpCheck    BackendAdvCheck = "tcp-check"
)

Defines values for BackendAdvCheck.

func (BackendAdvCheck) Valid

func (e BackendAdvCheck) Valid() bool

Valid indicates whether the value is a known member of the BackendAdvCheck enum.

type BackendAllbackups

type BackendAllbackups string

BackendAllbackups defines model for Backend.Allbackups.

const (
	BackendAllbackupsDisabled BackendAllbackups = "disabled"
	BackendAllbackupsEnabled  BackendAllbackups = "enabled"
)

Defines values for BackendAllbackups.

func (BackendAllbackups) Valid

func (e BackendAllbackups) Valid() bool

Valid indicates whether the value is a known member of the BackendAllbackups enum.

type BackendBase

type BackendBase struct {
	Abortonclose                         *BackendBaseAbortonclose                         `json:"abortonclose,omitempty"`
	AcceptInvalidHttpResponse            *BackendBaseAcceptInvalidHttpResponse            `json:"accept_invalid_http_response,omitempty"`
	AcceptUnsafeViolationsInHttpResponse *BackendBaseAcceptUnsafeViolationsInHttpResponse `json:"accept_unsafe_violations_in_http_response,omitempty"`
	AdvCheck                             *BackendBaseAdvCheck                             `json:"adv_check,omitempty"`
	Allbackups                           *BackendBaseAllbackups                           `json:"allbackups,omitempty"`
	Balance                              *Balance                                         `json:"balance,omitempty"`
	CheckTimeout                         *int                                             `json:"check_timeout,omitempty"`
	Checkcache                           *BackendBaseCheckcache                           `json:"checkcache,omitempty"`
	Compression                          *Compression                                     `json:"compression,omitempty"`
	ConnectTimeout                       *int                                             `json:"connect_timeout,omitempty"`
	Cookie                               *Cookie                                          `json:"cookie,omitempty"`
	DefaultServer                        *DefaultServer                                   `json:"default_server,omitempty"`
	Description                          *string                                          `json:"description,omitempty"`
	Disabled                             *bool                                            `json:"disabled,omitempty"`
	DynamicCookieKey                     *string                                          `json:"dynamic_cookie_key,omitempty"`

	// EmailAlert Send emails for important log messages.
	EmailAlert               *EmailAlert               `json:"email_alert,omitempty"`
	Enabled                  *bool                     `json:"enabled,omitempty"`
	ErrorFiles               *[]Errorfile              `json:"error_files,omitempty"`
	ErrorFilesFromHTTPErrors *[]Errorfiles             `json:"errorfiles_from_http_errors,omitempty"`
	Errorloc302              *Errorloc                 `json:"errorloc302,omitempty"`
	Errorloc303              *Errorloc                 `json:"errorloc303,omitempty"`
	ExternalCheck            *BackendBaseExternalCheck `json:"external_check,omitempty"`
	ExternalCheckCommand     *string                   `json:"external_check_command,omitempty"`
	ExternalCheckPath        *string                   `json:"external_check_path,omitempty"`

	// BackendForcePersist This field is deprecated in favor of force_persist_list, and will be removed in a future release
	BackendForcePersist *struct {
		Cond     BackendBaseForcePersistCond `json:"cond"`
		CondTest string                      `json:"cond_test"`
	} `json:"force_persist,omitempty"`
	ForcePersistList *[]struct {
		Cond     BackendBaseForcePersistListCond `json:"cond"`
		CondTest string                          `json:"cond_test"`
	} `json:"force_persist_list,omitempty"`
	Forwardfor              *Forwardfor                         `json:"forwardfor,omitempty"`
	From                    *string                             `json:"from,omitempty"`
	Fullconn                *int                                `json:"fullconn,omitempty"`
	Guid                    *string                             `json:"guid,omitempty"`
	H1CaseAdjustBogusServer *BackendBaseH1CaseAdjustBogusServer `json:"h1_case_adjust_bogus_server,omitempty"`
	HashBalanceFactor       *int                                `json:"hash_balance_factor,omitempty"`
	HashPreserveAffinity    *BackendBaseHashPreserveAffinity    `json:"hash_preserve_affinity,omitempty"`
	HashType                *HashType                           `json:"hash_type,omitempty"`
	HttpBufferRequest       *BackendBaseHttpBufferRequest       `json:"http-buffer-request,omitempty"`
	HttpDropRequestTrailers *BackendBaseHttpDropRequestTrailers `json:"http-drop-request-trailers,omitempty"`
	HttpNoDelay             *BackendBaseHttpNoDelay             `json:"http-no-delay,omitempty"`
	HttpUseHtx              *BackendBaseHttpUseHtx              `json:"http-use-htx,omitempty"`
	HttpConnectionMode      *BackendBaseHttpConnectionMode      `json:"http_connection_mode,omitempty"`
	HttpKeepAliveTimeout    *int                                `json:"http_keep_alive_timeout,omitempty"`
	HttpPretendKeepalive    *BackendBaseHttpPretendKeepalive    `json:"http_pretend_keepalive,omitempty"`
	HttpProxy               *BackendBaseHttpProxy               `json:"http_proxy,omitempty"`
	HttpRequestTimeout      *int                                `json:"http_request_timeout,omitempty"`
	HttpRestrictReqHdrNames *BackendBaseHttpRestrictReqHdrNames `json:"http_restrict_req_hdr_names,omitempty"`
	HttpReuse               *BackendBaseHttpReuse               `json:"http_reuse,omitempty"`
	HttpSendNameHeader      *string                             `json:"http_send_name_header,omitempty"`
	HttpchkParams           *HttpchkParams                      `json:"httpchk_params,omitempty"`
	Id                      *int                                `json:"id,omitempty"`

	// BackendIgnorePersist This field is deprecated in favor of ignore_persist_list, and will be removed in a future release
	BackendIgnorePersist *struct {
		Cond     BackendBaseIgnorePersistCond `json:"cond"`
		CondTest string                       `json:"cond_test"`
	} `json:"ignore_persist,omitempty"`
	IgnorePersistList *[]struct {
		Cond     BackendBaseIgnorePersistListCond `json:"cond"`
		CondTest string                           `json:"cond_test"`
	} `json:"ignore_persist_list,omitempty"`
	IndependentStreams      *BackendBaseIndependentStreams      `json:"independent_streams,omitempty"`
	LoadServerStateFromFile *BackendBaseLoadServerStateFromFile `json:"load_server_state_from_file,omitempty"`
	LogHealthChecks         *BackendBaseLogHealthChecks         `json:"log_health_checks,omitempty"`
	LogTag                  *string                             `json:"log_tag,omitempty"`
	MaxKeepAliveQueue       *int                                `json:"max_keep_alive_queue,omitempty"`
	Metadata                *map[string]map[string]interface{}  `json:"metadata,omitempty"`
	Mode                    *BackendBaseMode                    `json:"mode,omitempty"`
	MysqlCheckParams        *MysqlCheckParams                   `json:"mysql_check_params,omitempty"`
	Name                    string                              `json:"name"`
	Nolinger                *BackendBaseNolinger                `json:"nolinger,omitempty"`
	Originalto              *Originalto                         `json:"originalto,omitempty"`
	Persist                 *BackendBasePersist                 `json:"persist,omitempty"`
	PersistRule             *PersistRule                        `json:"persist_rule,omitempty"`
	PgsqlCheckParams        *PgsqlCheckParams                   `json:"pgsql_check_params,omitempty"`
	PreferLastServer        *BackendBasePreferLastServer        `json:"prefer_last_server,omitempty"`
	QueueTimeout            *int                                `json:"queue_timeout,omitempty"`
	Redispatch              *Redispatch                         `json:"redispatch,omitempty"`
	Retries                 *int                                `json:"retries,omitempty"`
	RetryOn                 *string                             `json:"retry_on,omitempty"`
	ServerFinTimeout        *int                                `json:"server_fin_timeout,omitempty"`
	ServerStateFileName     *string                             `json:"server_state_file_name,omitempty"`
	ServerTimeout           *int                                `json:"server_timeout,omitempty"`
	SmtpchkParams           *SmtpchkParams                      `json:"smtpchk_params,omitempty"`
	Source                  *Source                             `json:"source,omitempty"`
	SpliceAuto              *BackendBaseSpliceAuto              `json:"splice_auto,omitempty"`
	SpliceRequest           *BackendBaseSpliceRequest           `json:"splice_request,omitempty"`
	SpliceResponse          *BackendBaseSpliceResponse          `json:"splice_response,omitempty"`
	SpopCheck               *BackendBaseSpopCheck               `json:"spop_check,omitempty"`
	Srvtcpka                *BackendBaseSrvtcpka                `json:"srvtcpka,omitempty"`
	SrvtcpkaCnt             *int                                `json:"srvtcpka_cnt,omitempty"`
	SrvtcpkaIdle            *int                                `json:"srvtcpka_idle,omitempty"`
	SrvtcpkaIntvl           *int                                `json:"srvtcpka_intvl,omitempty"`
	StatsOptions            *StatsOptions                       `json:"stats_options,omitempty"`
	StickTable              *ConfigStickTable                   `json:"stick_table,omitempty"`
	TarpitTimeout           *int                                `json:"tarpit_timeout,omitempty"`
	TcpSmartConnect         *BackendBaseTcpSmartConnect         `json:"tcp_smart_connect,omitempty"`
	Tcpka                   *BackendBaseTcpka                   `json:"tcpka,omitempty"`
	Transparent             *BackendBaseTransparent             `json:"transparent,omitempty"`
	TunnelTimeout           *int                                `json:"tunnel_timeout,omitempty"`
	UseFcgiApp              *string                             `json:"use_fcgi_app,omitempty"`
}

BackendBase HAProxy backend configuration

type BackendBaseAbortonclose

type BackendBaseAbortonclose string

BackendBaseAbortonclose defines model for BackendBase.Abortonclose.

const (
	BackendBaseAbortoncloseDisabled BackendBaseAbortonclose = "disabled"
	BackendBaseAbortoncloseEnabled  BackendBaseAbortonclose = "enabled"
)

Defines values for BackendBaseAbortonclose.

func (BackendBaseAbortonclose) Valid

func (e BackendBaseAbortonclose) Valid() bool

Valid indicates whether the value is a known member of the BackendBaseAbortonclose enum.

type BackendBaseAcceptInvalidHttpResponse

type BackendBaseAcceptInvalidHttpResponse string

BackendBaseAcceptInvalidHttpResponse defines model for BackendBase.AcceptInvalidHttpResponse.

const (
	BackendBaseAcceptInvalidHttpResponseDisabled BackendBaseAcceptInvalidHttpResponse = "disabled"
	BackendBaseAcceptInvalidHttpResponseEnabled  BackendBaseAcceptInvalidHttpResponse = "enabled"
)

Defines values for BackendBaseAcceptInvalidHttpResponse.

func (BackendBaseAcceptInvalidHttpResponse) Valid

Valid indicates whether the value is a known member of the BackendBaseAcceptInvalidHttpResponse enum.

type BackendBaseAcceptUnsafeViolationsInHttpResponse

type BackendBaseAcceptUnsafeViolationsInHttpResponse string

BackendBaseAcceptUnsafeViolationsInHttpResponse defines model for BackendBase.AcceptUnsafeViolationsInHttpResponse.

const (
	BackendBaseAcceptUnsafeViolationsInHttpResponseDisabled BackendBaseAcceptUnsafeViolationsInHttpResponse = "disabled"
	BackendBaseAcceptUnsafeViolationsInHttpResponseEnabled  BackendBaseAcceptUnsafeViolationsInHttpResponse = "enabled"
)

Defines values for BackendBaseAcceptUnsafeViolationsInHttpResponse.

func (BackendBaseAcceptUnsafeViolationsInHttpResponse) Valid

Valid indicates whether the value is a known member of the BackendBaseAcceptUnsafeViolationsInHttpResponse enum.

type BackendBaseAdvCheck

type BackendBaseAdvCheck string

BackendBaseAdvCheck defines model for BackendBase.AdvCheck.

const (
	BackendBaseAdvCheckHttpchk     BackendBaseAdvCheck = "httpchk"
	BackendBaseAdvCheckLdapCheck   BackendBaseAdvCheck = "ldap-check"
	BackendBaseAdvCheckMysqlCheck  BackendBaseAdvCheck = "mysql-check"
	BackendBaseAdvCheckPgsqlCheck  BackendBaseAdvCheck = "pgsql-check"
	BackendBaseAdvCheckRedisCheck  BackendBaseAdvCheck = "redis-check"
	BackendBaseAdvCheckSmtpchk     BackendBaseAdvCheck = "smtpchk"
	BackendBaseAdvCheckSslHelloChk BackendBaseAdvCheck = "ssl-hello-chk"
	BackendBaseAdvCheckTcpCheck    BackendBaseAdvCheck = "tcp-check"
)

Defines values for BackendBaseAdvCheck.

func (BackendBaseAdvCheck) Valid

func (e BackendBaseAdvCheck) Valid() bool

Valid indicates whether the value is a known member of the BackendBaseAdvCheck enum.

type BackendBaseAllbackups

type BackendBaseAllbackups string

BackendBaseAllbackups defines model for BackendBase.Allbackups.

const (
	BackendBaseAllbackupsDisabled BackendBaseAllbackups = "disabled"
	BackendBaseAllbackupsEnabled  BackendBaseAllbackups = "enabled"
)

Defines values for BackendBaseAllbackups.

func (BackendBaseAllbackups) Valid

func (e BackendBaseAllbackups) Valid() bool

Valid indicates whether the value is a known member of the BackendBaseAllbackups enum.

type BackendBaseCheckcache

type BackendBaseCheckcache string

BackendBaseCheckcache defines model for BackendBase.Checkcache.

const (
	BackendBaseCheckcacheDisabled BackendBaseCheckcache = "disabled"
	BackendBaseCheckcacheEnabled  BackendBaseCheckcache = "enabled"
)

Defines values for BackendBaseCheckcache.

func (BackendBaseCheckcache) Valid

func (e BackendBaseCheckcache) Valid() bool

Valid indicates whether the value is a known member of the BackendBaseCheckcache enum.

type BackendBaseExternalCheck

type BackendBaseExternalCheck string

BackendBaseExternalCheck defines model for BackendBase.ExternalCheck.

const (
	BackendBaseExternalCheckDisabled BackendBaseExternalCheck = "disabled"
	BackendBaseExternalCheckEnabled  BackendBaseExternalCheck = "enabled"
)

Defines values for BackendBaseExternalCheck.

func (BackendBaseExternalCheck) Valid

func (e BackendBaseExternalCheck) Valid() bool

Valid indicates whether the value is a known member of the BackendBaseExternalCheck enum.

type BackendBaseForcePersistCond

type BackendBaseForcePersistCond string

BackendBaseForcePersistCond defines model for BackendBase.ForcePersist.Cond.

const (
	BackendBaseForcePersistCondIf     BackendBaseForcePersistCond = "if"
	BackendBaseForcePersistCondUnless BackendBaseForcePersistCond = "unless"
)

Defines values for BackendBaseForcePersistCond.

func (BackendBaseForcePersistCond) Valid

Valid indicates whether the value is a known member of the BackendBaseForcePersistCond enum.

type BackendBaseForcePersistListCond

type BackendBaseForcePersistListCond string

BackendBaseForcePersistListCond defines model for BackendBase.ForcePersistList.Cond.

const (
	BackendBaseForcePersistListCondIf     BackendBaseForcePersistListCond = "if"
	BackendBaseForcePersistListCondUnless BackendBaseForcePersistListCond = "unless"
)

Defines values for BackendBaseForcePersistListCond.

func (BackendBaseForcePersistListCond) Valid

Valid indicates whether the value is a known member of the BackendBaseForcePersistListCond enum.

type BackendBaseH1CaseAdjustBogusServer

type BackendBaseH1CaseAdjustBogusServer string

BackendBaseH1CaseAdjustBogusServer defines model for BackendBase.H1CaseAdjustBogusServer.

const (
	BackendBaseH1CaseAdjustBogusServerDisabled BackendBaseH1CaseAdjustBogusServer = "disabled"
	BackendBaseH1CaseAdjustBogusServerEnabled  BackendBaseH1CaseAdjustBogusServer = "enabled"
)

Defines values for BackendBaseH1CaseAdjustBogusServer.

func (BackendBaseH1CaseAdjustBogusServer) Valid

Valid indicates whether the value is a known member of the BackendBaseH1CaseAdjustBogusServer enum.

type BackendBaseHashPreserveAffinity

type BackendBaseHashPreserveAffinity string

BackendBaseHashPreserveAffinity defines model for BackendBase.HashPreserveAffinity.

const (
	BackendBaseHashPreserveAffinityAlways   BackendBaseHashPreserveAffinity = "always"
	BackendBaseHashPreserveAffinityMaxconn  BackendBaseHashPreserveAffinity = "maxconn"
	BackendBaseHashPreserveAffinityMaxqueue BackendBaseHashPreserveAffinity = "maxqueue"
)

Defines values for BackendBaseHashPreserveAffinity.

func (BackendBaseHashPreserveAffinity) Valid

Valid indicates whether the value is a known member of the BackendBaseHashPreserveAffinity enum.

type BackendBaseHttpBufferRequest

type BackendBaseHttpBufferRequest string

BackendBaseHttpBufferRequest defines model for BackendBase.HttpBufferRequest.

const (
	BackendBaseHttpBufferRequestDisabled BackendBaseHttpBufferRequest = "disabled"
	BackendBaseHttpBufferRequestEnabled  BackendBaseHttpBufferRequest = "enabled"
)

Defines values for BackendBaseHttpBufferRequest.

func (BackendBaseHttpBufferRequest) Valid

Valid indicates whether the value is a known member of the BackendBaseHttpBufferRequest enum.

type BackendBaseHttpConnectionMode

type BackendBaseHttpConnectionMode string

BackendBaseHttpConnectionMode defines model for BackendBase.HttpConnectionMode.

const (
	BackendBaseHttpConnectionModeHttpKeepAlive   BackendBaseHttpConnectionMode = "http-keep-alive"
	BackendBaseHttpConnectionModeHttpServerClose BackendBaseHttpConnectionMode = "http-server-close"
	BackendBaseHttpConnectionModeHttpclose       BackendBaseHttpConnectionMode = "httpclose"
)

Defines values for BackendBaseHttpConnectionMode.

func (BackendBaseHttpConnectionMode) Valid

Valid indicates whether the value is a known member of the BackendBaseHttpConnectionMode enum.

type BackendBaseHttpDropRequestTrailers

type BackendBaseHttpDropRequestTrailers string

BackendBaseHttpDropRequestTrailers defines model for BackendBase.HttpDropRequestTrailers.

const (
	BackendBaseHttpDropRequestTrailersDisabled BackendBaseHttpDropRequestTrailers = "disabled"
	BackendBaseHttpDropRequestTrailersEnabled  BackendBaseHttpDropRequestTrailers = "enabled"
)

Defines values for BackendBaseHttpDropRequestTrailers.

func (BackendBaseHttpDropRequestTrailers) Valid

Valid indicates whether the value is a known member of the BackendBaseHttpDropRequestTrailers enum.

type BackendBaseHttpNoDelay

type BackendBaseHttpNoDelay string

BackendBaseHttpNoDelay defines model for BackendBase.HttpNoDelay.

const (
	BackendBaseHttpNoDelayDisabled BackendBaseHttpNoDelay = "disabled"
	BackendBaseHttpNoDelayEnabled  BackendBaseHttpNoDelay = "enabled"
)

Defines values for BackendBaseHttpNoDelay.

func (BackendBaseHttpNoDelay) Valid

func (e BackendBaseHttpNoDelay) Valid() bool

Valid indicates whether the value is a known member of the BackendBaseHttpNoDelay enum.

type BackendBaseHttpPretendKeepalive

type BackendBaseHttpPretendKeepalive string

BackendBaseHttpPretendKeepalive defines model for BackendBase.HttpPretendKeepalive.

const (
	BackendBaseHttpPretendKeepaliveDisabled BackendBaseHttpPretendKeepalive = "disabled"
	BackendBaseHttpPretendKeepaliveEnabled  BackendBaseHttpPretendKeepalive = "enabled"
)

Defines values for BackendBaseHttpPretendKeepalive.

func (BackendBaseHttpPretendKeepalive) Valid

Valid indicates whether the value is a known member of the BackendBaseHttpPretendKeepalive enum.

type BackendBaseHttpProxy

type BackendBaseHttpProxy string

BackendBaseHttpProxy defines model for BackendBase.HttpProxy.

const (
	BackendBaseHttpProxyDisabled BackendBaseHttpProxy = "disabled"
	BackendBaseHttpProxyEnabled  BackendBaseHttpProxy = "enabled"
)

Defines values for BackendBaseHttpProxy.

func (BackendBaseHttpProxy) Valid

func (e BackendBaseHttpProxy) Valid() bool

Valid indicates whether the value is a known member of the BackendBaseHttpProxy enum.

type BackendBaseHttpRestrictReqHdrNames

type BackendBaseHttpRestrictReqHdrNames string

BackendBaseHttpRestrictReqHdrNames defines model for BackendBase.HttpRestrictReqHdrNames.

const (
	BackendBaseHttpRestrictReqHdrNamesDelete   BackendBaseHttpRestrictReqHdrNames = "delete"
	BackendBaseHttpRestrictReqHdrNamesPreserve BackendBaseHttpRestrictReqHdrNames = "preserve"
	BackendBaseHttpRestrictReqHdrNamesReject   BackendBaseHttpRestrictReqHdrNames = "reject"
)

Defines values for BackendBaseHttpRestrictReqHdrNames.

func (BackendBaseHttpRestrictReqHdrNames) Valid

Valid indicates whether the value is a known member of the BackendBaseHttpRestrictReqHdrNames enum.

type BackendBaseHttpReuse

type BackendBaseHttpReuse string

BackendBaseHttpReuse defines model for BackendBase.HttpReuse.

const (
	BackendBaseHttpReuseAggressive BackendBaseHttpReuse = "aggressive"
	BackendBaseHttpReuseAlways     BackendBaseHttpReuse = "always"
	BackendBaseHttpReuseNever      BackendBaseHttpReuse = "never"
	BackendBaseHttpReuseSafe       BackendBaseHttpReuse = "safe"
)

Defines values for BackendBaseHttpReuse.

func (BackendBaseHttpReuse) Valid

func (e BackendBaseHttpReuse) Valid() bool

Valid indicates whether the value is a known member of the BackendBaseHttpReuse enum.

type BackendBaseHttpUseHtx

type BackendBaseHttpUseHtx string

BackendBaseHttpUseHtx defines model for BackendBase.HttpUseHtx.

const (
	BackendBaseHttpUseHtxDisabled BackendBaseHttpUseHtx = "disabled"
	BackendBaseHttpUseHtxEnabled  BackendBaseHttpUseHtx = "enabled"
)

Defines values for BackendBaseHttpUseHtx.

func (BackendBaseHttpUseHtx) Valid

func (e BackendBaseHttpUseHtx) Valid() bool

Valid indicates whether the value is a known member of the BackendBaseHttpUseHtx enum.

type BackendBaseIgnorePersistCond

type BackendBaseIgnorePersistCond string

BackendBaseIgnorePersistCond defines model for BackendBase.IgnorePersist.Cond.

const (
	BackendBaseIgnorePersistCondIf     BackendBaseIgnorePersistCond = "if"
	BackendBaseIgnorePersistCondUnless BackendBaseIgnorePersistCond = "unless"
)

Defines values for BackendBaseIgnorePersistCond.

func (BackendBaseIgnorePersistCond) Valid

Valid indicates whether the value is a known member of the BackendBaseIgnorePersistCond enum.

type BackendBaseIgnorePersistListCond

type BackendBaseIgnorePersistListCond string

BackendBaseIgnorePersistListCond defines model for BackendBase.IgnorePersistList.Cond.

const (
	BackendBaseIgnorePersistListCondIf     BackendBaseIgnorePersistListCond = "if"
	BackendBaseIgnorePersistListCondUnless BackendBaseIgnorePersistListCond = "unless"
)

Defines values for BackendBaseIgnorePersistListCond.

func (BackendBaseIgnorePersistListCond) Valid

Valid indicates whether the value is a known member of the BackendBaseIgnorePersistListCond enum.

type BackendBaseIndependentStreams

type BackendBaseIndependentStreams string

BackendBaseIndependentStreams defines model for BackendBase.IndependentStreams.

const (
	BackendBaseIndependentStreamsDisabled BackendBaseIndependentStreams = "disabled"
	BackendBaseIndependentStreamsEnabled  BackendBaseIndependentStreams = "enabled"
)

Defines values for BackendBaseIndependentStreams.

func (BackendBaseIndependentStreams) Valid

Valid indicates whether the value is a known member of the BackendBaseIndependentStreams enum.

type BackendBaseLoadServerStateFromFile

type BackendBaseLoadServerStateFromFile string

BackendBaseLoadServerStateFromFile defines model for BackendBase.LoadServerStateFromFile.

const (
	BackendBaseLoadServerStateFromFileGlobal BackendBaseLoadServerStateFromFile = "global"
	BackendBaseLoadServerStateFromFileLocal  BackendBaseLoadServerStateFromFile = "local"
	BackendBaseLoadServerStateFromFileNone   BackendBaseLoadServerStateFromFile = "none"
)

Defines values for BackendBaseLoadServerStateFromFile.

func (BackendBaseLoadServerStateFromFile) Valid

Valid indicates whether the value is a known member of the BackendBaseLoadServerStateFromFile enum.

type BackendBaseLogHealthChecks

type BackendBaseLogHealthChecks string

BackendBaseLogHealthChecks defines model for BackendBase.LogHealthChecks.

const (
	BackendBaseLogHealthChecksDisabled BackendBaseLogHealthChecks = "disabled"
	BackendBaseLogHealthChecksEnabled  BackendBaseLogHealthChecks = "enabled"
)

Defines values for BackendBaseLogHealthChecks.

func (BackendBaseLogHealthChecks) Valid

func (e BackendBaseLogHealthChecks) Valid() bool

Valid indicates whether the value is a known member of the BackendBaseLogHealthChecks enum.

type BackendBaseMode

type BackendBaseMode string

BackendBaseMode defines model for BackendBase.Mode.

const (
	BackendBaseModeHttp BackendBaseMode = "http"
	BackendBaseModeLog  BackendBaseMode = "log"
	BackendBaseModeTcp  BackendBaseMode = "tcp"
)

Defines values for BackendBaseMode.

func (BackendBaseMode) Valid

func (e BackendBaseMode) Valid() bool

Valid indicates whether the value is a known member of the BackendBaseMode enum.

type BackendBaseNolinger

type BackendBaseNolinger string

BackendBaseNolinger defines model for BackendBase.Nolinger.

const (
	BackendBaseNolingerDisabled BackendBaseNolinger = "disabled"
	BackendBaseNolingerEnabled  BackendBaseNolinger = "enabled"
)

Defines values for BackendBaseNolinger.

func (BackendBaseNolinger) Valid

func (e BackendBaseNolinger) Valid() bool

Valid indicates whether the value is a known member of the BackendBaseNolinger enum.

type BackendBasePersist

type BackendBasePersist string

BackendBasePersist defines model for BackendBase.Persist.

const (
	BackendBasePersistDisabled BackendBasePersist = "disabled"
	BackendBasePersistEnabled  BackendBasePersist = "enabled"
)

Defines values for BackendBasePersist.

func (BackendBasePersist) Valid

func (e BackendBasePersist) Valid() bool

Valid indicates whether the value is a known member of the BackendBasePersist enum.

type BackendBasePreferLastServer

type BackendBasePreferLastServer string

BackendBasePreferLastServer defines model for BackendBase.PreferLastServer.

const (
	BackendBasePreferLastServerDisabled BackendBasePreferLastServer = "disabled"
	BackendBasePreferLastServerEnabled  BackendBasePreferLastServer = "enabled"
)

Defines values for BackendBasePreferLastServer.

func (BackendBasePreferLastServer) Valid

Valid indicates whether the value is a known member of the BackendBasePreferLastServer enum.

type BackendBaseSpliceAuto

type BackendBaseSpliceAuto string

BackendBaseSpliceAuto defines model for BackendBase.SpliceAuto.

const (
	BackendBaseSpliceAutoDisabled BackendBaseSpliceAuto = "disabled"
	BackendBaseSpliceAutoEnabled  BackendBaseSpliceAuto = "enabled"
)

Defines values for BackendBaseSpliceAuto.

func (BackendBaseSpliceAuto) Valid

func (e BackendBaseSpliceAuto) Valid() bool

Valid indicates whether the value is a known member of the BackendBaseSpliceAuto enum.

type BackendBaseSpliceRequest

type BackendBaseSpliceRequest string

BackendBaseSpliceRequest defines model for BackendBase.SpliceRequest.

const (
	BackendBaseSpliceRequestDisabled BackendBaseSpliceRequest = "disabled"
	BackendBaseSpliceRequestEnabled  BackendBaseSpliceRequest = "enabled"
)

Defines values for BackendBaseSpliceRequest.

func (BackendBaseSpliceRequest) Valid

func (e BackendBaseSpliceRequest) Valid() bool

Valid indicates whether the value is a known member of the BackendBaseSpliceRequest enum.

type BackendBaseSpliceResponse

type BackendBaseSpliceResponse string

BackendBaseSpliceResponse defines model for BackendBase.SpliceResponse.

const (
	BackendBaseSpliceResponseDisabled BackendBaseSpliceResponse = "disabled"
	BackendBaseSpliceResponseEnabled  BackendBaseSpliceResponse = "enabled"
)

Defines values for BackendBaseSpliceResponse.

func (BackendBaseSpliceResponse) Valid

func (e BackendBaseSpliceResponse) Valid() bool

Valid indicates whether the value is a known member of the BackendBaseSpliceResponse enum.

type BackendBaseSpopCheck

type BackendBaseSpopCheck string

BackendBaseSpopCheck defines model for BackendBase.SpopCheck.

const (
	BackendBaseSpopCheckDisabled BackendBaseSpopCheck = "disabled"
	BackendBaseSpopCheckEnabled  BackendBaseSpopCheck = "enabled"
)

Defines values for BackendBaseSpopCheck.

func (BackendBaseSpopCheck) Valid

func (e BackendBaseSpopCheck) Valid() bool

Valid indicates whether the value is a known member of the BackendBaseSpopCheck enum.

type BackendBaseSrvtcpka

type BackendBaseSrvtcpka string

BackendBaseSrvtcpka defines model for BackendBase.Srvtcpka.

const (
	BackendBaseSrvtcpkaDisabled BackendBaseSrvtcpka = "disabled"
	BackendBaseSrvtcpkaEnabled  BackendBaseSrvtcpka = "enabled"
)

Defines values for BackendBaseSrvtcpka.

func (BackendBaseSrvtcpka) Valid

func (e BackendBaseSrvtcpka) Valid() bool

Valid indicates whether the value is a known member of the BackendBaseSrvtcpka enum.

type BackendBaseTcpSmartConnect

type BackendBaseTcpSmartConnect string

BackendBaseTcpSmartConnect defines model for BackendBase.TcpSmartConnect.

const (
	BackendBaseTcpSmartConnectDisabled BackendBaseTcpSmartConnect = "disabled"
	BackendBaseTcpSmartConnectEnabled  BackendBaseTcpSmartConnect = "enabled"
)

Defines values for BackendBaseTcpSmartConnect.

func (BackendBaseTcpSmartConnect) Valid

func (e BackendBaseTcpSmartConnect) Valid() bool

Valid indicates whether the value is a known member of the BackendBaseTcpSmartConnect enum.

type BackendBaseTcpka

type BackendBaseTcpka string

BackendBaseTcpka defines model for BackendBase.Tcpka.

const (
	BackendBaseTcpkaDisabled BackendBaseTcpka = "disabled"
	BackendBaseTcpkaEnabled  BackendBaseTcpka = "enabled"
)

Defines values for BackendBaseTcpka.

func (BackendBaseTcpka) Valid

func (e BackendBaseTcpka) Valid() bool

Valid indicates whether the value is a known member of the BackendBaseTcpka enum.

type BackendBaseTransparent

type BackendBaseTransparent string

BackendBaseTransparent defines model for BackendBase.Transparent.

const (
	BackendBaseTransparentDisabled BackendBaseTransparent = "disabled"
	BackendBaseTransparentEnabled  BackendBaseTransparent = "enabled"
)

Defines values for BackendBaseTransparent.

func (BackendBaseTransparent) Valid

func (e BackendBaseTransparent) Valid() bool

Valid indicates whether the value is a known member of the BackendBaseTransparent enum.

type BackendCheckcache

type BackendCheckcache string

BackendCheckcache defines model for Backend.Checkcache.

const (
	BackendCheckcacheDisabled BackendCheckcache = "disabled"
	BackendCheckcacheEnabled  BackendCheckcache = "enabled"
)

Defines values for BackendCheckcache.

func (BackendCheckcache) Valid

func (e BackendCheckcache) Valid() bool

Valid indicates whether the value is a known member of the BackendCheckcache enum.

type BackendExternalCheck

type BackendExternalCheck string

BackendExternalCheck defines model for Backend.ExternalCheck.

const (
	BackendExternalCheckDisabled BackendExternalCheck = "disabled"
	BackendExternalCheckEnabled  BackendExternalCheck = "enabled"
)

Defines values for BackendExternalCheck.

func (BackendExternalCheck) Valid

func (e BackendExternalCheck) Valid() bool

Valid indicates whether the value is a known member of the BackendExternalCheck enum.

type BackendForcePersistCond

type BackendForcePersistCond string

BackendForcePersistCond defines model for Backend.ForcePersist.Cond.

const (
	BackendForcePersistCondIf     BackendForcePersistCond = "if"
	BackendForcePersistCondUnless BackendForcePersistCond = "unless"
)

Defines values for BackendForcePersistCond.

func (BackendForcePersistCond) Valid

func (e BackendForcePersistCond) Valid() bool

Valid indicates whether the value is a known member of the BackendForcePersistCond enum.

type BackendForcePersistListCond

type BackendForcePersistListCond string

BackendForcePersistListCond defines model for Backend.ForcePersistList.Cond.

const (
	BackendForcePersistListCondIf     BackendForcePersistListCond = "if"
	BackendForcePersistListCondUnless BackendForcePersistListCond = "unless"
)

Defines values for BackendForcePersistListCond.

func (BackendForcePersistListCond) Valid

Valid indicates whether the value is a known member of the BackendForcePersistListCond enum.

type BackendH1CaseAdjustBogusServer

type BackendH1CaseAdjustBogusServer string

BackendH1CaseAdjustBogusServer defines model for Backend.H1CaseAdjustBogusServer.

const (
	BackendH1CaseAdjustBogusServerDisabled BackendH1CaseAdjustBogusServer = "disabled"
	BackendH1CaseAdjustBogusServerEnabled  BackendH1CaseAdjustBogusServer = "enabled"
)

Defines values for BackendH1CaseAdjustBogusServer.

func (BackendH1CaseAdjustBogusServer) Valid

Valid indicates whether the value is a known member of the BackendH1CaseAdjustBogusServer enum.

type BackendHashPreserveAffinity

type BackendHashPreserveAffinity string

BackendHashPreserveAffinity defines model for Backend.HashPreserveAffinity.

const (
	BackendHashPreserveAffinityAlways   BackendHashPreserveAffinity = "always"
	BackendHashPreserveAffinityMaxconn  BackendHashPreserveAffinity = "maxconn"
	BackendHashPreserveAffinityMaxqueue BackendHashPreserveAffinity = "maxqueue"
)

Defines values for BackendHashPreserveAffinity.

func (BackendHashPreserveAffinity) Valid

Valid indicates whether the value is a known member of the BackendHashPreserveAffinity enum.

type BackendHttpBufferRequest

type BackendHttpBufferRequest string

BackendHttpBufferRequest defines model for Backend.HttpBufferRequest.

const (
	BackendHttpBufferRequestDisabled BackendHttpBufferRequest = "disabled"
	BackendHttpBufferRequestEnabled  BackendHttpBufferRequest = "enabled"
)

Defines values for BackendHttpBufferRequest.

func (BackendHttpBufferRequest) Valid

func (e BackendHttpBufferRequest) Valid() bool

Valid indicates whether the value is a known member of the BackendHttpBufferRequest enum.

type BackendHttpConnectionMode

type BackendHttpConnectionMode string

BackendHttpConnectionMode defines model for Backend.HttpConnectionMode.

const (
	BackendHttpConnectionModeHttpKeepAlive   BackendHttpConnectionMode = "http-keep-alive"
	BackendHttpConnectionModeHttpServerClose BackendHttpConnectionMode = "http-server-close"
	BackendHttpConnectionModeHttpclose       BackendHttpConnectionMode = "httpclose"
)

Defines values for BackendHttpConnectionMode.

func (BackendHttpConnectionMode) Valid

func (e BackendHttpConnectionMode) Valid() bool

Valid indicates whether the value is a known member of the BackendHttpConnectionMode enum.

type BackendHttpDropRequestTrailers

type BackendHttpDropRequestTrailers string

BackendHttpDropRequestTrailers defines model for Backend.HttpDropRequestTrailers.

const (
	BackendHttpDropRequestTrailersDisabled BackendHttpDropRequestTrailers = "disabled"
	BackendHttpDropRequestTrailersEnabled  BackendHttpDropRequestTrailers = "enabled"
)

Defines values for BackendHttpDropRequestTrailers.

func (BackendHttpDropRequestTrailers) Valid

Valid indicates whether the value is a known member of the BackendHttpDropRequestTrailers enum.

type BackendHttpNoDelay

type BackendHttpNoDelay string

BackendHttpNoDelay defines model for Backend.HttpNoDelay.

const (
	BackendHttpNoDelayDisabled BackendHttpNoDelay = "disabled"
	BackendHttpNoDelayEnabled  BackendHttpNoDelay = "enabled"
)

Defines values for BackendHttpNoDelay.

func (BackendHttpNoDelay) Valid

func (e BackendHttpNoDelay) Valid() bool

Valid indicates whether the value is a known member of the BackendHttpNoDelay enum.

type BackendHttpPretendKeepalive

type BackendHttpPretendKeepalive string

BackendHttpPretendKeepalive defines model for Backend.HttpPretendKeepalive.

const (
	BackendHttpPretendKeepaliveDisabled BackendHttpPretendKeepalive = "disabled"
	BackendHttpPretendKeepaliveEnabled  BackendHttpPretendKeepalive = "enabled"
)

Defines values for BackendHttpPretendKeepalive.

func (BackendHttpPretendKeepalive) Valid

Valid indicates whether the value is a known member of the BackendHttpPretendKeepalive enum.

type BackendHttpProxy

type BackendHttpProxy string

BackendHttpProxy defines model for Backend.HttpProxy.

const (
	BackendHttpProxyDisabled BackendHttpProxy = "disabled"
	BackendHttpProxyEnabled  BackendHttpProxy = "enabled"
)

Defines values for BackendHttpProxy.

func (BackendHttpProxy) Valid

func (e BackendHttpProxy) Valid() bool

Valid indicates whether the value is a known member of the BackendHttpProxy enum.

type BackendHttpRestrictReqHdrNames

type BackendHttpRestrictReqHdrNames string

BackendHttpRestrictReqHdrNames defines model for Backend.HttpRestrictReqHdrNames.

const (
	BackendHttpRestrictReqHdrNamesDelete   BackendHttpRestrictReqHdrNames = "delete"
	BackendHttpRestrictReqHdrNamesPreserve BackendHttpRestrictReqHdrNames = "preserve"
	BackendHttpRestrictReqHdrNamesReject   BackendHttpRestrictReqHdrNames = "reject"
)

Defines values for BackendHttpRestrictReqHdrNames.

func (BackendHttpRestrictReqHdrNames) Valid

Valid indicates whether the value is a known member of the BackendHttpRestrictReqHdrNames enum.

type BackendHttpReuse

type BackendHttpReuse string

BackendHttpReuse defines model for Backend.HttpReuse.

const (
	BackendHttpReuseAggressive BackendHttpReuse = "aggressive"
	BackendHttpReuseAlways     BackendHttpReuse = "always"
	BackendHttpReuseNever      BackendHttpReuse = "never"
	BackendHttpReuseSafe       BackendHttpReuse = "safe"
)

Defines values for BackendHttpReuse.

func (BackendHttpReuse) Valid

func (e BackendHttpReuse) Valid() bool

Valid indicates whether the value is a known member of the BackendHttpReuse enum.

type BackendHttpUseHtx

type BackendHttpUseHtx string

BackendHttpUseHtx defines model for Backend.HttpUseHtx.

const (
	BackendHttpUseHtxDisabled BackendHttpUseHtx = "disabled"
	BackendHttpUseHtxEnabled  BackendHttpUseHtx = "enabled"
)

Defines values for BackendHttpUseHtx.

func (BackendHttpUseHtx) Valid

func (e BackendHttpUseHtx) Valid() bool

Valid indicates whether the value is a known member of the BackendHttpUseHtx enum.

type BackendIgnorePersistCond

type BackendIgnorePersistCond string

BackendIgnorePersistCond defines model for Backend.IgnorePersist.Cond.

const (
	BackendIgnorePersistCondIf     BackendIgnorePersistCond = "if"
	BackendIgnorePersistCondUnless BackendIgnorePersistCond = "unless"
)

Defines values for BackendIgnorePersistCond.

func (BackendIgnorePersistCond) Valid

func (e BackendIgnorePersistCond) Valid() bool

Valid indicates whether the value is a known member of the BackendIgnorePersistCond enum.

type BackendIgnorePersistListCond

type BackendIgnorePersistListCond string

BackendIgnorePersistListCond defines model for Backend.IgnorePersistList.Cond.

const (
	BackendIgnorePersistListCondIf     BackendIgnorePersistListCond = "if"
	BackendIgnorePersistListCondUnless BackendIgnorePersistListCond = "unless"
)

Defines values for BackendIgnorePersistListCond.

func (BackendIgnorePersistListCond) Valid

Valid indicates whether the value is a known member of the BackendIgnorePersistListCond enum.

type BackendIndependentStreams

type BackendIndependentStreams string

BackendIndependentStreams defines model for Backend.IndependentStreams.

const (
	BackendIndependentStreamsDisabled BackendIndependentStreams = "disabled"
	BackendIndependentStreamsEnabled  BackendIndependentStreams = "enabled"
)

Defines values for BackendIndependentStreams.

func (BackendIndependentStreams) Valid

func (e BackendIndependentStreams) Valid() bool

Valid indicates whether the value is a known member of the BackendIndependentStreams enum.

type BackendLoadServerStateFromFile

type BackendLoadServerStateFromFile string

BackendLoadServerStateFromFile defines model for Backend.LoadServerStateFromFile.

const (
	BackendLoadServerStateFromFileGlobal BackendLoadServerStateFromFile = "global"
	BackendLoadServerStateFromFileLocal  BackendLoadServerStateFromFile = "local"
	BackendLoadServerStateFromFileNone   BackendLoadServerStateFromFile = "none"
)

Defines values for BackendLoadServerStateFromFile.

func (BackendLoadServerStateFromFile) Valid

Valid indicates whether the value is a known member of the BackendLoadServerStateFromFile enum.

type BackendLogHealthChecks

type BackendLogHealthChecks string

BackendLogHealthChecks defines model for Backend.LogHealthChecks.

const (
	BackendLogHealthChecksDisabled BackendLogHealthChecks = "disabled"
	BackendLogHealthChecksEnabled  BackendLogHealthChecks = "enabled"
)

Defines values for BackendLogHealthChecks.

func (BackendLogHealthChecks) Valid

func (e BackendLogHealthChecks) Valid() bool

Valid indicates whether the value is a known member of the BackendLogHealthChecks enum.

type BackendMode

type BackendMode string

BackendMode defines model for Backend.Mode.

const (
	BackendModeHttp BackendMode = "http"
	BackendModeLog  BackendMode = "log"
	BackendModeTcp  BackendMode = "tcp"
)

Defines values for BackendMode.

func (BackendMode) Valid

func (e BackendMode) Valid() bool

Valid indicates whether the value is a known member of the BackendMode enum.

type BackendNolinger

type BackendNolinger string

BackendNolinger defines model for Backend.Nolinger.

const (
	BackendNolingerDisabled BackendNolinger = "disabled"
	BackendNolingerEnabled  BackendNolinger = "enabled"
)

Defines values for BackendNolinger.

func (BackendNolinger) Valid

func (e BackendNolinger) Valid() bool

Valid indicates whether the value is a known member of the BackendNolinger enum.

type BackendPersist

type BackendPersist string

BackendPersist defines model for Backend.Persist.

const (
	BackendPersistDisabled BackendPersist = "disabled"
	BackendPersistEnabled  BackendPersist = "enabled"
)

Defines values for BackendPersist.

func (BackendPersist) Valid

func (e BackendPersist) Valid() bool

Valid indicates whether the value is a known member of the BackendPersist enum.

type BackendPreferLastServer

type BackendPreferLastServer string

BackendPreferLastServer defines model for Backend.PreferLastServer.

const (
	BackendPreferLastServerDisabled BackendPreferLastServer = "disabled"
	BackendPreferLastServerEnabled  BackendPreferLastServer = "enabled"
)

Defines values for BackendPreferLastServer.

func (BackendPreferLastServer) Valid

func (e BackendPreferLastServer) Valid() bool

Valid indicates whether the value is a known member of the BackendPreferLastServer enum.

type BackendSpliceAuto

type BackendSpliceAuto string

BackendSpliceAuto defines model for Backend.SpliceAuto.

const (
	BackendSpliceAutoDisabled BackendSpliceAuto = "disabled"
	BackendSpliceAutoEnabled  BackendSpliceAuto = "enabled"
)

Defines values for BackendSpliceAuto.

func (BackendSpliceAuto) Valid

func (e BackendSpliceAuto) Valid() bool

Valid indicates whether the value is a known member of the BackendSpliceAuto enum.

type BackendSpliceRequest

type BackendSpliceRequest string

BackendSpliceRequest defines model for Backend.SpliceRequest.

const (
	BackendSpliceRequestDisabled BackendSpliceRequest = "disabled"
	BackendSpliceRequestEnabled  BackendSpliceRequest = "enabled"
)

Defines values for BackendSpliceRequest.

func (BackendSpliceRequest) Valid

func (e BackendSpliceRequest) Valid() bool

Valid indicates whether the value is a known member of the BackendSpliceRequest enum.

type BackendSpliceResponse

type BackendSpliceResponse string

BackendSpliceResponse defines model for Backend.SpliceResponse.

const (
	BackendSpliceResponseDisabled BackendSpliceResponse = "disabled"
	BackendSpliceResponseEnabled  BackendSpliceResponse = "enabled"
)

Defines values for BackendSpliceResponse.

func (BackendSpliceResponse) Valid

func (e BackendSpliceResponse) Valid() bool

Valid indicates whether the value is a known member of the BackendSpliceResponse enum.

type BackendSpopCheck

type BackendSpopCheck string

BackendSpopCheck defines model for Backend.SpopCheck.

const (
	BackendSpopCheckDisabled BackendSpopCheck = "disabled"
	BackendSpopCheckEnabled  BackendSpopCheck = "enabled"
)

Defines values for BackendSpopCheck.

func (BackendSpopCheck) Valid

func (e BackendSpopCheck) Valid() bool

Valid indicates whether the value is a known member of the BackendSpopCheck enum.

type BackendSrvtcpka

type BackendSrvtcpka string

BackendSrvtcpka defines model for Backend.Srvtcpka.

const (
	BackendSrvtcpkaDisabled BackendSrvtcpka = "disabled"
	BackendSrvtcpkaEnabled  BackendSrvtcpka = "enabled"
)

Defines values for BackendSrvtcpka.

func (BackendSrvtcpka) Valid

func (e BackendSrvtcpka) Valid() bool

Valid indicates whether the value is a known member of the BackendSrvtcpka enum.

type BackendTcpSmartConnect

type BackendTcpSmartConnect string

BackendTcpSmartConnect defines model for Backend.TcpSmartConnect.

const (
	BackendTcpSmartConnectDisabled BackendTcpSmartConnect = "disabled"
	BackendTcpSmartConnectEnabled  BackendTcpSmartConnect = "enabled"
)

Defines values for BackendTcpSmartConnect.

func (BackendTcpSmartConnect) Valid

func (e BackendTcpSmartConnect) Valid() bool

Valid indicates whether the value is a known member of the BackendTcpSmartConnect enum.

type BackendTcpka

type BackendTcpka string

BackendTcpka defines model for Backend.Tcpka.

const (
	BackendTcpkaDisabled BackendTcpka = "disabled"
	BackendTcpkaEnabled  BackendTcpka = "enabled"
)

Defines values for BackendTcpka.

func (BackendTcpka) Valid

func (e BackendTcpka) Valid() bool

Valid indicates whether the value is a known member of the BackendTcpka enum.

type BackendTransparent

type BackendTransparent string

BackendTransparent defines model for Backend.Transparent.

const (
	BackendTransparentDisabled BackendTransparent = "disabled"
	BackendTransparentEnabled  BackendTransparent = "enabled"
)

Defines values for BackendTransparent.

func (BackendTransparent) Valid

func (e BackendTransparent) Valid() bool

Valid indicates whether the value is a known member of the BackendTransparent enum.

type BadRequest

type BadRequest = Error

BadRequest API Error

type Balance

type Balance struct {
	Algorithm         BalanceAlgorithm `json:"algorithm"`
	HashExpression    *string          `json:"hash_expression,omitempty"`
	HdrName           *string          `json:"hdr_name,omitempty"`
	HdrUseDomainOnly  *bool            `json:"hdr_use_domain_only,omitempty"`
	RandomDraws       *int             `json:"random_draws,omitempty"`
	RdpCookieName     *string          `json:"rdp_cookie_name,omitempty"`
	UriDepth          *int             `json:"uri_depth,omitempty"`
	UriLen            *int             `json:"uri_len,omitempty"`
	UriPathOnly       *bool            `json:"uri_path_only,omitempty"`
	UriWhole          *bool            `json:"uri_whole,omitempty"`
	UrlParam          *string          `json:"url_param,omitempty"`
	UrlParamCheckPost *int             `json:"url_param_check_post,omitempty"`
	UrlParamMaxWait   *int             `json:"url_param_max_wait,omitempty"`
}

Balance defines model for balance.

type BalanceAlgorithm

type BalanceAlgorithm string

BalanceAlgorithm defines model for Balance.Algorithm.

const (
	BalanceAlgorithmFirst      BalanceAlgorithm = "first"
	BalanceAlgorithmHash       BalanceAlgorithm = "hash"
	BalanceAlgorithmHdr        BalanceAlgorithm = "hdr"
	BalanceAlgorithmLeastconn  BalanceAlgorithm = "leastconn"
	BalanceAlgorithmRandom     BalanceAlgorithm = "random"
	BalanceAlgorithmRdpCookie  BalanceAlgorithm = "rdp-cookie"
	BalanceAlgorithmRoundrobin BalanceAlgorithm = "roundrobin"
	BalanceAlgorithmSource     BalanceAlgorithm = "source"
	BalanceAlgorithmStaticRr   BalanceAlgorithm = "static-rr"
	BalanceAlgorithmUri        BalanceAlgorithm = "uri"
	BalanceAlgorithmUrlParam   BalanceAlgorithm = "url_param"
)

Defines values for BalanceAlgorithm.

func (BalanceAlgorithm) Valid

func (e BalanceAlgorithm) Valid() bool

Valid indicates whether the value is a known member of the BalanceAlgorithm enum.

type BotmgmtProfile

type BotmgmtProfile struct {
	Metadata *map[string]map[string]interface{} `json:"metadata,omitempty"`
	Name     string                             `json:"name"`

	// ScoreVersion The score algorithm version to use.
	ScoreVersion *int `json:"score_version,omitempty"`

	// Track Enable or disable the tracking feature.
	Track *BotmgmtProfileTrack `json:"track,omitempty"`

	// TrackDefaults The defaults used when creating the tracking stick-tables.
	TrackDefaults *BotmgmtTrackDefaults `json:"track_defaults,omitempty"`

	// TrackPeers The name of the peers section to use for replication.
	TrackPeers *string `json:"track_peers,omitempty"`
}

BotmgmtProfile Botmgmt profiles that can be used across multiple filter instances and/or actions.

type BotmgmtProfileTrack

type BotmgmtProfileTrack string

BotmgmtProfileTrack Enable or disable the tracking feature.

const (
	BotmgmtProfileTrackDisable BotmgmtProfileTrack = "disable"
	BotmgmtProfileTrackEnable  BotmgmtProfileTrack = "enable"
	BotmgmtProfileTrackOff     BotmgmtProfileTrack = "off"
	BotmgmtProfileTrackOn      BotmgmtProfileTrack = "on"
)

Defines values for BotmgmtProfileTrack.

func (BotmgmtProfileTrack) Valid

func (e BotmgmtProfileTrack) Valid() bool

Valid indicates whether the value is a known member of the BotmgmtProfileTrack enum.

type BotmgmtTrackDefaults

type BotmgmtTrackDefaults struct {
	Expire *int `json:"expire,omitempty"`
	Period *int `json:"period,omitempty"`
	Size   *int `json:"size,omitempty"`
}

BotmgmtTrackDefaults The defaults used when creating the tracking stick-tables.

type Captcha

type Captcha struct {
	// ApiKey Api key for assessments in Google Recaptcha Enterprise.
	ApiKey *string `json:"api_key,omitempty"`

	// CookieDomain Cookie domain option.
	CookieDomain *string `json:"cookie_domain,omitempty"`

	// CookieExpires Cookie expires option. Format: <day-name>, <day> <month> <year> <hour>:<minute>:<second> GMT
	CookieExpires *string `json:"cookie_expires,omitempty"`

	// CookieMaxAge Cookie Max-Age option in seconds.
	CookieMaxAge *int `json:"cookie_max_age,omitempty"`

	// CookiePath Cookie path option.
	CookiePath *string `json:"cookie_path,omitempty"`

	// CookieSamesite Set cookie Path option to Strict, Lax or None. You should also enable the cookie_secure option.
	CookieSamesite *CaptchaCookieSamesite `json:"cookie_samesite,omitempty"`

	// CookieSecure Cookie secure option.
	CookieSecure *CaptchaCookieSecure `json:"cookie_secure,omitempty"`

	// CustFormat Format of the POST request to the verifying server.
	CustFormat *CaptchaCustFormat `json:"cust_format,omitempty"`

	// CustHtmlFile HTML file that will be sent when requesting a captcha.
	CustHtmlFile *string `json:"cust_html_file,omitempty"`

	// CustRespField Name of the response field.
	CustRespField *string `json:"cust_resp_field,omitempty"`

	// CustRespParam Name of the response parameter that will be sent to the verifying server.
	CustRespParam *string `json:"cust_resp_param,omitempty"`

	// CustScoreBased Enable or disable score-based verification.
	CustScoreBased *CaptchaCustScoreBased `json:"cust_score_based,omitempty"`

	// CustSecretParam Name of the secret parameter that will be sent to the verifying server.
	CustSecretParam *string `json:"cust_secret_param,omitempty"`

	// CustSuccess String indicating success in the response from verifying server.
	CustSuccess *string `json:"cust_success,omitempty"`

	// CustUrl URL of the captcha verification service.
	CustUrl *string `json:"cust_url,omitempty"`

	// HmacSecret Secret used to sign the cookie. Limited to 42 bytes.
	HmacSecret *string `json:"hmac_secret,omitempty"`

	// IpCookie Adds the client's IP address into the HMAC.
	IpCookie *CaptchaIpCookie                   `json:"ip_cookie,omitempty"`
	Metadata *map[string]map[string]interface{} `json:"metadata,omitempty"`

	// Mode Captcha provider, for instance: recaptcha, recaptcha_v3, recaptcha_enterprise,
	// hcaptcha, frcaptcha (friendly captcha), turnstile or custom.
	Mode    *string                `json:"mode,omitempty"`
	Name    string                 `json:"name"`
	OnError *[]CaptchaErrorHandler `json:"on_error,omitempty"`

	// Path Path for the POST request sent to verify the captcha token.
	Path *string `json:"path,omitempty"`

	// ProjectId Project id for Google Recaptcha Enterprise.
	ProjectId *string `json:"project_id,omitempty"`

	// ScoreOnlyOnce Request score only on first-page access.
	ScoreOnlyOnce *CaptchaScoreOnlyOnce `json:"score_only_once,omitempty"`

	// SecretKey Private key obtained from the captcha provider.
	SecretKey *string `json:"secret_key,omitempty"`

	// SiteKey Public key obtained from the captcha provider.
	SiteKey *string `json:"site_key,omitempty"`

	// ValidTime Cookie lifetime in seconds.
	ValidTime *int `json:"valid_time,omitempty"`
}

Captcha Configuration for the captcha module.

type CaptchaCookieSamesite

type CaptchaCookieSamesite string

CaptchaCookieSamesite Set cookie Path option to Strict, Lax or None. You should also enable the cookie_secure option.

const (
	CaptchaCookieSamesiteLax    CaptchaCookieSamesite = "lax"
	CaptchaCookieSamesiteNone   CaptchaCookieSamesite = "none"
	CaptchaCookieSamesiteStrict CaptchaCookieSamesite = "strict"
)

Defines values for CaptchaCookieSamesite.

func (CaptchaCookieSamesite) Valid

func (e CaptchaCookieSamesite) Valid() bool

Valid indicates whether the value is a known member of the CaptchaCookieSamesite enum.

type CaptchaCookieSecure

type CaptchaCookieSecure string

CaptchaCookieSecure Cookie secure option.

const (
	CaptchaCookieSecureDisabled CaptchaCookieSecure = "disabled"
	CaptchaCookieSecureEnabled  CaptchaCookieSecure = "enabled"
)

Defines values for CaptchaCookieSecure.

func (CaptchaCookieSecure) Valid

func (e CaptchaCookieSecure) Valid() bool

Valid indicates whether the value is a known member of the CaptchaCookieSecure enum.

type CaptchaCustFormat

type CaptchaCustFormat string

CaptchaCustFormat Format of the POST request to the verifying server.

const (
	CaptchaCustFormatJson   CaptchaCustFormat = "json"
	CaptchaCustFormatUrlEnc CaptchaCustFormat = "url-enc"
)

Defines values for CaptchaCustFormat.

func (CaptchaCustFormat) Valid

func (e CaptchaCustFormat) Valid() bool

Valid indicates whether the value is a known member of the CaptchaCustFormat enum.

type CaptchaCustScoreBased

type CaptchaCustScoreBased string

CaptchaCustScoreBased Enable or disable score-based verification.

const (
	CaptchaCustScoreBasedDisabled CaptchaCustScoreBased = "disabled"
	CaptchaCustScoreBasedEnabled  CaptchaCustScoreBased = "enabled"
)

Defines values for CaptchaCustScoreBased.

func (CaptchaCustScoreBased) Valid

func (e CaptchaCustScoreBased) Valid() bool

Valid indicates whether the value is a known member of the CaptchaCustScoreBased enum.

type CaptchaErrorHandler

type CaptchaErrorHandler struct {
	// Allow Act like the challenge is solved and set the valid captcha cookie for the configured valid-time (default: 5 min)
	Allow     bool                               `json:"allow"`
	ErrorKind CaptchaErrorHandlerErrorKind       `json:"error_kind"`
	Metadata  *map[string]map[string]interface{} `json:"metadata,omitempty"`

	// ValidTime Cookie lifetime in seconds.
	ValidTime *int `json:"valid_time,omitempty"`
}

CaptchaErrorHandler defines model for captcha_error_handler.

type CaptchaErrorHandlerErrorKind

type CaptchaErrorHandlerErrorKind string

CaptchaErrorHandlerErrorKind defines model for CaptchaErrorHandler.ErrorKind.

const (
	CaptchaErrorHandlerErrorKindN503        CaptchaErrorHandlerErrorKind = "503"
	CaptchaErrorHandlerErrorKindUnreachable CaptchaErrorHandlerErrorKind = "unreachable"
)

Defines values for CaptchaErrorHandlerErrorKind.

func (CaptchaErrorHandlerErrorKind) Valid

Valid indicates whether the value is a known member of the CaptchaErrorHandlerErrorKind enum.

type CaptchaIpCookie

type CaptchaIpCookie string

CaptchaIpCookie Adds the client's IP address into the HMAC.

const (
	CaptchaIpCookieDisable CaptchaIpCookie = "disable"
	CaptchaIpCookieEnable  CaptchaIpCookie = "enable"
)

Defines values for CaptchaIpCookie.

func (CaptchaIpCookie) Valid

func (e CaptchaIpCookie) Valid() bool

Valid indicates whether the value is a known member of the CaptchaIpCookie enum.

type CaptchaScoreOnlyOnce

type CaptchaScoreOnlyOnce string

CaptchaScoreOnlyOnce Request score only on first-page access.

const (
	CaptchaScoreOnlyOnceDisabled CaptchaScoreOnlyOnce = "disabled"
	CaptchaScoreOnlyOnceEnabled  CaptchaScoreOnlyOnce = "enabled"
)

Defines values for CaptchaScoreOnlyOnce.

func (CaptchaScoreOnlyOnce) Valid

func (e CaptchaScoreOnlyOnce) Valid() bool

Valid indicates whether the value is a known member of the CaptchaScoreOnlyOnce enum.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) AddCaEntryWithBody

func (c *Client) AddCaEntryWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddMapEntry

func (c *Client) AddMapEntry(ctx context.Context, parentName ParentName, params *AddMapEntryParams, body AddMapEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AddMapEntryWithBody

func (c *Client) AddMapEntryWithBody(ctx context.Context, parentName ParentName, params *AddMapEntryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateCaFileWithBody

func (c *Client) CreateCaFileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateStorageGeneralFileWithBody

func (c *Client) CreateStorageGeneralFileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateStorageMapFileWithBody

func (c *Client) CreateStorageMapFileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateStorageSSLCertificateWithBody

func (c *Client) CreateStorageSSLCertificateWithBody(ctx context.Context, params *CreateStorageSSLCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateStorageSSLCrtListFileWithBody

func (c *Client) CreateStorageSSLCrtListFileWithBody(ctx context.Context, params *CreateStorageSSLCrtListFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteCaFile

func (c *Client) DeleteCaFile(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteRuntimeMapEntry

func (c *Client) DeleteRuntimeMapEntry(ctx context.Context, parentName ParentName, id string, params *DeleteRuntimeMapEntryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteStorageGeneralFile

func (c *Client) DeleteStorageGeneralFile(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteStorageMap

func (c *Client) DeleteStorageMap(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteStorageSSLCertificate

func (c *Client) DeleteStorageSSLCertificate(ctx context.Context, name string, params *DeleteStorageSSLCertificateParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteStorageSSLCrtListFile

func (c *Client) DeleteStorageSSLCrtListFile(ctx context.Context, name string, params *DeleteStorageSSLCrtListFileParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAllCaFiles

func (c *Client) GetAllCaFiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAllCerts

func (c *Client) GetAllCerts(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAllStorageGeneralFiles

func (c *Client) GetAllStorageGeneralFiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAllStorageMapFiles

func (c *Client) GetAllStorageMapFiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAllStorageSSLCertificates

func (c *Client) GetAllStorageSSLCertificates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAllStorageSSLCrtListFiles

func (c *Client) GetAllStorageSSLCrtListFiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBackend

func (c *Client) GetBackend(ctx context.Context, name string, params *GetBackendParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBotmgmtProfile

func (c *Client) GetBotmgmtProfile(ctx context.Context, name string, params *GetBotmgmtProfileParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCaFile

func (c *Client) GetCaFile(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCaptcha

func (c *Client) GetCaptcha(ctx context.Context, name string, params *GetCaptchaParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetConfigurationVersion

func (c *Client) GetConfigurationVersion(ctx context.Context, params *GetConfigurationVersionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHAProxyConfiguration

func (c *Client) GetHAProxyConfiguration(ctx context.Context, params *GetHAProxyConfigurationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOneStorageGeneralFile

func (c *Client) GetOneStorageGeneralFile(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOneStorageMap

func (c *Client) GetOneStorageMap(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOneStorageSSLCertificate

func (c *Client) GetOneStorageSSLCertificate(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOneStorageSSLCrtListFile

func (c *Client) GetOneStorageSSLCrtListFile(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetReload

func (c *Client) GetReload(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetUDPlb

func (c *Client) GetUDPlb(ctx context.Context, name string, params *GetUDPlbParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetWafGlobal

func (c *Client) GetWafGlobal(ctx context.Context, params *GetWafGlobalParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetWafProfile

func (c *Client) GetWafProfile(ctx context.Context, name string, params *GetWafProfileParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostHAProxyConfigurationWithBody

func (c *Client) PostHAProxyConfigurationWithBody(ctx context.Context, params *PostHAProxyConfigurationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostHAProxyConfigurationWithTextBody

func (c *Client) PostHAProxyConfigurationWithTextBody(ctx context.Context, params *PostHAProxyConfigurationParams, body PostHAProxyConfigurationTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceCertWithBody

func (c *Client) ReplaceCertWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceRuntimeMapEntry

func (c *Client) ReplaceRuntimeMapEntry(ctx context.Context, parentName ParentName, id string, params *ReplaceRuntimeMapEntryParams, body ReplaceRuntimeMapEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceRuntimeMapEntryWithBody

func (c *Client) ReplaceRuntimeMapEntryWithBody(ctx context.Context, parentName ParentName, id string, params *ReplaceRuntimeMapEntryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceStorageGeneralFileWithBody

func (c *Client) ReplaceStorageGeneralFileWithBody(ctx context.Context, name string, params *ReplaceStorageGeneralFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceStorageMapFileWithBody

func (c *Client) ReplaceStorageMapFileWithBody(ctx context.Context, name string, params *ReplaceStorageMapFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceStorageMapFileWithTextBody

func (c *Client) ReplaceStorageMapFileWithTextBody(ctx context.Context, name string, params *ReplaceStorageMapFileParams, body ReplaceStorageMapFileTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceStorageSSLCertificateWithBody

func (c *Client) ReplaceStorageSSLCertificateWithBody(ctx context.Context, name string, params *ReplaceStorageSSLCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceStorageSSLCertificateWithTextBody

func (c *Client) ReplaceStorageSSLCertificateWithTextBody(ctx context.Context, name string, params *ReplaceStorageSSLCertificateParams, body ReplaceStorageSSLCertificateTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceStorageSSLCrtListFileWithBody

func (c *Client) ReplaceStorageSSLCrtListFileWithBody(ctx context.Context, name string, params *ReplaceStorageSSLCrtListFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceStorageSSLCrtListFileWithTextBody

func (c *Client) ReplaceStorageSSLCrtListFileWithTextBody(ctx context.Context, name string, params *ReplaceStorageSSLCrtListFileParams, body ReplaceStorageSSLCrtListFileTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetCaFileWithBody

func (c *Client) SetCaFileWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ShowRuntimeMap

func (c *Client) ShowRuntimeMap(ctx context.Context, parentName ParentName, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// GetBackend request
	GetBackend(ctx context.Context, name string, params *GetBackendParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBotmgmtProfile request
	GetBotmgmtProfile(ctx context.Context, name string, params *GetBotmgmtProfileParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCaptcha request
	GetCaptcha(ctx context.Context, name string, params *GetCaptchaParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHAProxyConfiguration request
	GetHAProxyConfiguration(ctx context.Context, params *GetHAProxyConfigurationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostHAProxyConfigurationWithBody request with any body
	PostHAProxyConfigurationWithBody(ctx context.Context, params *PostHAProxyConfigurationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostHAProxyConfigurationWithTextBody(ctx context.Context, params *PostHAProxyConfigurationParams, body PostHAProxyConfigurationTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetUDPlb request
	GetUDPlb(ctx context.Context, name string, params *GetUDPlbParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetConfigurationVersion request
	GetConfigurationVersion(ctx context.Context, params *GetConfigurationVersionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWafGlobal request
	GetWafGlobal(ctx context.Context, params *GetWafGlobalParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWafProfile request
	GetWafProfile(ctx context.Context, name string, params *GetWafProfileParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetReload request
	GetReload(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ShowRuntimeMap request
	ShowRuntimeMap(ctx context.Context, parentName ParentName, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddMapEntryWithBody request with any body
	AddMapEntryWithBody(ctx context.Context, parentName ParentName, params *AddMapEntryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddMapEntry(ctx context.Context, parentName ParentName, params *AddMapEntryParams, body AddMapEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteRuntimeMapEntry request
	DeleteRuntimeMapEntry(ctx context.Context, parentName ParentName, id string, params *DeleteRuntimeMapEntryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReplaceRuntimeMapEntryWithBody request with any body
	ReplaceRuntimeMapEntryWithBody(ctx context.Context, parentName ParentName, id string, params *ReplaceRuntimeMapEntryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ReplaceRuntimeMapEntry(ctx context.Context, parentName ParentName, id string, params *ReplaceRuntimeMapEntryParams, body ReplaceRuntimeMapEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAllCaFiles request
	GetAllCaFiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateCaFileWithBody request with any body
	CreateCaFileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteCaFile request
	DeleteCaFile(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCaFile request
	GetCaFile(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetCaFileWithBody request with any body
	SetCaFileWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddCaEntryWithBody request with any body
	AddCaEntryWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAllCerts request
	GetAllCerts(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReplaceCertWithBody request with any body
	ReplaceCertWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAllStorageGeneralFiles request
	GetAllStorageGeneralFiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateStorageGeneralFileWithBody request with any body
	CreateStorageGeneralFileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteStorageGeneralFile request
	DeleteStorageGeneralFile(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOneStorageGeneralFile request
	GetOneStorageGeneralFile(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReplaceStorageGeneralFileWithBody request with any body
	ReplaceStorageGeneralFileWithBody(ctx context.Context, name string, params *ReplaceStorageGeneralFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAllStorageMapFiles request
	GetAllStorageMapFiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateStorageMapFileWithBody request with any body
	CreateStorageMapFileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteStorageMap request
	DeleteStorageMap(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOneStorageMap request
	GetOneStorageMap(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReplaceStorageMapFileWithBody request with any body
	ReplaceStorageMapFileWithBody(ctx context.Context, name string, params *ReplaceStorageMapFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ReplaceStorageMapFileWithTextBody(ctx context.Context, name string, params *ReplaceStorageMapFileParams, body ReplaceStorageMapFileTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAllStorageSSLCertificates request
	GetAllStorageSSLCertificates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateStorageSSLCertificateWithBody request with any body
	CreateStorageSSLCertificateWithBody(ctx context.Context, params *CreateStorageSSLCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteStorageSSLCertificate request
	DeleteStorageSSLCertificate(ctx context.Context, name string, params *DeleteStorageSSLCertificateParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOneStorageSSLCertificate request
	GetOneStorageSSLCertificate(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReplaceStorageSSLCertificateWithBody request with any body
	ReplaceStorageSSLCertificateWithBody(ctx context.Context, name string, params *ReplaceStorageSSLCertificateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ReplaceStorageSSLCertificateWithTextBody(ctx context.Context, name string, params *ReplaceStorageSSLCertificateParams, body ReplaceStorageSSLCertificateTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAllStorageSSLCrtListFiles request
	GetAllStorageSSLCrtListFiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateStorageSSLCrtListFileWithBody request with any body
	CreateStorageSSLCrtListFileWithBody(ctx context.Context, params *CreateStorageSSLCrtListFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteStorageSSLCrtListFile request
	DeleteStorageSSLCrtListFile(ctx context.Context, name string, params *DeleteStorageSSLCrtListFileParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOneStorageSSLCrtListFile request
	GetOneStorageSSLCrtListFile(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReplaceStorageSSLCrtListFileWithBody request with any body
	ReplaceStorageSSLCrtListFileWithBody(ctx context.Context, name string, params *ReplaceStorageSSLCrtListFileParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ReplaceStorageSSLCrtListFileWithTextBody(ctx context.Context, name string, params *ReplaceStorageSSLCrtListFileParams, body ReplaceStorageSSLCrtListFileTextRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type Compression

type Compression struct {
	AlgoReq    *CompressionAlgoReq      `json:"algo-req,omitempty"`
	Algorithms *[]CompressionAlgorithms `json:"algorithms,omitempty"`
	AlgosRes   *[]CompressionAlgosRes   `json:"algos-res,omitempty"`
	Direction  *CompressionDirection    `json:"direction,omitempty"`
	MinsizeReq *int                     `json:"minsize_req,omitempty"`
	MinsizeRes *int                     `json:"minsize_res,omitempty"`
	Offload    *bool                    `json:"offload,omitempty"`
	Types      *[]string                `json:"types,omitempty"`
	TypesReq   *[]string                `json:"types-req,omitempty"`
	TypesRes   *[]string                `json:"types-res,omitempty"`
}

Compression defines model for compression.

type CompressionAlgoReq

type CompressionAlgoReq string

CompressionAlgoReq defines model for Compression.AlgoReq.

const (
	CompressionAlgoReqDeflate    CompressionAlgoReq = "deflate"
	CompressionAlgoReqGzip       CompressionAlgoReq = "gzip"
	CompressionAlgoReqIdentity   CompressionAlgoReq = "identity"
	CompressionAlgoReqRawDeflate CompressionAlgoReq = "raw-deflate"
)

Defines values for CompressionAlgoReq.

func (CompressionAlgoReq) Valid

func (e CompressionAlgoReq) Valid() bool

Valid indicates whether the value is a known member of the CompressionAlgoReq enum.

type CompressionAlgorithms

type CompressionAlgorithms string

CompressionAlgorithms defines model for Compression.Algorithms.

const (
	CompressionAlgorithmsDeflate    CompressionAlgorithms = "deflate"
	CompressionAlgorithmsGzip       CompressionAlgorithms = "gzip"
	CompressionAlgorithmsIdentity   CompressionAlgorithms = "identity"
	CompressionAlgorithmsRawDeflate CompressionAlgorithms = "raw-deflate"
)

Defines values for CompressionAlgorithms.

func (CompressionAlgorithms) Valid

func (e CompressionAlgorithms) Valid() bool

Valid indicates whether the value is a known member of the CompressionAlgorithms enum.

type CompressionAlgosRes

type CompressionAlgosRes string

CompressionAlgosRes defines model for Compression.AlgosRes.

const (
	CompressionAlgosResDeflate    CompressionAlgosRes = "deflate"
	CompressionAlgosResGzip       CompressionAlgosRes = "gzip"
	CompressionAlgosResIdentity   CompressionAlgosRes = "identity"
	CompressionAlgosResRawDeflate CompressionAlgosRes = "raw-deflate"
)

Defines values for CompressionAlgosRes.

func (CompressionAlgosRes) Valid

func (e CompressionAlgosRes) Valid() bool

Valid indicates whether the value is a known member of the CompressionAlgosRes enum.

type CompressionDirection

type CompressionDirection string

CompressionDirection defines model for Compression.Direction.

const (
	CompressionDirectionBoth     CompressionDirection = "both"
	CompressionDirectionRequest  CompressionDirection = "request"
	CompressionDirectionResponse CompressionDirection = "response"
)

Defines values for CompressionDirection.

func (CompressionDirection) Valid

func (e CompressionDirection) Valid() bool

Valid indicates whether the value is a known member of the CompressionDirection enum.

type ConfigStickTable

type ConfigStickTable struct {
	Expire   *int                               `json:"expire,omitempty"`
	Keylen   *int                               `json:"keylen,omitempty"`
	Metadata *map[string]map[string]interface{} `json:"metadata,omitempty"`
	Nopurge  *bool                              `json:"nopurge,omitempty"`
	Peers    *string                            `json:"peers,omitempty"`
	RecvOnly *bool                              `json:"recv_only,omitempty"`
	Size     *int                               `json:"size,omitempty"`
	Srvkey   *ConfigStickTableSrvkey            `json:"srvkey,omitempty"`
	Store    *string                            `json:"store,omitempty"`
	Type     *ConfigStickTableType              `json:"type,omitempty"`
	WriteTo  *string                            `json:"write_to,omitempty"`
}

ConfigStickTable defines model for config_stick_table.

type ConfigStickTableSrvkey

type ConfigStickTableSrvkey string

ConfigStickTableSrvkey defines model for ConfigStickTable.Srvkey.

const (
	ConfigStickTableSrvkeyAddr ConfigStickTableSrvkey = "addr"
	ConfigStickTableSrvkeyName ConfigStickTableSrvkey = "name"
)

Defines values for ConfigStickTableSrvkey.

func (ConfigStickTableSrvkey) Valid

func (e ConfigStickTableSrvkey) Valid() bool

Valid indicates whether the value is a known member of the ConfigStickTableSrvkey enum.

type ConfigStickTableType

type ConfigStickTableType string

ConfigStickTableType defines model for ConfigStickTable.Type.

const (
	ConfigStickTableTypeBinary  ConfigStickTableType = "binary"
	ConfigStickTableTypeInteger ConfigStickTableType = "integer"
	ConfigStickTableTypeIp      ConfigStickTableType = "ip"
	ConfigStickTableTypeIpv6    ConfigStickTableType = "ipv6"
	ConfigStickTableTypeString  ConfigStickTableType = "string"
)

Defines values for ConfigStickTableType.

func (ConfigStickTableType) Valid

func (e ConfigStickTableType) Valid() bool

Valid indicates whether the value is a known member of the ConfigStickTableType enum.

type Cookie struct {
	Attrs *[]struct {
		Value *string `json:"value,omitempty"`
	} `json:"attr,omitempty"`
	Domains *[]struct {
		Value *string `json:"value,omitempty"`
	} `json:"domain,omitempty"`
	Dynamic  *bool       `json:"dynamic,omitempty"`
	Httponly *bool       `json:"httponly,omitempty"`
	Indirect *bool       `json:"indirect,omitempty"`
	Maxidle  *int        `json:"maxidle,omitempty"`
	Maxlife  *int        `json:"maxlife,omitempty"`
	Name     string      `json:"name"`
	Nocache  *bool       `json:"nocache,omitempty"`
	Postonly *bool       `json:"postonly,omitempty"`
	Preserve *bool       `json:"preserve,omitempty"`
	Secure   *bool       `json:"secure,omitempty"`
	Type     *CookieType `json:"type,omitempty"`
}

Cookie defines model for cookie.

type CookieType

type CookieType string

CookieType defines model for Cookie.Type.

const (
	CookieTypeInsert  CookieType = "insert"
	CookieTypePrefix  CookieType = "prefix"
	CookieTypeRewrite CookieType = "rewrite"
)

Defines values for CookieType.

func (CookieType) Valid

func (e CookieType) Valid() bool

Valid indicates whether the value is a known member of the CookieType enum.

type CreateCaFileMultipartBody

type CreateCaFileMultipartBody struct {
	// FileUpload CA certificate file
	FileUpload openapi_types.File `json:"file_upload"`
}

CreateCaFileMultipartBody defines parameters for CreateCaFile.

type CreateCaFileMultipartRequestBody

type CreateCaFileMultipartRequestBody CreateCaFileMultipartBody

CreateCaFileMultipartRequestBody defines body for CreateCaFile for multipart/form-data ContentType.

type CreateStorageGeneralFileMultipartBody

type CreateStorageGeneralFileMultipartBody struct {
	// FileUpload General use file content
	FileUpload *openapi_types.File `json:"file_upload,omitempty"`
}

CreateStorageGeneralFileMultipartBody defines parameters for CreateStorageGeneralFile.

type CreateStorageGeneralFileMultipartRequestBody

type CreateStorageGeneralFileMultipartRequestBody CreateStorageGeneralFileMultipartBody

CreateStorageGeneralFileMultipartRequestBody defines body for CreateStorageGeneralFile for multipart/form-data ContentType.

type CreateStorageMapFileMultipartBody

type CreateStorageMapFileMultipartBody struct {
	// FileUpload The map file contents
	FileUpload *openapi_types.File `json:"file_upload,omitempty"`
}

CreateStorageMapFileMultipartBody defines parameters for CreateStorageMapFile.

type CreateStorageMapFileMultipartRequestBody

type CreateStorageMapFileMultipartRequestBody CreateStorageMapFileMultipartBody

CreateStorageMapFileMultipartRequestBody defines body for CreateStorageMapFile for multipart/form-data ContentType.

type CreateStorageSSLCertificateMultipartBody

type CreateStorageSSLCertificateMultipartBody struct {
	// FileUpload The SSL certificate to upload
	FileUpload *openapi_types.File `json:"file_upload,omitempty"`
}

CreateStorageSSLCertificateMultipartBody defines parameters for CreateStorageSSLCertificate.

type CreateStorageSSLCertificateMultipartRequestBody

type CreateStorageSSLCertificateMultipartRequestBody CreateStorageSSLCertificateMultipartBody

CreateStorageSSLCertificateMultipartRequestBody defines body for CreateStorageSSLCertificate for multipart/form-data ContentType.

type CreateStorageSSLCertificateParams

type CreateStorageSSLCertificateParams struct {
	// SkipReload If set, no reload will be initiated after update
	SkipReload *SkipReload `form:"skip_reload,omitempty" json:"skip_reload,omitempty"`

	// ForceReload If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	ForceReload *ForceReload `form:"force_reload,omitempty" json:"force_reload,omitempty"`
}

CreateStorageSSLCertificateParams defines parameters for CreateStorageSSLCertificate.

type CreateStorageSSLCrtListFileMultipartBody

type CreateStorageSSLCrtListFileMultipartBody struct {
	// FileUpload The certificate list to upload
	FileUpload *openapi_types.File `json:"file_upload,omitempty"`
}

CreateStorageSSLCrtListFileMultipartBody defines parameters for CreateStorageSSLCrtListFile.

type CreateStorageSSLCrtListFileMultipartRequestBody

type CreateStorageSSLCrtListFileMultipartRequestBody CreateStorageSSLCrtListFileMultipartBody

CreateStorageSSLCrtListFileMultipartRequestBody defines body for CreateStorageSSLCrtListFile for multipart/form-data ContentType.

type CreateStorageSSLCrtListFileParams

type CreateStorageSSLCrtListFileParams struct {
	// ForceReload If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	ForceReload *ForceReload `form:"force_reload,omitempty" json:"force_reload,omitempty"`
}

CreateStorageSSLCrtListFileParams defines parameters for CreateStorageSSLCrtListFile.

type DefaultError

type DefaultError = Error

DefaultError API Error

type DefaultServer

type DefaultServer = ServerParams

DefaultServer defines model for default_server.

type DeleteRuntimeMapEntryParams

type DeleteRuntimeMapEntryParams struct {
	// ForceSync If true, immediately syncs changes to disk
	ForceSync *bool `form:"force_sync,omitempty" json:"force_sync,omitempty"`
}

DeleteRuntimeMapEntryParams defines parameters for DeleteRuntimeMapEntry.

type DeleteStorageSSLCertificateParams

type DeleteStorageSSLCertificateParams struct {
	// SkipReload If set, no reload will be initiated after update
	SkipReload *SkipReload `form:"skip_reload,omitempty" json:"skip_reload,omitempty"`

	// ForceReload If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	ForceReload *ForceReload `form:"force_reload,omitempty" json:"force_reload,omitempty"`
}

DeleteStorageSSLCertificateParams defines parameters for DeleteStorageSSLCertificate.

type DeleteStorageSSLCrtListFileParams

type DeleteStorageSSLCrtListFileParams struct {
	// SkipReload If set, no reload will be initiated after update
	SkipReload *SkipReload `form:"skip_reload,omitempty" json:"skip_reload,omitempty"`

	// ForceReload If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	ForceReload *ForceReload `form:"force_reload,omitempty" json:"force_reload,omitempty"`
}

DeleteStorageSSLCrtListFileParams defines parameters for DeleteStorageSSLCrtListFile.

type DgramBind

type DgramBind struct {
	Address      *string                            `json:"address,omitempty"`
	Interface    *string                            `json:"interface,omitempty"`
	Metadata     *map[string]map[string]interface{} `json:"metadata,omitempty"`
	Name         *string                            `json:"name,omitempty"`
	Namespace    *string                            `json:"namespace,omitempty"`
	Nice         *int                               `json:"nice,omitempty"`
	Port         *int                               `json:"port,omitempty"`
	PortRangeEnd *int                               `json:"port-range-end,omitempty"`
	Shards       *int                               `json:"shards,omitempty"`
	Thread       *string                            `json:"thread,omitempty"`
	Transparent  *bool                              `json:"transparent,omitempty"`
}

DgramBind HAProxy log forward dgram bind configuration

type EmailAlert

type EmailAlert struct {
	From       string                             `json:"from"`
	Level      *EmailAlertLevel                   `json:"level,omitempty"`
	Mailers    string                             `json:"mailers"`
	Metadata   *map[string]map[string]interface{} `json:"metadata,omitempty"`
	Myhostname *string                            `json:"myhostname,omitempty"`
	To         string                             `json:"to"`
}

EmailAlert Send emails for important log messages.

type EmailAlertLevel

type EmailAlertLevel string

EmailAlertLevel defines model for EmailAlert.Level.

const (
	EmailAlertLevelAlert   EmailAlertLevel = "alert"
	EmailAlertLevelCrit    EmailAlertLevel = "crit"
	EmailAlertLevelDebug   EmailAlertLevel = "debug"
	EmailAlertLevelEmerg   EmailAlertLevel = "emerg"
	EmailAlertLevelErr     EmailAlertLevel = "err"
	EmailAlertLevelInfo    EmailAlertLevel = "info"
	EmailAlertLevelNotice  EmailAlertLevel = "notice"
	EmailAlertLevelWarning EmailAlertLevel = "warning"
)

Defines values for EmailAlertLevel.

func (EmailAlertLevel) Valid

func (e EmailAlertLevel) Valid() bool

Valid indicates whether the value is a known member of the EmailAlertLevel enum.

type Error

type Error struct {
	Code                 *int              `json:"code"`
	Message              *string           `json:"message"`
	Sha                  *string           `json:"sha,omitempty"`
	Uid                  *string           `json:"uid,omitempty"`
	AdditionalProperties map[string]string `json:"-"`
}

Error API Error

func (Error) Get

func (a Error) Get(fieldName string) (value string, found bool)

Getter for additional properties for Error. Returns the specified element and whether it was found

func (Error) MarshalJSON

func (a Error) MarshalJSON() ([]byte, error)

Override default JSON handling for Error to handle AdditionalProperties

func (*Error) Set

func (a *Error) Set(fieldName string, value string)

Setter for additional properties for Error

func (*Error) UnmarshalJSON

func (a *Error) UnmarshalJSON(b []byte) error

Override default JSON handling for Error to handle AdditionalProperties

type Errorfile

type Errorfile struct {
	Code *ErrorfileCode `json:"code,omitempty"`
	File *string        `json:"file,omitempty"`
}

Errorfile defines model for errorfile.

type ErrorfileCode

type ErrorfileCode int

ErrorfileCode defines model for Errorfile.Code.

const (
	ErrorfileCodeN200 ErrorfileCode = 200
	ErrorfileCodeN400 ErrorfileCode = 400
	ErrorfileCodeN401 ErrorfileCode = 401
	ErrorfileCodeN403 ErrorfileCode = 403
	ErrorfileCodeN404 ErrorfileCode = 404
	ErrorfileCodeN405 ErrorfileCode = 405
	ErrorfileCodeN407 ErrorfileCode = 407
	ErrorfileCodeN408 ErrorfileCode = 408
	ErrorfileCodeN410 ErrorfileCode = 410
	ErrorfileCodeN413 ErrorfileCode = 413
	ErrorfileCodeN425 ErrorfileCode = 425
	ErrorfileCodeN429 ErrorfileCode = 429
	ErrorfileCodeN500 ErrorfileCode = 500
	ErrorfileCodeN501 ErrorfileCode = 501
	ErrorfileCodeN502 ErrorfileCode = 502
	ErrorfileCodeN503 ErrorfileCode = 503
	ErrorfileCodeN504 ErrorfileCode = 504
)

Defines values for ErrorfileCode.

func (ErrorfileCode) Valid

func (e ErrorfileCode) Valid() bool

Valid indicates whether the value is a known member of the ErrorfileCode enum.

type Errorfiles

type Errorfiles struct {
	Codes    *[]ErrorfilesCodes                 `json:"codes,omitempty"`
	Metadata *map[string]map[string]interface{} `json:"metadata,omitempty"`
	Name     *string                            `json:"name,omitempty"`
}

Errorfiles defines model for errorfiles.

type ErrorfilesCodes

type ErrorfilesCodes int

ErrorfilesCodes defines model for Errorfiles.Codes.

const (
	ErrorfilesCodesN200 ErrorfilesCodes = 200
	ErrorfilesCodesN400 ErrorfilesCodes = 400
	ErrorfilesCodesN401 ErrorfilesCodes = 401
	ErrorfilesCodesN403 ErrorfilesCodes = 403
	ErrorfilesCodesN404 ErrorfilesCodes = 404
	ErrorfilesCodesN405 ErrorfilesCodes = 405
	ErrorfilesCodesN407 ErrorfilesCodes = 407
	ErrorfilesCodesN408 ErrorfilesCodes = 408
	ErrorfilesCodesN410 ErrorfilesCodes = 410
	ErrorfilesCodesN413 ErrorfilesCodes = 413
	ErrorfilesCodesN425 ErrorfilesCodes = 425
	ErrorfilesCodesN429 ErrorfilesCodes = 429
	ErrorfilesCodesN500 ErrorfilesCodes = 500
	ErrorfilesCodesN501 ErrorfilesCodes = 501
	ErrorfilesCodesN502 ErrorfilesCodes = 502
	ErrorfilesCodesN503 ErrorfilesCodes = 503
	ErrorfilesCodesN504 ErrorfilesCodes = 504
)

Defines values for ErrorfilesCodes.

func (ErrorfilesCodes) Valid

func (e ErrorfilesCodes) Valid() bool

Valid indicates whether the value is a known member of the ErrorfilesCodes enum.

type Errorloc

type Errorloc struct {
	Code     ErrorlocCode                       `json:"code"`
	Metadata *map[string]map[string]interface{} `json:"metadata,omitempty"`
	Url      string                             `json:"url"`
}

Errorloc defines model for errorloc.

type ErrorlocCode

type ErrorlocCode int

ErrorlocCode defines model for Errorloc.Code.

const (
	ErrorlocCodeN200 ErrorlocCode = 200
	ErrorlocCodeN400 ErrorlocCode = 400
	ErrorlocCodeN401 ErrorlocCode = 401
	ErrorlocCodeN403 ErrorlocCode = 403
	ErrorlocCodeN404 ErrorlocCode = 404
	ErrorlocCodeN405 ErrorlocCode = 405
	ErrorlocCodeN407 ErrorlocCode = 407
	ErrorlocCodeN408 ErrorlocCode = 408
	ErrorlocCodeN410 ErrorlocCode = 410
	ErrorlocCodeN413 ErrorlocCode = 413
	ErrorlocCodeN425 ErrorlocCode = 425
	ErrorlocCodeN429 ErrorlocCode = 429
	ErrorlocCodeN500 ErrorlocCode = 500
	ErrorlocCodeN501 ErrorlocCode = 501
	ErrorlocCodeN502 ErrorlocCode = 502
	ErrorlocCodeN503 ErrorlocCode = 503
	ErrorlocCodeN504 ErrorlocCode = 504
)

Defines values for ErrorlocCode.

func (ErrorlocCode) Valid

func (e ErrorlocCode) Valid() bool

Valid indicates whether the value is a known member of the ErrorlocCode enum.

type Filter

type Filter struct {
	Action       *string        `json:"action,omitempty"`
	Analyze      *FilterAnalyze `json:"analyze,omitempty"`
	AnalyzeAcl   *string        `json:"analyze_acl,omitempty"`
	AnalyzeFlags *string        `json:"analyze_flags,omitempty"`

	// AppName Name of the fcgi-app section this filter will use.
	AppName           *string `json:"app_name,omitempty"`
	ArgsLimit         *int    `json:"args_limit,omitempty"`
	AuditToSyslog     *bool   `json:"audit_to_syslog,omitempty"`
	AuditUpdateStatus *bool   `json:"audit_update_status,omitempty"`

	// BandwidthLimitName Filter name that will be used by 'set-bandwidth-limit' actions to reference a specific bandwidth limitation filter
	BandwidthLimitName *string     `json:"bandwidth_limit_name,omitempty"`
	BodyLimit          *int        `json:"body_limit,omitempty"`
	CacheName          *string     `json:"cache_name,omitempty"`
	Cond               *FilterCond `json:"cond,omitempty"`
	CondTest           *string     `json:"cond_test,omitempty"`
	Content            *string     `json:"content,omitempty"`

	// DefaultLimit The max number of bytes that can be forwarded over the period.
	// The value must be specified for per-stream and shared bandwidth limitation filters.
	// It follows the HAProxy size format and is expressed in bytes.
	DefaultLimit *int `json:"default_limit,omitempty"`

	// DefaultPeriod The default time period used to evaluate the bandwidth limitation rate.
	// It can be specified for per-stream bandwidth limitation filters only.
	// It follows the HAProxy time format and is expressed in milliseconds.
	DefaultPeriod *int    `json:"default_period,omitempty"`
	Identifier    *string `json:"identifier,omitempty"`
	JsonArgsLimit *int    `json:"json_args_limit,omitempty"`

	// Key A sample expression rule.
	// It describes what elements will be analyzed, extracted, combined, and used to select which table entry to update the counters.
	// It must be specified for shared bandwidth limitation filters only.
	Key      *string `json:"key,omitempty"`
	Learning *bool   `json:"learning,omitempty"`

	// Limit The max number of bytes that can be forwarded over the period.
	// The value must be specified for per-stream and shared bandwidth limitation filters.
	// It follows the HAProxy size format and is expressed in bytes.
	Limit            *int                               `json:"limit,omitempty"`
	Log              *bool                              `json:"log,omitempty"`
	LogExtNonzero    *bool                              `json:"log_ext_nonzero,omitempty"`
	LogExtScore      *bool                              `json:"log_ext_score,omitempty"`
	LogExtensive     *FilterLogExtensive                `json:"log_extensive,omitempty"`
	LogHostHeader    *bool                              `json:"log_host_header,omitempty"`
	LogHostHeaderLen *int                               `json:"log_host_header_len,omitempty"`
	LogLevel         *string                            `json:"log_level,omitempty"`
	LogNonzero       *bool                              `json:"log_nonzero,omitempty"`
	LogWl            *bool                              `json:"log_wl,omitempty"`
	Metadata         *map[string]map[string]interface{} `json:"metadata,omitempty"`

	// MinSize The optional minimum number of bytes forwarded at a time by a stream excluding the last packet that may be smaller.
	// This value can be specified for per-stream and shared bandwidth limitation filters.
	// It follows the HAProxy size format and is expressed in bytes.
	MinSize                *int        `json:"min_size,omitempty"`
	Mode                   *FilterMode `json:"mode,omitempty"`
	PreserveAcceptEncoding *bool       `json:"preserve_accept_encoding,omitempty"`
	Profile                *string     `json:"profile,omitempty"`
	RuleFiles              *[]string   `json:"rule-files,omitempty"`
	RuleProfile            *int        `json:"rule_profile,omitempty"`
	SpoeConfig             *string     `json:"spoe_config,omitempty"`
	SpoeEngine             *string     `json:"spoe_engine,omitempty"`
	SslcrlConfig           *string     `json:"sslcrl_config,omitempty"`
	SslcrlId               *string     `json:"sslcrl_id,omitempty"`

	// Table An optional table to be used instead of the default one, which is the stick-table declared in the current proxy.
	// It can be specified for shared bandwidth limitation filters only.
	Table              *string    `json:"table,omitempty"`
	TableCategorized   *bool      `json:"table_categorized,omitempty"`
	TableNonzero       *bool      `json:"table_nonzero,omitempty"`
	Timeout            *int       `json:"timeout,omitempty"`
	TimeoutDenyStatus  *int       `json:"timeout_deny_status,omitempty"`
	TimeoutDisruptive  *bool      `json:"timeout_disruptive,omitempty"`
	TimeoutRule        *int       `json:"timeout_rule,omitempty"`
	TraceHexdump       *bool      `json:"trace_hexdump,omitempty"`
	TraceName          *string    `json:"trace_name,omitempty"`
	TraceRndForwarding *bool      `json:"trace_rnd_forwarding,omitempty"`
	TraceRndParsing    *bool      `json:"trace_rnd_parsing,omitempty"`
	Type               FilterType `json:"type"`
	UseCustomcore      *bool      `json:"use_customcore,omitempty"`
	UseUniqueIdFormat  *bool      `json:"use_unique_id_format,omitempty"`
	UseVars            *bool      `json:"use_vars,omitempty"`
	WaitForHeaders     *bool      `json:"wait_for_headers,omitempty"`
}

Filter HAProxy filters

type FilterAnalyze

type FilterAnalyze string

FilterAnalyze defines model for Filter.Analyze.

const (
	FilterAnalyzeAll  FilterAnalyze = "all"
	FilterAnalyzeSqli FilterAnalyze = "sqli"
	FilterAnalyzeXss  FilterAnalyze = "xss"
)

Defines values for FilterAnalyze.

func (FilterAnalyze) Valid

func (e FilterAnalyze) Valid() bool

Valid indicates whether the value is a known member of the FilterAnalyze enum.

type FilterCond

type FilterCond string

FilterCond defines model for Filter.Cond.

const (
	FilterCondIf     FilterCond = "if"
	FilterCondUnless FilterCond = "unless"
)

Defines values for FilterCond.

func (FilterCond) Valid

func (e FilterCond) Valid() bool

Valid indicates whether the value is a known member of the FilterCond enum.

type FilterLogExtensive

type FilterLogExtensive string

FilterLogExtensive defines model for Filter.LogExtensive.

const (
	FilterLogExtensiveExtensive    FilterLogExtensive = "extensive"
	FilterLogExtensiveExtensiveMsg FilterLogExtensive = "extensive+msg"
)

Defines values for FilterLogExtensive.

func (FilterLogExtensive) Valid

func (e FilterLogExtensive) Valid() bool

Valid indicates whether the value is a known member of the FilterLogExtensive enum.

type FilterMode

type FilterMode string

FilterMode defines model for Filter.Mode.

const (
	FilterModeRelaxed FilterMode = "relaxed"
	FilterModeStrict  FilterMode = "strict"
)

Defines values for FilterMode.

func (FilterMode) Valid

func (e FilterMode) Valid() bool

Valid indicates whether the value is a known member of the FilterMode enum.

type FilterType

type FilterType string

FilterType defines model for Filter.Type.

const (
	FilterTypeBotmgmt     FilterType = "botmgmt"
	FilterTypeBwlimIn     FilterType = "bwlim-in"
	FilterTypeBwlimOut    FilterType = "bwlim-out"
	FilterTypeCache       FilterType = "cache"
	FilterTypeCompression FilterType = "compression"
	FilterTypeFcgiApp     FilterType = "fcgi-app"
	FilterTypeHtmldom     FilterType = "htmldom"
	FilterTypeModsecurity FilterType = "modsecurity"
	FilterTypeSpoe        FilterType = "spoe"
	FilterTypeSslcrl      FilterType = "sslcrl"
	FilterTypeTrace       FilterType = "trace"
	FilterTypeWaf         FilterType = "waf"
)

Defines values for FilterType.

func (FilterType) Valid

func (e FilterType) Valid() bool

Valid indicates whether the value is a known member of the FilterType enum.

type Filters

type Filters = []Filter

Filters HAProxy filters array (corresponds to filter directive)

type ForceReload

type ForceReload = bool

ForceReload defines model for force_reload.

type Forwardfor

type Forwardfor struct {
	Enabled ForwardforEnabled `json:"enabled"`
	Except  *string           `json:"except,omitempty"`
	Header  *string           `json:"header,omitempty"`
	Ifnone  *bool             `json:"ifnone,omitempty"`
}

Forwardfor defines model for forwardfor.

type ForwardforEnabled

type ForwardforEnabled string

ForwardforEnabled defines model for Forwardfor.Enabled.

const (
	ForwardforEnabledEnabled ForwardforEnabled = "enabled"
)

Defines values for ForwardforEnabled.

func (ForwardforEnabled) Valid

func (e ForwardforEnabled) Valid() bool

Valid indicates whether the value is a known member of the ForwardforEnabled enum.

type FullSection

type FullSection = bool

FullSection defines model for full_section.

type GeneralFile

type GeneralFile struct {
	Description *string `json:"description,omitempty"`
	File        *string `json:"file,omitempty"`
	Id          *string `json:"id,omitempty"`

	// Size File size in bytes.
	Size        *int    `json:"size,omitempty"`
	StorageName *string `json:"storage_name,omitempty"`
}

GeneralFile General use file

type GeneralFiles

type GeneralFiles = []GeneralFile

GeneralFiles Array of general use files

type GetBackendParams

type GetBackendParams struct {
	// TransactionId ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	TransactionId *TransactionId `form:"transaction_id,omitempty" json:"transaction_id,omitempty"`

	// FullSection Indicates if the action affects the specified child resources as well
	FullSection *FullSection `form:"full_section,omitempty" json:"full_section,omitempty"`
}

GetBackendParams defines parameters for GetBackend.

type GetBotmgmtProfileParams

type GetBotmgmtProfileParams struct {
	// TransactionId ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	TransactionId *TransactionId `form:"transaction_id,omitempty" json:"transaction_id,omitempty"`

	// FullSection Indicates if the action affects the specified child resources as well
	FullSection *FullSection `form:"full_section,omitempty" json:"full_section,omitempty"`
}

GetBotmgmtProfileParams defines parameters for GetBotmgmtProfile.

type GetCaptchaParams

type GetCaptchaParams struct {
	// TransactionId ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	TransactionId *TransactionId `form:"transaction_id,omitempty" json:"transaction_id,omitempty"`

	// FullSection Indicates if the action affects the specified child resources as well
	FullSection *FullSection `form:"full_section,omitempty" json:"full_section,omitempty"`
}

GetCaptchaParams defines parameters for GetCaptcha.

type GetConfigurationVersionParams

type GetConfigurationVersionParams struct {
	// TransactionId ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	TransactionId *TransactionId `form:"transaction_id,omitempty" json:"transaction_id,omitempty"`
}

GetConfigurationVersionParams defines parameters for GetConfigurationVersion.

type GetHAProxyConfigurationParams

type GetHAProxyConfigurationParams struct {
	// TransactionId ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	TransactionId *TransactionId `form:"transaction_id,omitempty" json:"transaction_id,omitempty"`

	// Version Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	Version *Version `form:"version,omitempty" json:"version,omitempty"`
}

GetHAProxyConfigurationParams defines parameters for GetHAProxyConfiguration.

type GetUDPlbParams

type GetUDPlbParams struct {
	// TransactionId ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	TransactionId *TransactionId `form:"transaction_id,omitempty" json:"transaction_id,omitempty"`

	// FullSection Indicates if the action affects the specified child resources as well
	FullSection *FullSection `form:"full_section,omitempty" json:"full_section,omitempty"`
}

GetUDPlbParams defines parameters for GetUDPlb.

type GetWafGlobalParams

type GetWafGlobalParams struct {
	// TransactionId ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	TransactionId *TransactionId `form:"transaction_id,omitempty" json:"transaction_id,omitempty"`

	// FullSection Indicates if the action affects the specified child resources as well
	FullSection *FullSection `form:"full_section,omitempty" json:"full_section,omitempty"`
}

GetWafGlobalParams defines parameters for GetWafGlobal.

type GetWafProfileParams

type GetWafProfileParams struct {
	// TransactionId ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	TransactionId *TransactionId `form:"transaction_id,omitempty" json:"transaction_id,omitempty"`

	// FullSection Indicates if the action affects the specified child resources as well
	FullSection *FullSection `form:"full_section,omitempty" json:"full_section,omitempty"`
}

GetWafProfileParams defines parameters for GetWafProfile.

type HashType

type HashType struct {
	Function *HashTypeFunction `json:"function,omitempty"`
	Method   *HashTypeMethod   `json:"method,omitempty"`
	Modifier *HashTypeModifier `json:"modifier,omitempty"`
}

HashType defines model for hash_type.

type HashTypeFunction

type HashTypeFunction string

HashTypeFunction defines model for HashType.Function.

const (
	HashTypeFunctionCrc32 HashTypeFunction = "crc32"
	HashTypeFunctionDjb2  HashTypeFunction = "djb2"
	HashTypeFunctionNone  HashTypeFunction = "none"
	HashTypeFunctionSdbm  HashTypeFunction = "sdbm"
	HashTypeFunctionWt6   HashTypeFunction = "wt6"
)

Defines values for HashTypeFunction.

func (HashTypeFunction) Valid

func (e HashTypeFunction) Valid() bool

Valid indicates whether the value is a known member of the HashTypeFunction enum.

type HashTypeMethod

type HashTypeMethod string

HashTypeMethod defines model for HashType.Method.

const (
	HashTypeMethodConsistent HashTypeMethod = "consistent"
	HashTypeMethodMapBased   HashTypeMethod = "map-based"
)

Defines values for HashTypeMethod.

func (HashTypeMethod) Valid

func (e HashTypeMethod) Valid() bool

Valid indicates whether the value is a known member of the HashTypeMethod enum.

type HashTypeModifier

type HashTypeModifier string

HashTypeModifier defines model for HashType.Modifier.

const (
	HashTypeModifierAvalanche HashTypeModifier = "avalanche"
)

Defines values for HashTypeModifier.

func (HashTypeModifier) Valid

func (e HashTypeModifier) Valid() bool

Valid indicates whether the value is a known member of the HashTypeModifier enum.

type HttpAfterResponseRule

type HttpAfterResponseRule struct {
	AclFile       *string                            `json:"acl_file,omitempty"`
	AclKeyfmt     *string                            `json:"acl_keyfmt,omitempty"`
	CaptureId     *int                               `json:"capture_id,omitempty"`
	CaptureLen    *int                               `json:"capture_len,omitempty"`
	CaptureSample *string                            `json:"capture_sample,omitempty"`
	Cond          *HttpAfterResponseRuleCond         `json:"cond,omitempty"`
	CondTest      *string                            `json:"cond_test,omitempty"`
	HdrFormat     *string                            `json:"hdr_format,omitempty"`
	HdrMatch      *string                            `json:"hdr_match,omitempty"`
	HdrMethod     *string                            `json:"hdr_method,omitempty"`
	HdrName       *string                            `json:"hdr_name,omitempty"`
	LogLevel      *HttpAfterResponseRuleLogLevel     `json:"log_level,omitempty"`
	MapFile       *string                            `json:"map_file,omitempty"`
	MapKeyfmt     *string                            `json:"map_keyfmt,omitempty"`
	MapValuefmt   *string                            `json:"map_valuefmt,omitempty"`
	Metadata      *map[string]map[string]interface{} `json:"metadata,omitempty"`
	ScCnt         *int                               `json:"sc_cnt,omitempty"`
	ScExpr        *string                            `json:"sc_expr,omitempty"`
	ScId          *int                               `json:"sc_id,omitempty"`
	ScIdx         *int                               `json:"sc_idx,omitempty"`
	ScInt         *int                               `json:"sc_int,omitempty"`
	ScMessage     *string                            `json:"sc_message,omitempty"`
	Status        *int                               `json:"status,omitempty"`
	StatusReason  *string                            `json:"status_reason,omitempty"`
	StrictMode    *HttpAfterResponseRuleStrictMode   `json:"strict_mode,omitempty"`
	Type          HttpAfterResponseRuleType          `json:"type"`
	VarExpr       *string                            `json:"var_expr,omitempty"`
	VarFormat     *string                            `json:"var_format,omitempty"`
	VarName       *string                            `json:"var_name,omitempty"`
	VarScope      *string                            `json:"var_scope,omitempty"`
}

HttpAfterResponseRule HAProxy HTTP after response rule configuration (corresponds to http-after-response directives)

type HttpAfterResponseRuleCond

type HttpAfterResponseRuleCond string

HttpAfterResponseRuleCond defines model for HttpAfterResponseRule.Cond.

const (
	HttpAfterResponseRuleCondIf     HttpAfterResponseRuleCond = "if"
	HttpAfterResponseRuleCondUnless HttpAfterResponseRuleCond = "unless"
)

Defines values for HttpAfterResponseRuleCond.

func (HttpAfterResponseRuleCond) Valid

func (e HttpAfterResponseRuleCond) Valid() bool

Valid indicates whether the value is a known member of the HttpAfterResponseRuleCond enum.

type HttpAfterResponseRuleLogLevel

type HttpAfterResponseRuleLogLevel string

HttpAfterResponseRuleLogLevel defines model for HttpAfterResponseRule.LogLevel.

const (
	HttpAfterResponseRuleLogLevelAlert   HttpAfterResponseRuleLogLevel = "alert"
	HttpAfterResponseRuleLogLevelCrit    HttpAfterResponseRuleLogLevel = "crit"
	HttpAfterResponseRuleLogLevelDebug   HttpAfterResponseRuleLogLevel = "debug"
	HttpAfterResponseRuleLogLevelEmerg   HttpAfterResponseRuleLogLevel = "emerg"
	HttpAfterResponseRuleLogLevelErr     HttpAfterResponseRuleLogLevel = "err"
	HttpAfterResponseRuleLogLevelInfo    HttpAfterResponseRuleLogLevel = "info"
	HttpAfterResponseRuleLogLevelNotice  HttpAfterResponseRuleLogLevel = "notice"
	HttpAfterResponseRuleLogLevelSilent  HttpAfterResponseRuleLogLevel = "silent"
	HttpAfterResponseRuleLogLevelWarning HttpAfterResponseRuleLogLevel = "warning"
)

Defines values for HttpAfterResponseRuleLogLevel.

func (HttpAfterResponseRuleLogLevel) Valid

Valid indicates whether the value is a known member of the HttpAfterResponseRuleLogLevel enum.

type HttpAfterResponseRuleStrictMode

type HttpAfterResponseRuleStrictMode string

HttpAfterResponseRuleStrictMode defines model for HttpAfterResponseRule.StrictMode.

const (
	HttpAfterResponseRuleStrictModeOff HttpAfterResponseRuleStrictMode = "off"
	HttpAfterResponseRuleStrictModeOn  HttpAfterResponseRuleStrictMode = "on"
)

Defines values for HttpAfterResponseRuleStrictMode.

func (HttpAfterResponseRuleStrictMode) Valid

Valid indicates whether the value is a known member of the HttpAfterResponseRuleStrictMode enum.

type HttpAfterResponseRuleType

type HttpAfterResponseRuleType string

HttpAfterResponseRuleType defines model for HttpAfterResponseRule.Type.

const (
	HttpAfterResponseRuleTypeAddHeader     HttpAfterResponseRuleType = "add-header"
	HttpAfterResponseRuleTypeAllow         HttpAfterResponseRuleType = "allow"
	HttpAfterResponseRuleTypeCapture       HttpAfterResponseRuleType = "capture"
	HttpAfterResponseRuleTypeDelAcl        HttpAfterResponseRuleType = "del-acl"
	HttpAfterResponseRuleTypeDelHeader     HttpAfterResponseRuleType = "del-header"
	HttpAfterResponseRuleTypeDelMap        HttpAfterResponseRuleType = "del-map"
	HttpAfterResponseRuleTypeDoLog         HttpAfterResponseRuleType = "do-log"
	HttpAfterResponseRuleTypeReplaceHeader HttpAfterResponseRuleType = "replace-header"
	HttpAfterResponseRuleTypeReplaceValue  HttpAfterResponseRuleType = "replace-value"
	HttpAfterResponseRuleTypeScAddGpc      HttpAfterResponseRuleType = "sc-add-gpc"
	HttpAfterResponseRuleTypeScIncGpc      HttpAfterResponseRuleType = "sc-inc-gpc"
	HttpAfterResponseRuleTypeScIncGpc0     HttpAfterResponseRuleType = "sc-inc-gpc0"
	HttpAfterResponseRuleTypeScIncGpc1     HttpAfterResponseRuleType = "sc-inc-gpc1"
	HttpAfterResponseRuleTypeScSetGpt      HttpAfterResponseRuleType = "sc-set-gpt"
	HttpAfterResponseRuleTypeScSetGpt0     HttpAfterResponseRuleType = "sc-set-gpt0"
	HttpAfterResponseRuleTypeScSetGptstr   HttpAfterResponseRuleType = "sc-set-gptstr"
	HttpAfterResponseRuleTypeSetHeader     HttpAfterResponseRuleType = "set-header"
	HttpAfterResponseRuleTypeSetLogLevel   HttpAfterResponseRuleType = "set-log-level"
	HttpAfterResponseRuleTypeSetMap        HttpAfterResponseRuleType = "set-map"
	HttpAfterResponseRuleTypeSetStatus     HttpAfterResponseRuleType = "set-status"
	HttpAfterResponseRuleTypeSetVar        HttpAfterResponseRuleType = "set-var"
	HttpAfterResponseRuleTypeSetVarFmt     HttpAfterResponseRuleType = "set-var-fmt"
	HttpAfterResponseRuleTypeStrictMode    HttpAfterResponseRuleType = "strict-mode"
	HttpAfterResponseRuleTypeUnsetVar      HttpAfterResponseRuleType = "unset-var"
)

Defines values for HttpAfterResponseRuleType.

func (HttpAfterResponseRuleType) Valid

func (e HttpAfterResponseRuleType) Valid() bool

Valid indicates whether the value is a known member of the HttpAfterResponseRuleType enum.

type HttpAfterResponseRules

type HttpAfterResponseRules = []HttpAfterResponseRule

HttpAfterResponseRules HAProxy HTTP after response rules array (corresponds to http-after-response directives)

type HttpCheck

type HttpCheck struct {
	Addr            *string                            `json:"addr,omitempty"`
	Alpn            *string                            `json:"alpn,omitempty"`
	Body            *string                            `json:"body,omitempty"`
	BodyLogFormat   *string                            `json:"body_log_format,omitempty"`
	CheckComment    *string                            `json:"check_comment,omitempty"`
	Default         *bool                              `json:"default,omitempty"`
	ErrorStatus     *HttpCheckErrorStatus              `json:"error_status,omitempty"`
	ExclamationMark *bool                              `json:"exclamation_mark,omitempty"`
	CheckHeaders    *[]ReturnHeader                    `json:"headers,omitempty"`
	Linger          *bool                              `json:"linger,omitempty"`
	Match           *HttpCheckMatch                    `json:"match,omitempty"`
	Metadata        *map[string]map[string]interface{} `json:"metadata,omitempty"`
	Method          *HttpCheckMethod                   `json:"method,omitempty"`
	MinRecv         *int                               `json:"min_recv,omitempty"`
	OkStatus        *HttpCheckOkStatus                 `json:"ok_status,omitempty"`
	OnError         *string                            `json:"on_error,omitempty"`
	OnSuccess       *string                            `json:"on_success,omitempty"`
	Pattern         *string                            `json:"pattern,omitempty"`
	Port            *int                               `json:"port,omitempty"`
	PortString      *string                            `json:"port_string,omitempty"`
	Proto           *string                            `json:"proto,omitempty"`
	SendProxy       *bool                              `json:"send_proxy,omitempty"`
	Sni             *string                            `json:"sni,omitempty"`
	Ssl             *bool                              `json:"ssl,omitempty"`
	StatusCode      *string                            `json:"status-code,omitempty"`
	ToutStatus      *HttpCheckToutStatus               `json:"tout_status,omitempty"`
	Type            HttpCheckType                      `json:"type"`
	Uri             *string                            `json:"uri,omitempty"`
	UriLogFormat    *string                            `json:"uri_log_format,omitempty"`
	VarExpr         *string                            `json:"var_expr,omitempty"`
	VarFormat       *string                            `json:"var_format,omitempty"`
	VarName         *string                            `json:"var_name,omitempty"`
	VarScope        *string                            `json:"var_scope,omitempty"`
	Version         *string                            `json:"version,omitempty"`
	ViaSocks4       *bool                              `json:"via_socks4,omitempty"`
}

HttpCheck defines model for http_check.

type HttpCheckErrorStatus

type HttpCheckErrorStatus string

HttpCheckErrorStatus defines model for HttpCheck.ErrorStatus.

const (
	HttpCheckErrorStatusL4CON HttpCheckErrorStatus = "L4CON"
	HttpCheckErrorStatusL6RSP HttpCheckErrorStatus = "L6RSP"
	HttpCheckErrorStatusL7OKC HttpCheckErrorStatus = "L7OKC"
	HttpCheckErrorStatusL7RSP HttpCheckErrorStatus = "L7RSP"
	HttpCheckErrorStatusL7STS HttpCheckErrorStatus = "L7STS"
)

Defines values for HttpCheckErrorStatus.

func (HttpCheckErrorStatus) Valid

func (e HttpCheckErrorStatus) Valid() bool

Valid indicates whether the value is a known member of the HttpCheckErrorStatus enum.

type HttpCheckMatch

type HttpCheckMatch string

HttpCheckMatch defines model for HttpCheck.Match.

const (
	HttpCheckMatchFhdr    HttpCheckMatch = "fhdr"
	HttpCheckMatchHdr     HttpCheckMatch = "hdr"
	HttpCheckMatchRstatus HttpCheckMatch = "rstatus"
	HttpCheckMatchRstring HttpCheckMatch = "rstring"
	HttpCheckMatchStatus  HttpCheckMatch = "status"
	HttpCheckMatchString  HttpCheckMatch = "string"
)

Defines values for HttpCheckMatch.

func (HttpCheckMatch) Valid

func (e HttpCheckMatch) Valid() bool

Valid indicates whether the value is a known member of the HttpCheckMatch enum.

type HttpCheckMethod

type HttpCheckMethod string

HttpCheckMethod defines model for HttpCheck.Method.

const (
	HttpCheckMethodCONNECT HttpCheckMethod = "CONNECT"
	HttpCheckMethodDELETE  HttpCheckMethod = "DELETE"
	HttpCheckMethodGET     HttpCheckMethod = "GET"
	HttpCheckMethodHEAD    HttpCheckMethod = "HEAD"
	HttpCheckMethodOPTIONS HttpCheckMethod = "OPTIONS"
	HttpCheckMethodPATCH   HttpCheckMethod = "PATCH"
	HttpCheckMethodPOST    HttpCheckMethod = "POST"
	HttpCheckMethodPUT     HttpCheckMethod = "PUT"
	HttpCheckMethodTRACE   HttpCheckMethod = "TRACE"
)

Defines values for HttpCheckMethod.

func (HttpCheckMethod) Valid

func (e HttpCheckMethod) Valid() bool

Valid indicates whether the value is a known member of the HttpCheckMethod enum.

type HttpCheckOkStatus

type HttpCheckOkStatus string

HttpCheckOkStatus defines model for HttpCheck.OkStatus.

const (
	HttpCheckOkStatusL4OK  HttpCheckOkStatus = "L4OK"
	HttpCheckOkStatusL6OK  HttpCheckOkStatus = "L6OK"
	HttpCheckOkStatusL7OK  HttpCheckOkStatus = "L7OK"
	HttpCheckOkStatusL7OKC HttpCheckOkStatus = "L7OKC"
)

Defines values for HttpCheckOkStatus.

func (HttpCheckOkStatus) Valid

func (e HttpCheckOkStatus) Valid() bool

Valid indicates whether the value is a known member of the HttpCheckOkStatus enum.

type HttpCheckToutStatus

type HttpCheckToutStatus string

HttpCheckToutStatus defines model for HttpCheck.ToutStatus.

const (
	HttpCheckToutStatusL4TOUT HttpCheckToutStatus = "L4TOUT"
	HttpCheckToutStatusL6TOUT HttpCheckToutStatus = "L6TOUT"
	HttpCheckToutStatusL7TOUT HttpCheckToutStatus = "L7TOUT"
)

Defines values for HttpCheckToutStatus.

func (HttpCheckToutStatus) Valid

func (e HttpCheckToutStatus) Valid() bool

Valid indicates whether the value is a known member of the HttpCheckToutStatus enum.

type HttpCheckType

type HttpCheckType string

HttpCheckType defines model for HttpCheck.Type.

const (
	HttpCheckTypeComment      HttpCheckType = "comment"
	HttpCheckTypeConnect      HttpCheckType = "connect"
	HttpCheckTypeDisableOn404 HttpCheckType = "disable-on-404"
	HttpCheckTypeExpect       HttpCheckType = "expect"
	HttpCheckTypeSend         HttpCheckType = "send"
	HttpCheckTypeSendState    HttpCheckType = "send-state"
	HttpCheckTypeSetVar       HttpCheckType = "set-var"
	HttpCheckTypeSetVarFmt    HttpCheckType = "set-var-fmt"
	HttpCheckTypeUnsetVar     HttpCheckType = "unset-var"
)

Defines values for HttpCheckType.

func (HttpCheckType) Valid

func (e HttpCheckType) Valid() bool

Valid indicates whether the value is a known member of the HttpCheckType enum.

type HttpChecks

type HttpChecks = []HttpCheck

HttpChecks defines model for http_checks.

type HttpErrorRule

type HttpErrorRule struct {
	Metadata            *map[string]map[string]interface{} `json:"metadata,omitempty"`
	ReturnContent       *string                            `json:"return_content,omitempty"`
	ReturnContentFormat *HttpErrorRuleReturnContentFormat  `json:"return_content_format,omitempty"`
	ReturnContentType   *string                            `json:"return_content_type,omitempty"`
	ReturnHeaders       *[]ReturnHeader                    `json:"return_hdrs,omitempty"`
	Status              HttpErrorRuleStatus                `json:"status"`
	Type                HttpErrorRuleType                  `json:"type"`
}

HttpErrorRule HAProxy HTTP error rule configuration (corresponds to http-error directives)

type HttpErrorRuleReturnContentFormat

type HttpErrorRuleReturnContentFormat string

HttpErrorRuleReturnContentFormat defines model for HttpErrorRule.ReturnContentFormat.

const (
	HttpErrorRuleReturnContentFormatDefaultErrorfiles HttpErrorRuleReturnContentFormat = "default-errorfiles"
	HttpErrorRuleReturnContentFormatErrorfile         HttpErrorRuleReturnContentFormat = "errorfile"
	HttpErrorRuleReturnContentFormatErrorfiles        HttpErrorRuleReturnContentFormat = "errorfiles"
	HttpErrorRuleReturnContentFormatFile              HttpErrorRuleReturnContentFormat = "file"
	HttpErrorRuleReturnContentFormatLfFile            HttpErrorRuleReturnContentFormat = "lf-file"
	HttpErrorRuleReturnContentFormatLfString          HttpErrorRuleReturnContentFormat = "lf-string"
	HttpErrorRuleReturnContentFormatString            HttpErrorRuleReturnContentFormat = "string"
)

Defines values for HttpErrorRuleReturnContentFormat.

func (HttpErrorRuleReturnContentFormat) Valid

Valid indicates whether the value is a known member of the HttpErrorRuleReturnContentFormat enum.

type HttpErrorRuleStatus

type HttpErrorRuleStatus int

HttpErrorRuleStatus defines model for HttpErrorRule.Status.

const (
	HttpErrorRuleStatusN200 HttpErrorRuleStatus = 200
	HttpErrorRuleStatusN400 HttpErrorRuleStatus = 400
	HttpErrorRuleStatusN401 HttpErrorRuleStatus = 401
	HttpErrorRuleStatusN403 HttpErrorRuleStatus = 403
	HttpErrorRuleStatusN404 HttpErrorRuleStatus = 404
	HttpErrorRuleStatusN405 HttpErrorRuleStatus = 405
	HttpErrorRuleStatusN407 HttpErrorRuleStatus = 407
	HttpErrorRuleStatusN408 HttpErrorRuleStatus = 408
	HttpErrorRuleStatusN410 HttpErrorRuleStatus = 410
	HttpErrorRuleStatusN413 HttpErrorRuleStatus = 413
	HttpErrorRuleStatusN425 HttpErrorRuleStatus = 425
	HttpErrorRuleStatusN429 HttpErrorRuleStatus = 429
	HttpErrorRuleStatusN500 HttpErrorRuleStatus = 500
	HttpErrorRuleStatusN501 HttpErrorRuleStatus = 501
	HttpErrorRuleStatusN502 HttpErrorRuleStatus = 502
	HttpErrorRuleStatusN503 HttpErrorRuleStatus = 503
	HttpErrorRuleStatusN504 HttpErrorRuleStatus = 504
)

Defines values for HttpErrorRuleStatus.

func (HttpErrorRuleStatus) Valid

func (e HttpErrorRuleStatus) Valid() bool

Valid indicates whether the value is a known member of the HttpErrorRuleStatus enum.

type HttpErrorRuleType

type HttpErrorRuleType string

HttpErrorRuleType defines model for HttpErrorRule.Type.

const (
	HttpErrorRuleTypeStatus HttpErrorRuleType = "status"
)

Defines values for HttpErrorRuleType.

func (HttpErrorRuleType) Valid

func (e HttpErrorRuleType) Valid() bool

Valid indicates whether the value is a known member of the HttpErrorRuleType enum.

type HttpErrorRules

type HttpErrorRules = []HttpErrorRule

HttpErrorRules HAProxy HTTP error rules array (corresponds to http-error directives)

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type HttpRequestRule

type HttpRequestRule struct {
	AclFile              *string                             `json:"acl_file,omitempty"`
	AclKeyfmt            *string                             `json:"acl_keyfmt,omitempty"`
	AppSectionNameList   *[]string                           `json:"app_section_name_list,omitempty"`
	AuthRealm            *string                             `json:"auth_realm,omitempty"`
	BandwidthLimitLimit  *string                             `json:"bandwidth_limit_limit,omitempty"`
	BandwidthLimitName   *string                             `json:"bandwidth_limit_name,omitempty"`
	BandwidthLimitPeriod *string                             `json:"bandwidth_limit_period,omitempty"`
	CacheName            *string                             `json:"cache_name,omitempty"`
	CaptureId            *int                                `json:"capture_id,omitempty"`
	CaptureLen           *int                                `json:"capture_len,omitempty"`
	CaptureSample        *string                             `json:"capture_sample,omitempty"`
	ChallengeFile        *string                             `json:"challenge_file,omitempty"`
	ChallengeLevel       *int                                `json:"challenge_level,omitempty"`
	ChallengeName        *string                             `json:"challenge_name,omitempty"`
	ChallengeSecretA     *string                             `json:"challenge_secret_a,omitempty"`
	ChallengeSecretB     *string                             `json:"challenge_secret_b,omitempty"`
	ChallengeTimeout     *string                             `json:"challenge_timeout,omitempty"`
	Cond                 *HttpRequestRuleCond                `json:"cond,omitempty"`
	CondTest             *string                             `json:"cond_test,omitempty"`
	DenyStatus           *int                                `json:"deny_status,omitempty"`
	Expr                 *string                             `json:"expr,omitempty"`
	HdrFormat            *string                             `json:"hdr_format,omitempty"`
	HdrMatch             *string                             `json:"hdr_match,omitempty"`
	HdrMethod            *string                             `json:"hdr_method,omitempty"`
	HdrName              *string                             `json:"hdr_name,omitempty"`
	HintFormat           *string                             `json:"hint_format,omitempty"`
	HintName             *string                             `json:"hint_name,omitempty"`
	LogLevel             *HttpRequestRuleLogLevel            `json:"log_level,omitempty"`
	LuaAction            *string                             `json:"lua_action,omitempty"`
	LuaParams            *string                             `json:"lua_params,omitempty"`
	MapFile              *string                             `json:"map_file,omitempty"`
	MapKeyfmt            *string                             `json:"map_keyfmt,omitempty"`
	MapValuefmt          *string                             `json:"map_valuefmt,omitempty"`
	MarkValue            *string                             `json:"mark_value,omitempty"`
	Metadata             *map[string]map[string]interface{}  `json:"metadata,omitempty"`
	MethodFmt            *string                             `json:"method_fmt,omitempty"`
	NiceValue            *int                                `json:"nice_value,omitempty"`
	Normalizer           *HttpRequestRuleNormalizer          `json:"normalizer,omitempty"`
	NormalizerFull       *bool                               `json:"normalizer_full,omitempty"`
	NormalizerStrict     *bool                               `json:"normalizer_strict,omitempty"`
	PathFmt              *string                             `json:"path_fmt,omitempty"`
	PathMatch            *string                             `json:"path_match,omitempty"`
	Profile              *string                             `json:"profile,omitempty"`
	Protocol             *HttpRequestRuleProtocol            `json:"protocol,omitempty"`
	QueryFmt             *string                             `json:"query-fmt,omitempty"`
	RedirCode            *HttpRequestRuleRedirCode           `json:"redir_code,omitempty"`
	RedirOption          *string                             `json:"redir_option,omitempty"`
	RedirType            *HttpRequestRuleRedirType           `json:"redir_type,omitempty"`
	RedirValue           *string                             `json:"redir_value,omitempty"`
	Resolvers            *string                             `json:"resolvers,omitempty"`
	ReturnContent        *string                             `json:"return_content,omitempty"`
	ReturnContentFormat  *HttpRequestRuleReturnContentFormat `json:"return_content_format,omitempty"`
	ReturnContentType    *string                             `json:"return_content_type,omitempty"`
	ReturnHeaders        *[]ReturnHeader                     `json:"return_hdrs,omitempty"`
	ReturnStatusCode     *int                                `json:"return_status_code,omitempty"`
	RstTtl               *int                                `json:"rst_ttl,omitempty"`
	ScCnt                *int                                `json:"sc_cnt,omitempty"`
	ScExpr               *string                             `json:"sc_expr,omitempty"`
	ScId                 *int                                `json:"sc_id,omitempty"`
	ScIdx                *int                                `json:"sc_idx,omitempty"`
	ScInt                *int                                `json:"sc_int,omitempty"`
	ScMessage            *string                             `json:"sc_message,omitempty"`
	ServiceName          *string                             `json:"service_name,omitempty"`
	SpoeEngine           *string                             `json:"spoe_engine,omitempty"`
	SpoeGroup            *string                             `json:"spoe_group,omitempty"`
	StrictMode           *HttpRequestRuleStrictMode          `json:"strict_mode,omitempty"`
	Timeout              *string                             `json:"timeout,omitempty"`
	TimeoutType          *HttpRequestRuleTimeoutType         `json:"timeout_type,omitempty"`
	TosValue             *string                             `json:"tos_value,omitempty"`
	TrackScKey           *string                             `json:"track_sc_key,omitempty"`
	TrackScStickCounter  *int                                `json:"track_sc_stick_counter,omitempty"`
	TrackScTable         *string                             `json:"track_sc_table,omitempty"`
	Type                 HttpRequestRuleType                 `json:"type"`
	UriFmt               *string                             `json:"uri-fmt,omitempty"`
	UriMatch             *string                             `json:"uri-match,omitempty"`
	VarExpr              *string                             `json:"var_expr,omitempty"`
	VarFormat            *string                             `json:"var_format,omitempty"`
	VarName              *string                             `json:"var_name,omitempty"`
	VarPrefix            *string                             `json:"var_prefix,omitempty"`
	VarScope             *string                             `json:"var_scope,omitempty"`
	WafIdentifier        *string                             `json:"waf_identifier,omitempty"`
	WafProfile           *string                             `json:"waf_profile,omitempty"`
	WaitAtLeast          *int                                `json:"wait_at_least,omitempty"`
	WaitTime             *int                                `json:"wait_time,omitempty"`
}

HttpRequestRule HAProxy HTTP request rule configuration (corresponds to http-request directives)

type HttpRequestRuleCond

type HttpRequestRuleCond string

HttpRequestRuleCond defines model for HttpRequestRule.Cond.

const (
	HttpRequestRuleCondIf     HttpRequestRuleCond = "if"
	HttpRequestRuleCondUnless HttpRequestRuleCond = "unless"
)

Defines values for HttpRequestRuleCond.

func (HttpRequestRuleCond) Valid

func (e HttpRequestRuleCond) Valid() bool

Valid indicates whether the value is a known member of the HttpRequestRuleCond enum.

type HttpRequestRuleLogLevel

type HttpRequestRuleLogLevel string

HttpRequestRuleLogLevel defines model for HttpRequestRule.LogLevel.

const (
	HttpRequestRuleLogLevelAlert   HttpRequestRuleLogLevel = "alert"
	HttpRequestRuleLogLevelCrit    HttpRequestRuleLogLevel = "crit"
	HttpRequestRuleLogLevelDebug   HttpRequestRuleLogLevel = "debug"
	HttpRequestRuleLogLevelEmerg   HttpRequestRuleLogLevel = "emerg"
	HttpRequestRuleLogLevelErr     HttpRequestRuleLogLevel = "err"
	HttpRequestRuleLogLevelInfo    HttpRequestRuleLogLevel = "info"
	HttpRequestRuleLogLevelNotice  HttpRequestRuleLogLevel = "notice"
	HttpRequestRuleLogLevelSilent  HttpRequestRuleLogLevel = "silent"
	HttpRequestRuleLogLevelWarning HttpRequestRuleLogLevel = "warning"
)

Defines values for HttpRequestRuleLogLevel.

func (HttpRequestRuleLogLevel) Valid

func (e HttpRequestRuleLogLevel) Valid() bool

Valid indicates whether the value is a known member of the HttpRequestRuleLogLevel enum.

type HttpRequestRuleNormalizer

type HttpRequestRuleNormalizer string

HttpRequestRuleNormalizer defines model for HttpRequestRule.Normalizer.

const (
	HttpRequestRuleNormalizerFragmentEncode          HttpRequestRuleNormalizer = "fragment-encode"
	HttpRequestRuleNormalizerFragmentStrip           HttpRequestRuleNormalizer = "fragment-strip"
	HttpRequestRuleNormalizerPathMergeSlashes        HttpRequestRuleNormalizer = "path-merge-slashes"
	HttpRequestRuleNormalizerPathStripDot            HttpRequestRuleNormalizer = "path-strip-dot"
	HttpRequestRuleNormalizerPathStripDotdot         HttpRequestRuleNormalizer = "path-strip-dotdot"
	HttpRequestRuleNormalizerPercentDecodeUnreserved HttpRequestRuleNormalizer = "percent-decode-unreserved"
	HttpRequestRuleNormalizerPercentToUppercase      HttpRequestRuleNormalizer = "percent-to-uppercase"
	HttpRequestRuleNormalizerQuerySortByName         HttpRequestRuleNormalizer = "query-sort-by-name"
)

Defines values for HttpRequestRuleNormalizer.

func (HttpRequestRuleNormalizer) Valid

func (e HttpRequestRuleNormalizer) Valid() bool

Valid indicates whether the value is a known member of the HttpRequestRuleNormalizer enum.

type HttpRequestRuleProtocol

type HttpRequestRuleProtocol string

HttpRequestRuleProtocol defines model for HttpRequestRule.Protocol.

const (
	HttpRequestRuleProtocolIpv4 HttpRequestRuleProtocol = "ipv4"
	HttpRequestRuleProtocolIpv6 HttpRequestRuleProtocol = "ipv6"
)

Defines values for HttpRequestRuleProtocol.

func (HttpRequestRuleProtocol) Valid

func (e HttpRequestRuleProtocol) Valid() bool

Valid indicates whether the value is a known member of the HttpRequestRuleProtocol enum.

type HttpRequestRuleRedirCode

type HttpRequestRuleRedirCode int

HttpRequestRuleRedirCode defines model for HttpRequestRule.RedirCode.

const (
	HttpRequestRuleRedirCodeN301 HttpRequestRuleRedirCode = 301
	HttpRequestRuleRedirCodeN302 HttpRequestRuleRedirCode = 302
	HttpRequestRuleRedirCodeN303 HttpRequestRuleRedirCode = 303
	HttpRequestRuleRedirCodeN307 HttpRequestRuleRedirCode = 307
	HttpRequestRuleRedirCodeN308 HttpRequestRuleRedirCode = 308
)

Defines values for HttpRequestRuleRedirCode.

func (HttpRequestRuleRedirCode) Valid

func (e HttpRequestRuleRedirCode) Valid() bool

Valid indicates whether the value is a known member of the HttpRequestRuleRedirCode enum.

type HttpRequestRuleRedirType

type HttpRequestRuleRedirType string

HttpRequestRuleRedirType defines model for HttpRequestRule.RedirType.

const (
	HttpRequestRuleRedirTypeLocation HttpRequestRuleRedirType = "location"
	HttpRequestRuleRedirTypePrefix   HttpRequestRuleRedirType = "prefix"
	HttpRequestRuleRedirTypeScheme   HttpRequestRuleRedirType = "scheme"
)

Defines values for HttpRequestRuleRedirType.

func (HttpRequestRuleRedirType) Valid

func (e HttpRequestRuleRedirType) Valid() bool

Valid indicates whether the value is a known member of the HttpRequestRuleRedirType enum.

type HttpRequestRuleReturnContentFormat

type HttpRequestRuleReturnContentFormat string

HttpRequestRuleReturnContentFormat defines model for HttpRequestRule.ReturnContentFormat.

const (
	HttpRequestRuleReturnContentFormatDefaultErrorfiles HttpRequestRuleReturnContentFormat = "default-errorfiles"
	HttpRequestRuleReturnContentFormatErrorfile         HttpRequestRuleReturnContentFormat = "errorfile"
	HttpRequestRuleReturnContentFormatErrorfiles        HttpRequestRuleReturnContentFormat = "errorfiles"
	HttpRequestRuleReturnContentFormatFile              HttpRequestRuleReturnContentFormat = "file"
	HttpRequestRuleReturnContentFormatLfFile            HttpRequestRuleReturnContentFormat = "lf-file"
	HttpRequestRuleReturnContentFormatLfString          HttpRequestRuleReturnContentFormat = "lf-string"
	HttpRequestRuleReturnContentFormatString            HttpRequestRuleReturnContentFormat = "string"
)

Defines values for HttpRequestRuleReturnContentFormat.

func (HttpRequestRuleReturnContentFormat) Valid

Valid indicates whether the value is a known member of the HttpRequestRuleReturnContentFormat enum.

type HttpRequestRuleStrictMode

type HttpRequestRuleStrictMode string

HttpRequestRuleStrictMode defines model for HttpRequestRule.StrictMode.

const (
	HttpRequestRuleStrictModeOff HttpRequestRuleStrictMode = "off"
	HttpRequestRuleStrictModeOn  HttpRequestRuleStrictMode = "on"
)

Defines values for HttpRequestRuleStrictMode.

func (HttpRequestRuleStrictMode) Valid

func (e HttpRequestRuleStrictMode) Valid() bool

Valid indicates whether the value is a known member of the HttpRequestRuleStrictMode enum.

type HttpRequestRuleTimeoutType

type HttpRequestRuleTimeoutType string

HttpRequestRuleTimeoutType defines model for HttpRequestRule.TimeoutType.

const (
	HttpRequestRuleTimeoutTypeClient HttpRequestRuleTimeoutType = "client"
	HttpRequestRuleTimeoutTypeServer HttpRequestRuleTimeoutType = "server"
	HttpRequestRuleTimeoutTypeTunnel HttpRequestRuleTimeoutType = "tunnel"
)

Defines values for HttpRequestRuleTimeoutType.

func (HttpRequestRuleTimeoutType) Valid

func (e HttpRequestRuleTimeoutType) Valid() bool

Valid indicates whether the value is a known member of the HttpRequestRuleTimeoutType enum.

type HttpRequestRuleType

type HttpRequestRuleType string

HttpRequestRuleType defines model for HttpRequestRule.Type.

const (
	HttpRequestRuleTypeAddAcl              HttpRequestRuleType = "add-acl"
	HttpRequestRuleTypeAddHeader           HttpRequestRuleType = "add-header"
	HttpRequestRuleTypeAllow               HttpRequestRuleType = "allow"
	HttpRequestRuleTypeAuth                HttpRequestRuleType = "auth"
	HttpRequestRuleTypeBotmgmtEvaluate     HttpRequestRuleType = "botmgmt-evaluate"
	HttpRequestRuleTypeCacheUse            HttpRequestRuleType = "cache-use"
	HttpRequestRuleTypeCapture             HttpRequestRuleType = "capture"
	HttpRequestRuleTypeDelAcl              HttpRequestRuleType = "del-acl"
	HttpRequestRuleTypeDelHeader           HttpRequestRuleType = "del-header"
	HttpRequestRuleTypeDelMap              HttpRequestRuleType = "del-map"
	HttpRequestRuleTypeDeny                HttpRequestRuleType = "deny"
	HttpRequestRuleTypeDisableL7Retry      HttpRequestRuleType = "disable-l7-retry"
	HttpRequestRuleTypeDoLog               HttpRequestRuleType = "do-log"
	HttpRequestRuleTypeDoResolve           HttpRequestRuleType = "do-resolve"
	HttpRequestRuleTypeEarlyHint           HttpRequestRuleType = "early-hint"
	HttpRequestRuleTypeLua                 HttpRequestRuleType = "lua"
	HttpRequestRuleTypeN51dSetPropertyVars HttpRequestRuleType = "51d-set-property-vars"
	HttpRequestRuleTypeNormalizeUri        HttpRequestRuleType = "normalize-uri"
	HttpRequestRuleTypePause               HttpRequestRuleType = "pause"
	HttpRequestRuleTypeRedirect            HttpRequestRuleType = "redirect"
	HttpRequestRuleTypeReject              HttpRequestRuleType = "reject"
	HttpRequestRuleTypeReplaceHeader       HttpRequestRuleType = "replace-header"
	HttpRequestRuleTypeReplacePath         HttpRequestRuleType = "replace-path"
	HttpRequestRuleTypeReplacePathq        HttpRequestRuleType = "replace-pathq"
	HttpRequestRuleTypeReplaceUri          HttpRequestRuleType = "replace-uri"
	HttpRequestRuleTypeReplaceValue        HttpRequestRuleType = "replace-value"
	HttpRequestRuleTypeReturn              HttpRequestRuleType = "return"
	HttpRequestRuleTypeSamlSso             HttpRequestRuleType = "saml-sso"
	HttpRequestRuleTypeScAddGpc            HttpRequestRuleType = "sc-add-gpc"
	HttpRequestRuleTypeScIncGpc            HttpRequestRuleType = "sc-inc-gpc"
	HttpRequestRuleTypeScIncGpc0           HttpRequestRuleType = "sc-inc-gpc0"
	HttpRequestRuleTypeScIncGpc1           HttpRequestRuleType = "sc-inc-gpc1"
	HttpRequestRuleTypeScSetGpt            HttpRequestRuleType = "sc-set-gpt"
	HttpRequestRuleTypeScSetGpt0           HttpRequestRuleType = "sc-set-gpt0"
	HttpRequestRuleTypeScSetGptstr         HttpRequestRuleType = "sc-set-gptstr"
	HttpRequestRuleTypeSendChallenge       HttpRequestRuleType = "send-challenge"
	HttpRequestRuleTypeSendSpoeGroup       HttpRequestRuleType = "send-spoe-group"
	HttpRequestRuleTypeSetBandwidthLimit   HttpRequestRuleType = "set-bandwidth-limit"
	HttpRequestRuleTypeSetBcMark           HttpRequestRuleType = "set-bc-mark"
	HttpRequestRuleTypeSetBcTos            HttpRequestRuleType = "set-bc-tos"
	HttpRequestRuleTypeSetChallenge        HttpRequestRuleType = "set-challenge"
	HttpRequestRuleTypeSetDst              HttpRequestRuleType = "set-dst"
	HttpRequestRuleTypeSetDstPort          HttpRequestRuleType = "set-dst-port"
	HttpRequestRuleTypeSetFcMark           HttpRequestRuleType = "set-fc-mark"
	HttpRequestRuleTypeSetFcTos            HttpRequestRuleType = "set-fc-tos"
	HttpRequestRuleTypeSetHeader           HttpRequestRuleType = "set-header"
	HttpRequestRuleTypeSetLogLevel         HttpRequestRuleType = "set-log-level"
	HttpRequestRuleTypeSetMap              HttpRequestRuleType = "set-map"
	HttpRequestRuleTypeSetMark             HttpRequestRuleType = "set-mark"
	HttpRequestRuleTypeSetMethod           HttpRequestRuleType = "set-method"
	HttpRequestRuleTypeSetNice             HttpRequestRuleType = "set-nice"
	HttpRequestRuleTypeSetPath             HttpRequestRuleType = "set-path"
	HttpRequestRuleTypeSetPathq            HttpRequestRuleType = "set-pathq"
	HttpRequestRuleTypeSetPriorityClass    HttpRequestRuleType = "set-priority-class"
	HttpRequestRuleTypeSetPriorityOffset   HttpRequestRuleType = "set-priority-offset"
	HttpRequestRuleTypeSetQuery            HttpRequestRuleType = "set-query"
	HttpRequestRuleTypeSetRetries          HttpRequestRuleType = "set-retries"
	HttpRequestRuleTypeSetSrc              HttpRequestRuleType = "set-src"
	HttpRequestRuleTypeSetSrcPort          HttpRequestRuleType = "set-src-port"
	HttpRequestRuleTypeSetTimeout          HttpRequestRuleType = "set-timeout"
	HttpRequestRuleTypeSetTos              HttpRequestRuleType = "set-tos"
	HttpRequestRuleTypeSetUri              HttpRequestRuleType = "set-uri"
	HttpRequestRuleTypeSetVar              HttpRequestRuleType = "set-var"
	HttpRequestRuleTypeSetVarFmt           HttpRequestRuleType = "set-var-fmt"
	HttpRequestRuleTypeSilentDrop          HttpRequestRuleType = "silent-drop"
	HttpRequestRuleTypeStrictMode          HttpRequestRuleType = "strict-mode"
	HttpRequestRuleTypeTarpit              HttpRequestRuleType = "tarpit"
	HttpRequestRuleTypeTrackSc             HttpRequestRuleType = "track-sc"
	HttpRequestRuleTypeUnsetVar            HttpRequestRuleType = "unset-var"
	HttpRequestRuleTypeUseService          HttpRequestRuleType = "use-service"
	HttpRequestRuleTypeWafEvaluate         HttpRequestRuleType = "waf-evaluate"
	HttpRequestRuleTypeWaitForBody         HttpRequestRuleType = "wait-for-body"
	HttpRequestRuleTypeWaitForHandshake    HttpRequestRuleType = "wait-for-handshake"
)

Defines values for HttpRequestRuleType.

func (HttpRequestRuleType) Valid

func (e HttpRequestRuleType) Valid() bool

Valid indicates whether the value is a known member of the HttpRequestRuleType enum.

type HttpRequestRules

type HttpRequestRules = []HttpRequestRule

HttpRequestRules HAProxy HTTP request rules array (corresponds to http-request directives)

type HttpResponseRule

type HttpResponseRule struct {
	AclFile              *string                              `json:"acl_file,omitempty"`
	AclKeyfmt            *string                              `json:"acl_keyfmt,omitempty"`
	AppSectionNameList   *[]string                            `json:"app_section_name_list,omitempty"`
	BandwidthLimitLimit  *string                              `json:"bandwidth_limit_limit,omitempty"`
	BandwidthLimitName   *string                              `json:"bandwidth_limit_name,omitempty"`
	BandwidthLimitPeriod *string                              `json:"bandwidth_limit_period,omitempty"`
	CacheName            *string                              `json:"cache_name,omitempty"`
	CaptureId            *int                                 `json:"capture_id,omitempty"`
	CaptureSample        *string                              `json:"capture_sample,omitempty"`
	Cond                 *HttpResponseRuleCond                `json:"cond,omitempty"`
	CondTest             *string                              `json:"cond_test,omitempty"`
	DenyStatus           *int                                 `json:"deny_status,omitempty"`
	Expr                 *string                              `json:"expr,omitempty"`
	HdrFormat            *string                              `json:"hdr_format,omitempty"`
	HdrMatch             *string                              `json:"hdr_match,omitempty"`
	HdrMethod            *string                              `json:"hdr_method,omitempty"`
	HdrName              *string                              `json:"hdr_name,omitempty"`
	LogLevel             *HttpResponseRuleLogLevel            `json:"log_level,omitempty"`
	LuaAction            *string                              `json:"lua_action,omitempty"`
	LuaParams            *string                              `json:"lua_params,omitempty"`
	MapFile              *string                              `json:"map_file,omitempty"`
	MapKeyfmt            *string                              `json:"map_keyfmt,omitempty"`
	MapValuefmt          *string                              `json:"map_valuefmt,omitempty"`
	MarkValue            *string                              `json:"mark_value,omitempty"`
	Metadata             *map[string]map[string]interface{}   `json:"metadata,omitempty"`
	NiceValue            *int                                 `json:"nice_value,omitempty"`
	RedirCode            *HttpResponseRuleRedirCode           `json:"redir_code,omitempty"`
	RedirOption          *string                              `json:"redir_option,omitempty"`
	RedirType            *HttpResponseRuleRedirType           `json:"redir_type,omitempty"`
	RedirValue           *string                              `json:"redir_value,omitempty"`
	ReturnContent        *string                              `json:"return_content,omitempty"`
	ReturnContentFormat  *HttpResponseRuleReturnContentFormat `json:"return_content_format,omitempty"`
	ReturnContentType    *string                              `json:"return_content_type,omitempty"`
	ReturnHeaders        *[]ReturnHeader                      `json:"return_hdrs,omitempty"`
	ReturnStatusCode     *int                                 `json:"return_status_code,omitempty"`
	RstTtl               *int                                 `json:"rst_ttl,omitempty"`
	ScCnt                *int                                 `json:"sc_cnt,omitempty"`
	ScExpr               *string                              `json:"sc_expr,omitempty"`
	ScId                 *int                                 `json:"sc_id,omitempty"`
	ScIdx                *int                                 `json:"sc_idx,omitempty"`
	ScInt                *int                                 `json:"sc_int,omitempty"`
	ScMessage            *string                              `json:"sc_message,omitempty"`
	SpoeEngine           *string                              `json:"spoe_engine,omitempty"`
	SpoeGroup            *string                              `json:"spoe_group,omitempty"`
	Status               *int                                 `json:"status,omitempty"`
	StatusReason         *string                              `json:"status_reason,omitempty"`
	StrictMode           *HttpResponseRuleStrictMode          `json:"strict_mode,omitempty"`
	Timeout              *string                              `json:"timeout,omitempty"`
	TimeoutType          *HttpResponseRuleTimeoutType         `json:"timeout_type,omitempty"`
	TosValue             *string                              `json:"tos_value,omitempty"`
	TrackScKey           *string                              `json:"track_sc_key,omitempty"`
	TrackScStickCounter  *int                                 `json:"track_sc_stick_counter,omitempty"`
	TrackScTable         *string                              `json:"track_sc_table,omitempty"`
	Type                 HttpResponseRuleType                 `json:"type"`
	VarExpr              *string                              `json:"var_expr,omitempty"`
	VarFormat            *string                              `json:"var_format,omitempty"`
	VarName              *string                              `json:"var_name,omitempty"`
	VarScope             *string                              `json:"var_scope,omitempty"`
	WaitAtLeast          *int                                 `json:"wait_at_least,omitempty"`
	WaitTime             *int                                 `json:"wait_time,omitempty"`
}

HttpResponseRule HAProxy HTTP response rule configuration (corresponds to http-response directives)

type HttpResponseRuleCond

type HttpResponseRuleCond string

HttpResponseRuleCond defines model for HttpResponseRule.Cond.

const (
	HttpResponseRuleCondIf     HttpResponseRuleCond = "if"
	HttpResponseRuleCondUnless HttpResponseRuleCond = "unless"
)

Defines values for HttpResponseRuleCond.

func (HttpResponseRuleCond) Valid

func (e HttpResponseRuleCond) Valid() bool

Valid indicates whether the value is a known member of the HttpResponseRuleCond enum.

type HttpResponseRuleLogLevel

type HttpResponseRuleLogLevel string

HttpResponseRuleLogLevel defines model for HttpResponseRule.LogLevel.

const (
	HttpResponseRuleLogLevelAlert   HttpResponseRuleLogLevel = "alert"
	HttpResponseRuleLogLevelCrit    HttpResponseRuleLogLevel = "crit"
	HttpResponseRuleLogLevelDebug   HttpResponseRuleLogLevel = "debug"
	HttpResponseRuleLogLevelEmerg   HttpResponseRuleLogLevel = "emerg"
	HttpResponseRuleLogLevelErr     HttpResponseRuleLogLevel = "err"
	HttpResponseRuleLogLevelInfo    HttpResponseRuleLogLevel = "info"
	HttpResponseRuleLogLevelNotice  HttpResponseRuleLogLevel = "notice"
	HttpResponseRuleLogLevelSilent  HttpResponseRuleLogLevel = "silent"
	HttpResponseRuleLogLevelWarning HttpResponseRuleLogLevel = "warning"
)

Defines values for HttpResponseRuleLogLevel.

func (HttpResponseRuleLogLevel) Valid

func (e HttpResponseRuleLogLevel) Valid() bool

Valid indicates whether the value is a known member of the HttpResponseRuleLogLevel enum.

type HttpResponseRuleRedirCode

type HttpResponseRuleRedirCode int

HttpResponseRuleRedirCode defines model for HttpResponseRule.RedirCode.

const (
	HttpResponseRuleRedirCodeN301 HttpResponseRuleRedirCode = 301
	HttpResponseRuleRedirCodeN302 HttpResponseRuleRedirCode = 302
	HttpResponseRuleRedirCodeN303 HttpResponseRuleRedirCode = 303
	HttpResponseRuleRedirCodeN307 HttpResponseRuleRedirCode = 307
	HttpResponseRuleRedirCodeN308 HttpResponseRuleRedirCode = 308
)

Defines values for HttpResponseRuleRedirCode.

func (HttpResponseRuleRedirCode) Valid

func (e HttpResponseRuleRedirCode) Valid() bool

Valid indicates whether the value is a known member of the HttpResponseRuleRedirCode enum.

type HttpResponseRuleRedirType

type HttpResponseRuleRedirType string

HttpResponseRuleRedirType defines model for HttpResponseRule.RedirType.

const (
	HttpResponseRuleRedirTypeLocation HttpResponseRuleRedirType = "location"
	HttpResponseRuleRedirTypePrefix   HttpResponseRuleRedirType = "prefix"
	HttpResponseRuleRedirTypeScheme   HttpResponseRuleRedirType = "scheme"
)

Defines values for HttpResponseRuleRedirType.

func (HttpResponseRuleRedirType) Valid

func (e HttpResponseRuleRedirType) Valid() bool

Valid indicates whether the value is a known member of the HttpResponseRuleRedirType enum.

type HttpResponseRuleReturnContentFormat

type HttpResponseRuleReturnContentFormat string

HttpResponseRuleReturnContentFormat defines model for HttpResponseRule.ReturnContentFormat.

const (
	HttpResponseRuleReturnContentFormatDefaultErrorfiles HttpResponseRuleReturnContentFormat = "default-errorfiles"
	HttpResponseRuleReturnContentFormatErrorfile         HttpResponseRuleReturnContentFormat = "errorfile"
	HttpResponseRuleReturnContentFormatErrorfiles        HttpResponseRuleReturnContentFormat = "errorfiles"
	HttpResponseRuleReturnContentFormatFile              HttpResponseRuleReturnContentFormat = "file"
	HttpResponseRuleReturnContentFormatLfFile            HttpResponseRuleReturnContentFormat = "lf-file"
	HttpResponseRuleReturnContentFormatLfString          HttpResponseRuleReturnContentFormat = "lf-string"
	HttpResponseRuleReturnContentFormatString            HttpResponseRuleReturnContentFormat = "string"
)

Defines values for HttpResponseRuleReturnContentFormat.

func (HttpResponseRuleReturnContentFormat) Valid

Valid indicates whether the value is a known member of the HttpResponseRuleReturnContentFormat enum.

type HttpResponseRuleStrictMode

type HttpResponseRuleStrictMode string

HttpResponseRuleStrictMode defines model for HttpResponseRule.StrictMode.

const (
	HttpResponseRuleStrictModeOff HttpResponseRuleStrictMode = "off"
	HttpResponseRuleStrictModeOn  HttpResponseRuleStrictMode = "on"
)

Defines values for HttpResponseRuleStrictMode.

func (HttpResponseRuleStrictMode) Valid

func (e HttpResponseRuleStrictMode) Valid() bool

Valid indicates whether the value is a known member of the HttpResponseRuleStrictMode enum.

type HttpResponseRuleTimeoutType

type HttpResponseRuleTimeoutType string

HttpResponseRuleTimeoutType defines model for HttpResponseRule.TimeoutType.

const (
	HttpResponseRuleTimeoutTypeClient HttpResponseRuleTimeoutType = "client"
	HttpResponseRuleTimeoutTypeServer HttpResponseRuleTimeoutType = "server"
	HttpResponseRuleTimeoutTypeTunnel HttpResponseRuleTimeoutType = "tunnel"
)

Defines values for HttpResponseRuleTimeoutType.

func (HttpResponseRuleTimeoutType) Valid

Valid indicates whether the value is a known member of the HttpResponseRuleTimeoutType enum.

type HttpResponseRuleType

type HttpResponseRuleType string

HttpResponseRuleType defines model for HttpResponseRule.Type.

const (
	HttpResponseRuleTypeAddAcl            HttpResponseRuleType = "add-acl"
	HttpResponseRuleTypeAddHeader         HttpResponseRuleType = "add-header"
	HttpResponseRuleTypeAllow             HttpResponseRuleType = "allow"
	HttpResponseRuleTypeCacheStore        HttpResponseRuleType = "cache-store"
	HttpResponseRuleTypeCapture           HttpResponseRuleType = "capture"
	HttpResponseRuleTypeDelAcl            HttpResponseRuleType = "del-acl"
	HttpResponseRuleTypeDelHeader         HttpResponseRuleType = "del-header"
	HttpResponseRuleTypeDelMap            HttpResponseRuleType = "del-map"
	HttpResponseRuleTypeDeny              HttpResponseRuleType = "deny"
	HttpResponseRuleTypeDoLog             HttpResponseRuleType = "do-log"
	HttpResponseRuleTypeLua               HttpResponseRuleType = "lua"
	HttpResponseRuleTypePause             HttpResponseRuleType = "pause"
	HttpResponseRuleTypeRedirect          HttpResponseRuleType = "redirect"
	HttpResponseRuleTypeReplaceHeader     HttpResponseRuleType = "replace-header"
	HttpResponseRuleTypeReplaceValue      HttpResponseRuleType = "replace-value"
	HttpResponseRuleTypeReturn            HttpResponseRuleType = "return"
	HttpResponseRuleTypeSamlSso           HttpResponseRuleType = "saml-sso"
	HttpResponseRuleTypeScAddGpc          HttpResponseRuleType = "sc-add-gpc"
	HttpResponseRuleTypeScIncGpc          HttpResponseRuleType = "sc-inc-gpc"
	HttpResponseRuleTypeScIncGpc0         HttpResponseRuleType = "sc-inc-gpc0"
	HttpResponseRuleTypeScIncGpc1         HttpResponseRuleType = "sc-inc-gpc1"
	HttpResponseRuleTypeScSetGpt          HttpResponseRuleType = "sc-set-gpt"
	HttpResponseRuleTypeScSetGpt0         HttpResponseRuleType = "sc-set-gpt0"
	HttpResponseRuleTypeScSetGptstr       HttpResponseRuleType = "sc-set-gptstr"
	HttpResponseRuleTypeSendSpoeGroup     HttpResponseRuleType = "send-spoe-group"
	HttpResponseRuleTypeSetBandwidthLimit HttpResponseRuleType = "set-bandwidth-limit"
	HttpResponseRuleTypeSetFcMark         HttpResponseRuleType = "set-fc-mark"
	HttpResponseRuleTypeSetFcTos          HttpResponseRuleType = "set-fc-tos"
	HttpResponseRuleTypeSetHeader         HttpResponseRuleType = "set-header"
	HttpResponseRuleTypeSetLogLevel       HttpResponseRuleType = "set-log-level"
	HttpResponseRuleTypeSetMap            HttpResponseRuleType = "set-map"
	HttpResponseRuleTypeSetMark           HttpResponseRuleType = "set-mark"
	HttpResponseRuleTypeSetNice           HttpResponseRuleType = "set-nice"
	HttpResponseRuleTypeSetStatus         HttpResponseRuleType = "set-status"
	HttpResponseRuleTypeSetTimeout        HttpResponseRuleType = "set-timeout"
	HttpResponseRuleTypeSetTos            HttpResponseRuleType = "set-tos"
	HttpResponseRuleTypeSetVar            HttpResponseRuleType = "set-var"
	HttpResponseRuleTypeSetVarFmt         HttpResponseRuleType = "set-var-fmt"
	HttpResponseRuleTypeSilentDrop        HttpResponseRuleType = "silent-drop"
	HttpResponseRuleTypeStrictMode        HttpResponseRuleType = "strict-mode"
	HttpResponseRuleTypeTrackSc           HttpResponseRuleType = "track-sc"
	HttpResponseRuleTypeUnsetVar          HttpResponseRuleType = "unset-var"
	HttpResponseRuleTypeWaitForBody       HttpResponseRuleType = "wait-for-body"
)

Defines values for HttpResponseRuleType.

func (HttpResponseRuleType) Valid

func (e HttpResponseRuleType) Valid() bool

Valid indicates whether the value is a known member of the HttpResponseRuleType enum.

type HttpResponseRules

type HttpResponseRules = []HttpResponseRule

HttpResponseRules HAProxy HTTP response rules array (corresponds to http-response directives)

type HttpchkParams

type HttpchkParams struct {
	Host    *string              `json:"host,omitempty"`
	Method  *HttpchkParamsMethod `json:"method,omitempty"`
	Uri     *string              `json:"uri,omitempty"`
	Version *string              `json:"version,omitempty"`
}

HttpchkParams defines model for httpchk_params.

type HttpchkParamsMethod

type HttpchkParamsMethod string

HttpchkParamsMethod defines model for HttpchkParams.Method.

const (
	HttpchkParamsMethodCONNECT HttpchkParamsMethod = "CONNECT"
	HttpchkParamsMethodDELETE  HttpchkParamsMethod = "DELETE"
	HttpchkParamsMethodGET     HttpchkParamsMethod = "GET"
	HttpchkParamsMethodHEAD    HttpchkParamsMethod = "HEAD"
	HttpchkParamsMethodOPTIONS HttpchkParamsMethod = "OPTIONS"
	HttpchkParamsMethodPATCH   HttpchkParamsMethod = "PATCH"
	HttpchkParamsMethodPOST    HttpchkParamsMethod = "POST"
	HttpchkParamsMethodPUT     HttpchkParamsMethod = "PUT"
	HttpchkParamsMethodTRACE   HttpchkParamsMethod = "TRACE"
)

Defines values for HttpchkParamsMethod.

func (HttpchkParamsMethod) Valid

func (e HttpchkParamsMethod) Valid() bool

Valid indicates whether the value is a known member of the HttpchkParamsMethod enum.

type LogTarget

type LogTarget struct {
	Address     *string                            `json:"address,omitempty"`
	Facility    *LogTargetFacility                 `json:"facility,omitempty"`
	Format      *LogTargetFormat                   `json:"format,omitempty"`
	Global      *bool                              `json:"global,omitempty"`
	Length      *int                               `json:"length,omitempty"`
	Level       *LogTargetLevel                    `json:"level,omitempty"`
	Metadata    *map[string]map[string]interface{} `json:"metadata,omitempty"`
	Minlevel    *LogTargetMinlevel                 `json:"minlevel,omitempty"`
	Nolog       *bool                              `json:"nolog,omitempty"`
	Profile     *string                            `json:"profile,omitempty"`
	SampleRange *string                            `json:"sample_range,omitempty"`
	SampleSize  *int                               `json:"sample_size,omitempty"`
}

LogTarget Per-instance logging of events and traffic.

type LogTargetFacility

type LogTargetFacility string

LogTargetFacility defines model for LogTarget.Facility.

const (
	LogTargetFacilityAlert  LogTargetFacility = "alert"
	LogTargetFacilityAudit  LogTargetFacility = "audit"
	LogTargetFacilityAuth   LogTargetFacility = "auth"
	LogTargetFacilityAuth2  LogTargetFacility = "auth2"
	LogTargetFacilityCron   LogTargetFacility = "cron"
	LogTargetFacilityCron2  LogTargetFacility = "cron2"
	LogTargetFacilityDaemon LogTargetFacility = "daemon"
	LogTargetFacilityFtp    LogTargetFacility = "ftp"
	LogTargetFacilityKern   LogTargetFacility = "kern"
	LogTargetFacilityLocal0 LogTargetFacility = "local0"
	LogTargetFacilityLocal1 LogTargetFacility = "local1"
	LogTargetFacilityLocal2 LogTargetFacility = "local2"
	LogTargetFacilityLocal3 LogTargetFacility = "local3"
	LogTargetFacilityLocal4 LogTargetFacility = "local4"
	LogTargetFacilityLocal5 LogTargetFacility = "local5"
	LogTargetFacilityLocal6 LogTargetFacility = "local6"
	LogTargetFacilityLocal7 LogTargetFacility = "local7"
	LogTargetFacilityLpr    LogTargetFacility = "lpr"
	LogTargetFacilityMail   LogTargetFacility = "mail"
	LogTargetFacilityNews   LogTargetFacility = "news"
	LogTargetFacilityNtp    LogTargetFacility = "ntp"
	LogTargetFacilitySyslog LogTargetFacility = "syslog"
	LogTargetFacilityUser   LogTargetFacility = "user"
	LogTargetFacilityUucp   LogTargetFacility = "uucp"
)

Defines values for LogTargetFacility.

func (LogTargetFacility) Valid

func (e LogTargetFacility) Valid() bool

Valid indicates whether the value is a known member of the LogTargetFacility enum.

type LogTargetFormat

type LogTargetFormat string

LogTargetFormat defines model for LogTarget.Format.

const (
	LogTargetFormatIso      LogTargetFormat = "iso"
	LogTargetFormatLocal    LogTargetFormat = "local"
	LogTargetFormatPriority LogTargetFormat = "priority"
	LogTargetFormatRaw      LogTargetFormat = "raw"
	LogTargetFormatRfc3164  LogTargetFormat = "rfc3164"
	LogTargetFormatRfc5424  LogTargetFormat = "rfc5424"
	LogTargetFormatShort    LogTargetFormat = "short"
	LogTargetFormatTimed    LogTargetFormat = "timed"
)

Defines values for LogTargetFormat.

func (LogTargetFormat) Valid

func (e LogTargetFormat) Valid() bool

Valid indicates whether the value is a known member of the LogTargetFormat enum.

type LogTargetLevel

type LogTargetLevel string

LogTargetLevel defines model for LogTarget.Level.

const (
	LogTargetLevelAlert   LogTargetLevel = "alert"
	LogTargetLevelCrit    LogTargetLevel = "crit"
	LogTargetLevelDebug   LogTargetLevel = "debug"
	LogTargetLevelEmerg   LogTargetLevel = "emerg"
	LogTargetLevelErr     LogTargetLevel = "err"
	LogTargetLevelInfo    LogTargetLevel = "info"
	LogTargetLevelNotice  LogTargetLevel = "notice"
	LogTargetLevelWarning LogTargetLevel = "warning"
)

Defines values for LogTargetLevel.

func (LogTargetLevel) Valid

func (e LogTargetLevel) Valid() bool

Valid indicates whether the value is a known member of the LogTargetLevel enum.

type LogTargetMinlevel

type LogTargetMinlevel string

LogTargetMinlevel defines model for LogTarget.Minlevel.

const (
	LogTargetMinlevelAlert   LogTargetMinlevel = "alert"
	LogTargetMinlevelCrit    LogTargetMinlevel = "crit"
	LogTargetMinlevelDebug   LogTargetMinlevel = "debug"
	LogTargetMinlevelEmerg   LogTargetMinlevel = "emerg"
	LogTargetMinlevelErr     LogTargetMinlevel = "err"
	LogTargetMinlevelInfo    LogTargetMinlevel = "info"
	LogTargetMinlevelNotice  LogTargetMinlevel = "notice"
	LogTargetMinlevelWarning LogTargetMinlevel = "warning"
)

Defines values for LogTargetMinlevel.

func (LogTargetMinlevel) Valid

func (e LogTargetMinlevel) Valid() bool

Valid indicates whether the value is a known member of the LogTargetMinlevel enum.

type LogTargets

type LogTargets = []LogTarget

LogTargets HAProxy log target array (corresponds to log directives)

type Map

type Map struct {
	Description *string `json:"description,omitempty"`
	File        *string `json:"file,omitempty"`
	Id          *string `json:"id,omitempty"`

	// Size File size in bytes.
	Size        *int    `json:"size,omitempty"`
	StorageName *string `json:"storage_name,omitempty"`
}

Map Map File

type MapEntries

type MapEntries = []MapEntry

MapEntries Entries of one runtime map

type MapEntry

type MapEntry struct {
	Id    *string `json:"id,omitempty"`
	Key   *string `json:"key,omitempty"`
	Value *string `json:"value,omitempty"`
}

MapEntry One Map Entry

type Maps

type Maps = []Map

Maps Array of runtime map files

type MysqlCheckParams

type MysqlCheckParams struct {
	ClientVersion *MysqlCheckParamsClientVersion `json:"client_version,omitempty"`
	Username      *string                        `json:"username,omitempty"`
}

MysqlCheckParams defines model for mysql_check_params.

type MysqlCheckParamsClientVersion

type MysqlCheckParamsClientVersion string

MysqlCheckParamsClientVersion defines model for MysqlCheckParams.ClientVersion.

const (
	MysqlCheckParamsClientVersionPost41 MysqlCheckParamsClientVersion = "post-41"
	MysqlCheckParamsClientVersionPre41  MysqlCheckParamsClientVersion = "pre-41"
)

Defines values for MysqlCheckParamsClientVersion.

func (MysqlCheckParamsClientVersion) Valid

Valid indicates whether the value is a known member of the MysqlCheckParamsClientVersion enum.

type NotFound

type NotFound = Error

NotFound API Error

type Originalto

type Originalto struct {
	Enabled OriginaltoEnabled `json:"enabled"`
	Except  *string           `json:"except,omitempty"`
	Header  *string           `json:"header,omitempty"`
}

Originalto defines model for originalto.

type OriginaltoEnabled

type OriginaltoEnabled string

OriginaltoEnabled defines model for Originalto.Enabled.

const (
	OriginaltoEnabledEnabled OriginaltoEnabled = "enabled"
)

Defines values for OriginaltoEnabled.

func (OriginaltoEnabled) Valid

func (e OriginaltoEnabled) Valid() bool

Valid indicates whether the value is a known member of the OriginaltoEnabled enum.

type ParentName

type ParentName = string

ParentName defines model for parent_name.

type PersistRule

type PersistRule struct {
	RdpCookieName *string         `json:"rdp_cookie_name,omitempty"`
	Type          PersistRuleType `json:"type"`
}

PersistRule defines model for persist_rule.

type PersistRuleType

type PersistRuleType string

PersistRuleType defines model for PersistRule.Type.

const (
	PersistRuleTypeRdpCookie PersistRuleType = "rdp-cookie"
)

Defines values for PersistRuleType.

func (PersistRuleType) Valid

func (e PersistRuleType) Valid() bool

Valid indicates whether the value is a known member of the PersistRuleType enum.

type PgsqlCheckParams

type PgsqlCheckParams struct {
	Username *string `json:"username,omitempty"`
}

PgsqlCheckParams defines model for pgsql_check_params.

type PostHAProxyConfigurationParams

type PostHAProxyConfigurationParams struct {
	// SkipVersion If set, no version check will be done and the pushed config will be enforced
	SkipVersion *bool `form:"skip_version,omitempty" json:"skip_version,omitempty"`

	// SkipReload If set, no reload will be initiated and runtime actions from X-Runtime-Actions will be applied
	SkipReload *bool `form:"skip_reload,omitempty" json:"skip_reload,omitempty"`

	// OnlyValidate If set, only validates configuration, without applying it
	OnlyValidate *bool `form:"only_validate,omitempty" json:"only_validate,omitempty"`

	// Version Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	Version *Version `form:"version,omitempty" json:"version,omitempty"`

	// ForceReload If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	ForceReload *ForceReload `form:"force_reload,omitempty" json:"force_reload,omitempty"`

	// XRuntimeActions List of Runtime API commands with parameters separated by ';'
	XRuntimeActions *string `json:"X-Runtime-Actions,omitempty"`
}

PostHAProxyConfigurationParams defines parameters for PostHAProxyConfiguration.

type PostHAProxyConfigurationTextBody

type PostHAProxyConfigurationTextBody = string

PostHAProxyConfigurationTextBody defines parameters for PostHAProxyConfiguration.

type PostHAProxyConfigurationTextRequestBody

type PostHAProxyConfigurationTextRequestBody = PostHAProxyConfigurationTextBody

PostHAProxyConfigurationTextRequestBody defines body for PostHAProxyConfiguration for text/plain ContentType.

type Redispatch

type Redispatch struct {
	Enabled  RedispatchEnabled `json:"enabled"`
	Interval *int              `json:"interval,omitempty"`
}

Redispatch defines model for redispatch.

type RedispatchEnabled

type RedispatchEnabled string

RedispatchEnabled defines model for Redispatch.Enabled.

const (
	RedispatchEnabledDisabled RedispatchEnabled = "disabled"
	RedispatchEnabledEnabled  RedispatchEnabled = "enabled"
)

Defines values for RedispatchEnabled.

func (RedispatchEnabled) Valid

func (e RedispatchEnabled) Valid() bool

Valid indicates whether the value is a known member of the RedispatchEnabled enum.

type Reload

type Reload struct {
	Id              *string       `json:"id,omitempty"`
	ReloadTimestamp *int          `json:"reload_timestamp,omitempty"`
	Response        *string       `json:"response,omitempty"`
	Status          *ReloadStatus `json:"status,omitempty"`
}

Reload HAProxy reload

type ReloadStatus

type ReloadStatus string

ReloadStatus defines model for Reload.Status.

const (
	ReloadStatusFailed     ReloadStatus = "failed"
	ReloadStatusInProgress ReloadStatus = "in_progress"
	ReloadStatusSucceeded  ReloadStatus = "succeeded"
)

Defines values for ReloadStatus.

func (ReloadStatus) Valid

func (e ReloadStatus) Valid() bool

Valid indicates whether the value is a known member of the ReloadStatus enum.

type ReplaceCertMultipartBody

type ReplaceCertMultipartBody struct {
	FileUpload openapi_types.File `json:"file_upload"`
}

ReplaceCertMultipartBody defines parameters for ReplaceCert.

type ReplaceCertMultipartRequestBody

type ReplaceCertMultipartRequestBody ReplaceCertMultipartBody

ReplaceCertMultipartRequestBody defines body for ReplaceCert for multipart/form-data ContentType.

type ReplaceRuntimeMapEntryJSONBody

type ReplaceRuntimeMapEntryJSONBody struct {
	// Value Map value
	Value string `json:"value"`
}

ReplaceRuntimeMapEntryJSONBody defines parameters for ReplaceRuntimeMapEntry.

type ReplaceRuntimeMapEntryJSONRequestBody

type ReplaceRuntimeMapEntryJSONRequestBody ReplaceRuntimeMapEntryJSONBody

ReplaceRuntimeMapEntryJSONRequestBody defines body for ReplaceRuntimeMapEntry for application/json ContentType.

type ReplaceRuntimeMapEntryParams

type ReplaceRuntimeMapEntryParams struct {
	// ForceSync If true, immediately syncs changes to disk
	ForceSync *bool `form:"force_sync,omitempty" json:"force_sync,omitempty"`
}

ReplaceRuntimeMapEntryParams defines parameters for ReplaceRuntimeMapEntry.

type ReplaceStorageGeneralFileMultipartBody

type ReplaceStorageGeneralFileMultipartBody struct {
	// FileUpload General use file content
	FileUpload *openapi_types.File `json:"file_upload,omitempty"`
}

ReplaceStorageGeneralFileMultipartBody defines parameters for ReplaceStorageGeneralFile.

type ReplaceStorageGeneralFileMultipartRequestBody

type ReplaceStorageGeneralFileMultipartRequestBody ReplaceStorageGeneralFileMultipartBody

ReplaceStorageGeneralFileMultipartRequestBody defines body for ReplaceStorageGeneralFile for multipart/form-data ContentType.

type ReplaceStorageGeneralFileParams

type ReplaceStorageGeneralFileParams struct {
	// SkipReload If set, no reload will be initiated after update
	SkipReload *SkipReload `form:"skip_reload,omitempty" json:"skip_reload,omitempty"`

	// ForceReload If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	ForceReload *ForceReload `form:"force_reload,omitempty" json:"force_reload,omitempty"`
}

ReplaceStorageGeneralFileParams defines parameters for ReplaceStorageGeneralFile.

type ReplaceStorageMapFileParams

type ReplaceStorageMapFileParams struct {
	// SkipReload If set, no reload will be initiated after update
	SkipReload *SkipReload `form:"skip_reload,omitempty" json:"skip_reload,omitempty"`

	// ForceReload If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	ForceReload *ForceReload `form:"force_reload,omitempty" json:"force_reload,omitempty"`
}

ReplaceStorageMapFileParams defines parameters for ReplaceStorageMapFile.

type ReplaceStorageMapFileTextBody

type ReplaceStorageMapFileTextBody = string

ReplaceStorageMapFileTextBody defines parameters for ReplaceStorageMapFile.

type ReplaceStorageMapFileTextRequestBody

type ReplaceStorageMapFileTextRequestBody = ReplaceStorageMapFileTextBody

ReplaceStorageMapFileTextRequestBody defines body for ReplaceStorageMapFile for text/plain ContentType.

type ReplaceStorageSSLCertificateParams

type ReplaceStorageSSLCertificateParams struct {
	// SkipReload If set, no reload will be initiated after update
	SkipReload *SkipReload `form:"skip_reload,omitempty" json:"skip_reload,omitempty"`

	// ForceReload If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	ForceReload *ForceReload `form:"force_reload,omitempty" json:"force_reload,omitempty"`
}

ReplaceStorageSSLCertificateParams defines parameters for ReplaceStorageSSLCertificate.

type ReplaceStorageSSLCertificateTextBody

type ReplaceStorageSSLCertificateTextBody = string

ReplaceStorageSSLCertificateTextBody defines parameters for ReplaceStorageSSLCertificate.

type ReplaceStorageSSLCertificateTextRequestBody

type ReplaceStorageSSLCertificateTextRequestBody = ReplaceStorageSSLCertificateTextBody

ReplaceStorageSSLCertificateTextRequestBody defines body for ReplaceStorageSSLCertificate for text/plain ContentType.

type ReplaceStorageSSLCrtListFileParams

type ReplaceStorageSSLCrtListFileParams struct {
	// SkipReload If set, no reload will be initiated after update
	SkipReload *SkipReload `form:"skip_reload,omitempty" json:"skip_reload,omitempty"`

	// ForceReload If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	ForceReload *ForceReload `form:"force_reload,omitempty" json:"force_reload,omitempty"`
}

ReplaceStorageSSLCrtListFileParams defines parameters for ReplaceStorageSSLCrtListFile.

type ReplaceStorageSSLCrtListFileTextBody

type ReplaceStorageSSLCrtListFileTextBody = string

ReplaceStorageSSLCrtListFileTextBody defines parameters for ReplaceStorageSSLCrtListFile.

type ReplaceStorageSSLCrtListFileTextRequestBody

type ReplaceStorageSSLCrtListFileTextRequestBody = ReplaceStorageSSLCrtListFileTextBody

ReplaceStorageSSLCrtListFileTextRequestBody defines body for ReplaceStorageSSLCrtListFile for text/plain ContentType.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ReturnHeader

type ReturnHeader struct {
	Fmt  string `json:"fmt"`
	Name string `json:"name"`
}

ReturnHeader defines model for return_header.

type Server

type Server struct {
	Address           string                `json:"address"`
	AgentAddr         *string               `json:"agent-addr,omitempty"`
	AgentCheck        *ServerAgentCheck     `json:"agent-check,omitempty"`
	AgentInter        *int                  `json:"agent-inter,omitempty"`
	AgentPort         *int                  `json:"agent-port,omitempty"`
	AgentSend         *string               `json:"agent-send,omitempty"`
	Allow0rtt         *bool                 `json:"allow_0rtt,omitempty"`
	Alpn              *string               `json:"alpn,omitempty"`
	Backup            *ServerBackup         `json:"backup,omitempty"`
	Check             *ServerCheck          `json:"check,omitempty"`
	CheckPoolConnName *string               `json:"check-pool-conn-name,omitempty"`
	CheckReusePool    *ServerCheckReusePool `json:"check-reuse-pool,omitempty"`
	CheckSendProxy    *ServerCheckSendProxy `json:"check-send-proxy,omitempty"`
	CheckSni          *string               `json:"check-sni,omitempty"`
	CheckSsl          *ServerCheckSsl       `json:"check-ssl,omitempty"`
	CheckAlpn         *string               `json:"check_alpn,omitempty"`
	CheckProto        *string               `json:"check_proto,omitempty"`
	CheckViaSocks4    *ServerCheckViaSocks4 `json:"check_via_socks4,omitempty"`
	Ciphers           *string               `json:"ciphers,omitempty"`
	Ciphersuites      *string               `json:"ciphersuites,omitempty"`
	ClientSigalgs     *string               `json:"client_sigalgs,omitempty"`
	Cookie            *string               `json:"cookie,omitempty"`
	CrlFile           *string               `json:"crl_file,omitempty"`
	Curves            *string               `json:"curves,omitempty"`
	Downinter         *int                  `json:"downinter,omitempty"`
	ErrorLimit        *int                  `json:"error_limit,omitempty"`
	Fall              *int                  `json:"fall,omitempty"`
	Fastinter         *int                  `json:"fastinter,omitempty"`

	// ForceSslv3 This field is deprecated in favor of sslv3, and will be removed in a future release
	ForceSslv3 *ServerForceSslv3 `json:"force_sslv3,omitempty"`

	// ForceTlsv10 This field is deprecated in favor of tlsv10, and will be removed in a future release
	ForceTlsv10 *ServerForceTlsv10 `json:"force_tlsv10,omitempty"`

	// ForceTlsv11 This field is deprecated in favor of tlsv11, and will be removed in a future release
	ForceTlsv11 *ServerForceTlsv11 `json:"force_tlsv11,omitempty"`

	// ForceTlsv12 This field is deprecated in favor of tlsv12, and will be removed in a future release
	ForceTlsv12 *ServerForceTlsv12 `json:"force_tlsv12,omitempty"`

	// ForceTlsv13 This field is deprecated in favor of tlsv13, and will be removed in a future release
	ForceTlsv13        *ServerForceTlsv13                 `json:"force_tlsv13,omitempty"`
	Guid               *string                            `json:"guid,omitempty"`
	HashKey            *string                            `json:"hash_key,omitempty"`
	HealthCheckAddress *string                            `json:"health_check_address,omitempty"`
	HealthCheckPort    *int                               `json:"health_check_port,omitempty"`
	Id                 *int                               `json:"id,omitempty"`
	IdlePing           *int                               `json:"idle_ping,omitempty"`
	InitAddr           *string                            `json:"init-addr,omitempty"`
	InitState          *ServerInitState                   `json:"init-state,omitempty"`
	Inter              *int                               `json:"inter,omitempty"`
	LogBufsize         *int                               `json:"log-bufsize,omitempty"`
	LogProto           *ServerLogProto                    `json:"log_proto,omitempty"`
	Maintenance        *ServerMaintenance                 `json:"maintenance,omitempty"`
	MaxReuse           *int                               `json:"max_reuse,omitempty"`
	Maxconn            *int                               `json:"maxconn,omitempty"`
	Maxqueue           *int                               `json:"maxqueue,omitempty"`
	Metadata           *map[string]map[string]interface{} `json:"metadata,omitempty"`
	Minconn            *int                               `json:"minconn,omitempty"`
	Name               string                             `json:"name"`
	Namespace          *string                            `json:"namespace,omitempty"`

	// NoSslv3 This field is deprecated in favor of sslv3, and will be removed in a future release
	NoSslv3 *ServerNoSslv3 `json:"no_sslv3,omitempty"`

	// NoTlsv10 This field is deprecated in favor of tlsv10, and will be removed in a future release
	NoTlsv10 *ServerNoTlsv10 `json:"no_tlsv10,omitempty"`

	// NoTlsv11 This field is deprecated in favor of tlsv11, and will be removed in a future release
	NoTlsv11 *ServerNoTlsv11 `json:"no_tlsv11,omitempty"`

	// NoTlsv12 This field is deprecated in favor of tlsv12, and will be removed in a future release
	NoTlsv12 *ServerNoTlsv12 `json:"no_tlsv12,omitempty"`

	// NoTlsv13 This field is deprecated in favor of force_tlsv13, and will be removed in a future release
	NoTlsv13         *ServerNoTlsv13         `json:"no_tlsv13,omitempty"`
	NoVerifyhost     *ServerNoVerifyhost     `json:"no_verifyhost,omitempty"`
	Npn              *string                 `json:"npn,omitempty"`
	Observe          *ServerObserve          `json:"observe,omitempty"`
	OnError          *ServerOnError          `json:"on-error,omitempty"`
	OnMarkedDown     *ServerOnMarkedDown     `json:"on-marked-down,omitempty"`
	OnMarkedUp       *ServerOnMarkedUp       `json:"on-marked-up,omitempty"`
	PoolConnName     *string                 `json:"pool_conn_name,omitempty"`
	PoolLowConn      *int                    `json:"pool_low_conn,omitempty"`
	PoolMaxConn      *int                    `json:"pool_max_conn,omitempty"`
	PoolPurgeDelay   *int                    `json:"pool_purge_delay,omitempty"`
	Port             *int                    `json:"port,omitempty"`
	Proto            *string                 `json:"proto,omitempty"`
	ProxyV2Options   *[]ServerProxyV2Options `json:"proxy-v2-options,omitempty"`
	Redir            *string                 `json:"redir,omitempty"`
	ResolveNet       *string                 `json:"resolve-net,omitempty"`
	ResolvePrefer    *ServerResolvePrefer    `json:"resolve-prefer,omitempty"`
	ResolveOpts      *string                 `json:"resolve_opts,omitempty"`
	Resolvers        *string                 `json:"resolvers,omitempty"`
	Rise             *int                    `json:"rise,omitempty"`
	SendProxy        *ServerSendProxy        `json:"send-proxy,omitempty"`
	SendProxyV2      *ServerSendProxyV2      `json:"send-proxy-v2,omitempty"`
	SendProxyV2Ssl   *ServerSendProxyV2Ssl   `json:"send_proxy_v2_ssl,omitempty"`
	SendProxyV2SslCn *ServerSendProxyV2SslCn `json:"send_proxy_v2_ssl_cn,omitempty"`
	SetProxyV2TlvFmt *struct {
		Id    string `json:"id"`
		Value string `json:"value"`
	} `json:"set-proxy-v2-tlv-fmt,omitempty"`
	Shard          *int              `json:"shard,omitempty"`
	Sigalgs        *string           `json:"sigalgs,omitempty"`
	Slowstart      *int              `json:"slowstart,omitempty"`
	Sni            *string           `json:"sni,omitempty"`
	Socks4         *string           `json:"socks4,omitempty"`
	Source         *string           `json:"source,omitempty"`
	Ssl            *ServerSsl        `json:"ssl,omitempty"`
	SslCafile      *string           `json:"ssl_cafile,omitempty"`
	SslCertificate *string           `json:"ssl_certificate,omitempty"`
	SslMaxVer      *ServerSslMaxVer  `json:"ssl_max_ver,omitempty"`
	SslMinVer      *ServerSslMinVer  `json:"ssl_min_ver,omitempty"`
	SslReuse       *ServerSslReuse   `json:"ssl_reuse,omitempty"`
	Sslv3          *ServerSslv3      `json:"sslv3,omitempty"`
	Stick          *ServerStick      `json:"stick,omitempty"`
	StrictMaxconn  *bool             `json:"strict-maxconn,omitempty"`
	TcpUt          *int              `json:"tcp_ut,omitempty"`
	Tfo            *ServerTfo        `json:"tfo,omitempty"`
	TlsTickets     *ServerTlsTickets `json:"tls_tickets,omitempty"`
	Tlsv10         *ServerTlsv10     `json:"tlsv10,omitempty"`
	Tlsv11         *ServerTlsv11     `json:"tlsv11,omitempty"`
	Tlsv12         *ServerTlsv12     `json:"tlsv12,omitempty"`
	Tlsv13         *ServerTlsv13     `json:"tlsv13,omitempty"`
	Track          *string           `json:"track,omitempty"`
	Verify         *ServerVerify     `json:"verify,omitempty"`
	Verifyhost     *string           `json:"verifyhost,omitempty"`
	Weight         *int              `json:"weight,omitempty"`
	Ws             *ServerWs         `json:"ws,omitempty"`
}

Server defines model for server.

type ServerAgentCheck

type ServerAgentCheck string

ServerAgentCheck defines model for Server.AgentCheck.

const (
	ServerAgentCheckDisabled ServerAgentCheck = "disabled"
	ServerAgentCheckEnabled  ServerAgentCheck = "enabled"
)

Defines values for ServerAgentCheck.

func (ServerAgentCheck) Valid

func (e ServerAgentCheck) Valid() bool

Valid indicates whether the value is a known member of the ServerAgentCheck enum.

type ServerBackup

type ServerBackup string

ServerBackup defines model for Server.Backup.

const (
	ServerBackupDisabled ServerBackup = "disabled"
	ServerBackupEnabled  ServerBackup = "enabled"
)

Defines values for ServerBackup.

func (ServerBackup) Valid

func (e ServerBackup) Valid() bool

Valid indicates whether the value is a known member of the ServerBackup enum.

type ServerCheck

type ServerCheck string

ServerCheck defines model for Server.Check.

const (
	ServerCheckDisabled ServerCheck = "disabled"
	ServerCheckEnabled  ServerCheck = "enabled"
)

Defines values for ServerCheck.

func (ServerCheck) Valid

func (e ServerCheck) Valid() bool

Valid indicates whether the value is a known member of the ServerCheck enum.

type ServerCheckReusePool

type ServerCheckReusePool string

ServerCheckReusePool defines model for Server.CheckReusePool.

const (
	ServerCheckReusePoolDisabled ServerCheckReusePool = "disabled"
	ServerCheckReusePoolEnabled  ServerCheckReusePool = "enabled"
)

Defines values for ServerCheckReusePool.

func (ServerCheckReusePool) Valid

func (e ServerCheckReusePool) Valid() bool

Valid indicates whether the value is a known member of the ServerCheckReusePool enum.

type ServerCheckSendProxy

type ServerCheckSendProxy string

ServerCheckSendProxy defines model for Server.CheckSendProxy.

const (
	ServerCheckSendProxyDisabled ServerCheckSendProxy = "disabled"
	ServerCheckSendProxyEnabled  ServerCheckSendProxy = "enabled"
)

Defines values for ServerCheckSendProxy.

func (ServerCheckSendProxy) Valid

func (e ServerCheckSendProxy) Valid() bool

Valid indicates whether the value is a known member of the ServerCheckSendProxy enum.

type ServerCheckSsl

type ServerCheckSsl string

ServerCheckSsl defines model for Server.CheckSsl.

const (
	ServerCheckSslDisabled ServerCheckSsl = "disabled"
	ServerCheckSslEnabled  ServerCheckSsl = "enabled"
)

Defines values for ServerCheckSsl.

func (ServerCheckSsl) Valid

func (e ServerCheckSsl) Valid() bool

Valid indicates whether the value is a known member of the ServerCheckSsl enum.

type ServerCheckViaSocks4

type ServerCheckViaSocks4 string

ServerCheckViaSocks4 defines model for Server.CheckViaSocks4.

const (
	ServerCheckViaSocks4Disabled ServerCheckViaSocks4 = "disabled"
	ServerCheckViaSocks4Enabled  ServerCheckViaSocks4 = "enabled"
)

Defines values for ServerCheckViaSocks4.

func (ServerCheckViaSocks4) Valid

func (e ServerCheckViaSocks4) Valid() bool

Valid indicates whether the value is a known member of the ServerCheckViaSocks4 enum.

type ServerForceSslv3

type ServerForceSslv3 string

ServerForceSslv3 This field is deprecated in favor of sslv3, and will be removed in a future release

const (
	ServerForceSslv3Disabled ServerForceSslv3 = "disabled"
	ServerForceSslv3Enabled  ServerForceSslv3 = "enabled"
)

Defines values for ServerForceSslv3.

func (ServerForceSslv3) Valid

func (e ServerForceSslv3) Valid() bool

Valid indicates whether the value is a known member of the ServerForceSslv3 enum.

type ServerForceTlsv10

type ServerForceTlsv10 string

ServerForceTlsv10 This field is deprecated in favor of tlsv10, and will be removed in a future release

const (
	ServerForceTlsv10Disabled ServerForceTlsv10 = "disabled"
	ServerForceTlsv10Enabled  ServerForceTlsv10 = "enabled"
)

Defines values for ServerForceTlsv10.

func (ServerForceTlsv10) Valid

func (e ServerForceTlsv10) Valid() bool

Valid indicates whether the value is a known member of the ServerForceTlsv10 enum.

type ServerForceTlsv11

type ServerForceTlsv11 string

ServerForceTlsv11 This field is deprecated in favor of tlsv11, and will be removed in a future release

const (
	ServerForceTlsv11Disabled ServerForceTlsv11 = "disabled"
	ServerForceTlsv11Enabled  ServerForceTlsv11 = "enabled"
)

Defines values for ServerForceTlsv11.

func (ServerForceTlsv11) Valid

func (e ServerForceTlsv11) Valid() bool

Valid indicates whether the value is a known member of the ServerForceTlsv11 enum.

type ServerForceTlsv12

type ServerForceTlsv12 string

ServerForceTlsv12 This field is deprecated in favor of tlsv12, and will be removed in a future release

const (
	ServerForceTlsv12Disabled ServerForceTlsv12 = "disabled"
	ServerForceTlsv12Enabled  ServerForceTlsv12 = "enabled"
)

Defines values for ServerForceTlsv12.

func (ServerForceTlsv12) Valid

func (e ServerForceTlsv12) Valid() bool

Valid indicates whether the value is a known member of the ServerForceTlsv12 enum.

type ServerForceTlsv13

type ServerForceTlsv13 string

ServerForceTlsv13 This field is deprecated in favor of tlsv13, and will be removed in a future release

const (
	ServerForceTlsv13Disabled ServerForceTlsv13 = "disabled"
	ServerForceTlsv13Enabled  ServerForceTlsv13 = "enabled"
)

Defines values for ServerForceTlsv13.

func (ServerForceTlsv13) Valid

func (e ServerForceTlsv13) Valid() bool

Valid indicates whether the value is a known member of the ServerForceTlsv13 enum.

type ServerInitState

type ServerInitState string

ServerInitState defines model for Server.InitState.

const (
	ServerInitStateDown      ServerInitState = "down"
	ServerInitStateFullyDown ServerInitState = "fully-down"
	ServerInitStateFullyUp   ServerInitState = "fully-up"
	ServerInitStateUp        ServerInitState = "up"
)

Defines values for ServerInitState.

func (ServerInitState) Valid

func (e ServerInitState) Valid() bool

Valid indicates whether the value is a known member of the ServerInitState enum.

type ServerLogProto

type ServerLogProto string

ServerLogProto defines model for Server.LogProto.

const (
	ServerLogProtoLegacy     ServerLogProto = "legacy"
	ServerLogProtoOctetCount ServerLogProto = "octet-count"
)

Defines values for ServerLogProto.

func (ServerLogProto) Valid

func (e ServerLogProto) Valid() bool

Valid indicates whether the value is a known member of the ServerLogProto enum.

type ServerMaintenance

type ServerMaintenance string

ServerMaintenance defines model for Server.Maintenance.

const (
	ServerMaintenanceDisabled ServerMaintenance = "disabled"
	ServerMaintenanceEnabled  ServerMaintenance = "enabled"
)

Defines values for ServerMaintenance.

func (ServerMaintenance) Valid

func (e ServerMaintenance) Valid() bool

Valid indicates whether the value is a known member of the ServerMaintenance enum.

type ServerNoSslv3

type ServerNoSslv3 string

ServerNoSslv3 This field is deprecated in favor of sslv3, and will be removed in a future release

const (
	ServerNoSslv3Disabled ServerNoSslv3 = "disabled"
	ServerNoSslv3Enabled  ServerNoSslv3 = "enabled"
)

Defines values for ServerNoSslv3.

func (ServerNoSslv3) Valid

func (e ServerNoSslv3) Valid() bool

Valid indicates whether the value is a known member of the ServerNoSslv3 enum.

type ServerNoTlsv10

type ServerNoTlsv10 string

ServerNoTlsv10 This field is deprecated in favor of tlsv10, and will be removed in a future release

const (
	ServerNoTlsv10Disabled ServerNoTlsv10 = "disabled"
	ServerNoTlsv10Enabled  ServerNoTlsv10 = "enabled"
)

Defines values for ServerNoTlsv10.

func (ServerNoTlsv10) Valid

func (e ServerNoTlsv10) Valid() bool

Valid indicates whether the value is a known member of the ServerNoTlsv10 enum.

type ServerNoTlsv11

type ServerNoTlsv11 string

ServerNoTlsv11 This field is deprecated in favor of tlsv11, and will be removed in a future release

const (
	ServerNoTlsv11Disabled ServerNoTlsv11 = "disabled"
	ServerNoTlsv11Enabled  ServerNoTlsv11 = "enabled"
)

Defines values for ServerNoTlsv11.

func (ServerNoTlsv11) Valid

func (e ServerNoTlsv11) Valid() bool

Valid indicates whether the value is a known member of the ServerNoTlsv11 enum.

type ServerNoTlsv12

type ServerNoTlsv12 string

ServerNoTlsv12 This field is deprecated in favor of tlsv12, and will be removed in a future release

const (
	ServerNoTlsv12Disabled ServerNoTlsv12 = "disabled"
	ServerNoTlsv12Enabled  ServerNoTlsv12 = "enabled"
)

Defines values for ServerNoTlsv12.

func (ServerNoTlsv12) Valid

func (e ServerNoTlsv12) Valid() bool

Valid indicates whether the value is a known member of the ServerNoTlsv12 enum.

type ServerNoTlsv13

type ServerNoTlsv13 string

ServerNoTlsv13 This field is deprecated in favor of force_tlsv13, and will be removed in a future release

const (
	ServerNoTlsv13Disabled ServerNoTlsv13 = "disabled"
	ServerNoTlsv13Enabled  ServerNoTlsv13 = "enabled"
)

Defines values for ServerNoTlsv13.

func (ServerNoTlsv13) Valid

func (e ServerNoTlsv13) Valid() bool

Valid indicates whether the value is a known member of the ServerNoTlsv13 enum.

type ServerNoVerifyhost

type ServerNoVerifyhost string

ServerNoVerifyhost defines model for Server.NoVerifyhost.

const (
	ServerNoVerifyhostDisabled ServerNoVerifyhost = "disabled"
	ServerNoVerifyhostEnabled  ServerNoVerifyhost = "enabled"
)

Defines values for ServerNoVerifyhost.

func (ServerNoVerifyhost) Valid

func (e ServerNoVerifyhost) Valid() bool

Valid indicates whether the value is a known member of the ServerNoVerifyhost enum.

type ServerObserve

type ServerObserve string

ServerObserve defines model for Server.Observe.

const (
	ServerObserveLayer4 ServerObserve = "layer4"
	ServerObserveLayer7 ServerObserve = "layer7"
)

Defines values for ServerObserve.

func (ServerObserve) Valid

func (e ServerObserve) Valid() bool

Valid indicates whether the value is a known member of the ServerObserve enum.

type ServerOnError

type ServerOnError string

ServerOnError defines model for Server.OnError.

const (
	ServerOnErrorFailCheck   ServerOnError = "fail-check"
	ServerOnErrorFastinter   ServerOnError = "fastinter"
	ServerOnErrorMarkDown    ServerOnError = "mark-down"
	ServerOnErrorSuddenDeath ServerOnError = "sudden-death"
)

Defines values for ServerOnError.

func (ServerOnError) Valid

func (e ServerOnError) Valid() bool

Valid indicates whether the value is a known member of the ServerOnError enum.

type ServerOnMarkedDown

type ServerOnMarkedDown string

ServerOnMarkedDown defines model for Server.OnMarkedDown.

const (
	ServerOnMarkedDownShutdownSessions ServerOnMarkedDown = "shutdown-sessions"
)

Defines values for ServerOnMarkedDown.

func (ServerOnMarkedDown) Valid

func (e ServerOnMarkedDown) Valid() bool

Valid indicates whether the value is a known member of the ServerOnMarkedDown enum.

type ServerOnMarkedUp

type ServerOnMarkedUp string

ServerOnMarkedUp defines model for Server.OnMarkedUp.

const (
	ServerOnMarkedUpShutdownBackupSessions ServerOnMarkedUp = "shutdown-backup-sessions"
)

Defines values for ServerOnMarkedUp.

func (ServerOnMarkedUp) Valid

func (e ServerOnMarkedUp) Valid() bool

Valid indicates whether the value is a known member of the ServerOnMarkedUp enum.

type ServerParams

type ServerParams struct {
	AgentAddr         *string                     `json:"agent-addr,omitempty"`
	AgentCheck        *ServerParamsAgentCheck     `json:"agent-check,omitempty"`
	AgentInter        *int                        `json:"agent-inter,omitempty"`
	AgentPort         *int                        `json:"agent-port,omitempty"`
	AgentSend         *string                     `json:"agent-send,omitempty"`
	Allow0rtt         *bool                       `json:"allow_0rtt,omitempty"`
	Alpn              *string                     `json:"alpn,omitempty"`
	Backup            *ServerParamsBackup         `json:"backup,omitempty"`
	Check             *ServerParamsCheck          `json:"check,omitempty"`
	CheckPoolConnName *string                     `json:"check-pool-conn-name,omitempty"`
	CheckReusePool    *ServerParamsCheckReusePool `json:"check-reuse-pool,omitempty"`
	CheckSendProxy    *ServerParamsCheckSendProxy `json:"check-send-proxy,omitempty"`
	CheckSni          *string                     `json:"check-sni,omitempty"`
	CheckSsl          *ServerParamsCheckSsl       `json:"check-ssl,omitempty"`
	CheckAlpn         *string                     `json:"check_alpn,omitempty"`
	CheckProto        *string                     `json:"check_proto,omitempty"`
	CheckViaSocks4    *ServerParamsCheckViaSocks4 `json:"check_via_socks4,omitempty"`
	Ciphers           *string                     `json:"ciphers,omitempty"`
	Ciphersuites      *string                     `json:"ciphersuites,omitempty"`
	ClientSigalgs     *string                     `json:"client_sigalgs,omitempty"`
	Cookie            *string                     `json:"cookie,omitempty"`
	CrlFile           *string                     `json:"crl_file,omitempty"`
	Curves            *string                     `json:"curves,omitempty"`
	Downinter         *int                        `json:"downinter,omitempty"`
	ErrorLimit        *int                        `json:"error_limit,omitempty"`
	Fall              *int                        `json:"fall,omitempty"`
	Fastinter         *int                        `json:"fastinter,omitempty"`

	// ForceSslv3 This field is deprecated in favor of sslv3, and will be removed in a future release
	ForceSslv3 *ServerParamsForceSslv3 `json:"force_sslv3,omitempty"`

	// ForceTlsv10 This field is deprecated in favor of tlsv10, and will be removed in a future release
	ForceTlsv10 *ServerParamsForceTlsv10 `json:"force_tlsv10,omitempty"`

	// ForceTlsv11 This field is deprecated in favor of tlsv11, and will be removed in a future release
	ForceTlsv11 *ServerParamsForceTlsv11 `json:"force_tlsv11,omitempty"`

	// ForceTlsv12 This field is deprecated in favor of tlsv12, and will be removed in a future release
	ForceTlsv12 *ServerParamsForceTlsv12 `json:"force_tlsv12,omitempty"`

	// ForceTlsv13 This field is deprecated in favor of tlsv13, and will be removed in a future release
	ForceTlsv13        *ServerParamsForceTlsv13 `json:"force_tlsv13,omitempty"`
	Guid               *string                  `json:"guid,omitempty"`
	HashKey            *string                  `json:"hash_key,omitempty"`
	HealthCheckAddress *string                  `json:"health_check_address,omitempty"`
	HealthCheckPort    *int                     `json:"health_check_port,omitempty"`
	IdlePing           *int                     `json:"idle_ping,omitempty"`
	InitAddr           *string                  `json:"init-addr,omitempty"`
	InitState          *ServerParamsInitState   `json:"init-state,omitempty"`
	Inter              *int                     `json:"inter,omitempty"`
	LogBufsize         *int                     `json:"log-bufsize,omitempty"`
	LogProto           *ServerParamsLogProto    `json:"log_proto,omitempty"`
	Maintenance        *ServerParamsMaintenance `json:"maintenance,omitempty"`
	MaxReuse           *int                     `json:"max_reuse,omitempty"`
	Maxconn            *int                     `json:"maxconn,omitempty"`
	Maxqueue           *int                     `json:"maxqueue,omitempty"`
	Minconn            *int                     `json:"minconn,omitempty"`
	Namespace          *string                  `json:"namespace,omitempty"`

	// NoSslv3 This field is deprecated in favor of sslv3, and will be removed in a future release
	NoSslv3 *ServerParamsNoSslv3 `json:"no_sslv3,omitempty"`

	// NoTlsv10 This field is deprecated in favor of tlsv10, and will be removed in a future release
	NoTlsv10 *ServerParamsNoTlsv10 `json:"no_tlsv10,omitempty"`

	// NoTlsv11 This field is deprecated in favor of tlsv11, and will be removed in a future release
	NoTlsv11 *ServerParamsNoTlsv11 `json:"no_tlsv11,omitempty"`

	// NoTlsv12 This field is deprecated in favor of tlsv12, and will be removed in a future release
	NoTlsv12 *ServerParamsNoTlsv12 `json:"no_tlsv12,omitempty"`

	// NoTlsv13 This field is deprecated in favor of force_tlsv13, and will be removed in a future release
	NoTlsv13         *ServerParamsNoTlsv13         `json:"no_tlsv13,omitempty"`
	NoVerifyhost     *ServerParamsNoVerifyhost     `json:"no_verifyhost,omitempty"`
	Npn              *string                       `json:"npn,omitempty"`
	Observe          *ServerParamsObserve          `json:"observe,omitempty"`
	OnError          *ServerParamsOnError          `json:"on-error,omitempty"`
	OnMarkedDown     *ServerParamsOnMarkedDown     `json:"on-marked-down,omitempty"`
	OnMarkedUp       *ServerParamsOnMarkedUp       `json:"on-marked-up,omitempty"`
	PoolConnName     *string                       `json:"pool_conn_name,omitempty"`
	PoolLowConn      *int                          `json:"pool_low_conn,omitempty"`
	PoolMaxConn      *int                          `json:"pool_max_conn,omitempty"`
	PoolPurgeDelay   *int                          `json:"pool_purge_delay,omitempty"`
	Proto            *string                       `json:"proto,omitempty"`
	ProxyV2Options   *[]ServerParamsProxyV2Options `json:"proxy-v2-options,omitempty"`
	Redir            *string                       `json:"redir,omitempty"`
	ResolveNet       *string                       `json:"resolve-net,omitempty"`
	ResolvePrefer    *ServerParamsResolvePrefer    `json:"resolve-prefer,omitempty"`
	ResolveOpts      *string                       `json:"resolve_opts,omitempty"`
	Resolvers        *string                       `json:"resolvers,omitempty"`
	Rise             *int                          `json:"rise,omitempty"`
	SendProxy        *ServerParamsSendProxy        `json:"send-proxy,omitempty"`
	SendProxyV2      *ServerParamsSendProxyV2      `json:"send-proxy-v2,omitempty"`
	SendProxyV2Ssl   *ServerParamsSendProxyV2Ssl   `json:"send_proxy_v2_ssl,omitempty"`
	SendProxyV2SslCn *ServerParamsSendProxyV2SslCn `json:"send_proxy_v2_ssl_cn,omitempty"`
	SetProxyV2TlvFmt *struct {
		Id    string `json:"id"`
		Value string `json:"value"`
	} `json:"set-proxy-v2-tlv-fmt,omitempty"`
	Shard          *int                    `json:"shard,omitempty"`
	Sigalgs        *string                 `json:"sigalgs,omitempty"`
	Slowstart      *int                    `json:"slowstart,omitempty"`
	Sni            *string                 `json:"sni,omitempty"`
	Socks4         *string                 `json:"socks4,omitempty"`
	Source         *string                 `json:"source,omitempty"`
	Ssl            *ServerParamsSsl        `json:"ssl,omitempty"`
	SslCafile      *string                 `json:"ssl_cafile,omitempty"`
	SslCertificate *string                 `json:"ssl_certificate,omitempty"`
	SslMaxVer      *ServerParamsSslMaxVer  `json:"ssl_max_ver,omitempty"`
	SslMinVer      *ServerParamsSslMinVer  `json:"ssl_min_ver,omitempty"`
	SslReuse       *ServerParamsSslReuse   `json:"ssl_reuse,omitempty"`
	Sslv3          *ServerParamsSslv3      `json:"sslv3,omitempty"`
	Stick          *ServerParamsStick      `json:"stick,omitempty"`
	StrictMaxconn  *bool                   `json:"strict-maxconn,omitempty"`
	TcpUt          *int                    `json:"tcp_ut,omitempty"`
	Tfo            *ServerParamsTfo        `json:"tfo,omitempty"`
	TlsTickets     *ServerParamsTlsTickets `json:"tls_tickets,omitempty"`
	Tlsv10         *ServerParamsTlsv10     `json:"tlsv10,omitempty"`
	Tlsv11         *ServerParamsTlsv11     `json:"tlsv11,omitempty"`
	Tlsv12         *ServerParamsTlsv12     `json:"tlsv12,omitempty"`
	Tlsv13         *ServerParamsTlsv13     `json:"tlsv13,omitempty"`
	Track          *string                 `json:"track,omitempty"`
	Verify         *ServerParamsVerify     `json:"verify,omitempty"`
	Verifyhost     *string                 `json:"verifyhost,omitempty"`
	Weight         *int                    `json:"weight,omitempty"`
	Ws             *ServerParamsWs         `json:"ws,omitempty"`
}

ServerParams defines model for server_params.

type ServerParamsAgentCheck

type ServerParamsAgentCheck string

ServerParamsAgentCheck defines model for ServerParams.AgentCheck.

const (
	ServerParamsAgentCheckDisabled ServerParamsAgentCheck = "disabled"
	ServerParamsAgentCheckEnabled  ServerParamsAgentCheck = "enabled"
)

Defines values for ServerParamsAgentCheck.

func (ServerParamsAgentCheck) Valid

func (e ServerParamsAgentCheck) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsAgentCheck enum.

type ServerParamsBackup

type ServerParamsBackup string

ServerParamsBackup defines model for ServerParams.Backup.

const (
	ServerParamsBackupDisabled ServerParamsBackup = "disabled"
	ServerParamsBackupEnabled  ServerParamsBackup = "enabled"
)

Defines values for ServerParamsBackup.

func (ServerParamsBackup) Valid

func (e ServerParamsBackup) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsBackup enum.

type ServerParamsCheck

type ServerParamsCheck string

ServerParamsCheck defines model for ServerParams.Check.

const (
	ServerParamsCheckDisabled ServerParamsCheck = "disabled"
	ServerParamsCheckEnabled  ServerParamsCheck = "enabled"
)

Defines values for ServerParamsCheck.

func (ServerParamsCheck) Valid

func (e ServerParamsCheck) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsCheck enum.

type ServerParamsCheckReusePool

type ServerParamsCheckReusePool string

ServerParamsCheckReusePool defines model for ServerParams.CheckReusePool.

const (
	ServerParamsCheckReusePoolDisabled ServerParamsCheckReusePool = "disabled"
	ServerParamsCheckReusePoolEnabled  ServerParamsCheckReusePool = "enabled"
)

Defines values for ServerParamsCheckReusePool.

func (ServerParamsCheckReusePool) Valid

func (e ServerParamsCheckReusePool) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsCheckReusePool enum.

type ServerParamsCheckSendProxy

type ServerParamsCheckSendProxy string

ServerParamsCheckSendProxy defines model for ServerParams.CheckSendProxy.

const (
	ServerParamsCheckSendProxyDisabled ServerParamsCheckSendProxy = "disabled"
	ServerParamsCheckSendProxyEnabled  ServerParamsCheckSendProxy = "enabled"
)

Defines values for ServerParamsCheckSendProxy.

func (ServerParamsCheckSendProxy) Valid

func (e ServerParamsCheckSendProxy) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsCheckSendProxy enum.

type ServerParamsCheckSsl

type ServerParamsCheckSsl string

ServerParamsCheckSsl defines model for ServerParams.CheckSsl.

const (
	ServerParamsCheckSslDisabled ServerParamsCheckSsl = "disabled"
	ServerParamsCheckSslEnabled  ServerParamsCheckSsl = "enabled"
)

Defines values for ServerParamsCheckSsl.

func (ServerParamsCheckSsl) Valid

func (e ServerParamsCheckSsl) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsCheckSsl enum.

type ServerParamsCheckViaSocks4

type ServerParamsCheckViaSocks4 string

ServerParamsCheckViaSocks4 defines model for ServerParams.CheckViaSocks4.

const (
	ServerParamsCheckViaSocks4Disabled ServerParamsCheckViaSocks4 = "disabled"
	ServerParamsCheckViaSocks4Enabled  ServerParamsCheckViaSocks4 = "enabled"
)

Defines values for ServerParamsCheckViaSocks4.

func (ServerParamsCheckViaSocks4) Valid

func (e ServerParamsCheckViaSocks4) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsCheckViaSocks4 enum.

type ServerParamsForceSslv3

type ServerParamsForceSslv3 string

ServerParamsForceSslv3 This field is deprecated in favor of sslv3, and will be removed in a future release

const (
	ServerParamsForceSslv3Disabled ServerParamsForceSslv3 = "disabled"
	ServerParamsForceSslv3Enabled  ServerParamsForceSslv3 = "enabled"
)

Defines values for ServerParamsForceSslv3.

func (ServerParamsForceSslv3) Valid

func (e ServerParamsForceSslv3) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsForceSslv3 enum.

type ServerParamsForceTlsv10

type ServerParamsForceTlsv10 string

ServerParamsForceTlsv10 This field is deprecated in favor of tlsv10, and will be removed in a future release

const (
	ServerParamsForceTlsv10Disabled ServerParamsForceTlsv10 = "disabled"
	ServerParamsForceTlsv10Enabled  ServerParamsForceTlsv10 = "enabled"
)

Defines values for ServerParamsForceTlsv10.

func (ServerParamsForceTlsv10) Valid

func (e ServerParamsForceTlsv10) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsForceTlsv10 enum.

type ServerParamsForceTlsv11

type ServerParamsForceTlsv11 string

ServerParamsForceTlsv11 This field is deprecated in favor of tlsv11, and will be removed in a future release

const (
	ServerParamsForceTlsv11Disabled ServerParamsForceTlsv11 = "disabled"
	ServerParamsForceTlsv11Enabled  ServerParamsForceTlsv11 = "enabled"
)

Defines values for ServerParamsForceTlsv11.

func (ServerParamsForceTlsv11) Valid

func (e ServerParamsForceTlsv11) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsForceTlsv11 enum.

type ServerParamsForceTlsv12

type ServerParamsForceTlsv12 string

ServerParamsForceTlsv12 This field is deprecated in favor of tlsv12, and will be removed in a future release

const (
	ServerParamsForceTlsv12Disabled ServerParamsForceTlsv12 = "disabled"
	ServerParamsForceTlsv12Enabled  ServerParamsForceTlsv12 = "enabled"
)

Defines values for ServerParamsForceTlsv12.

func (ServerParamsForceTlsv12) Valid

func (e ServerParamsForceTlsv12) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsForceTlsv12 enum.

type ServerParamsForceTlsv13

type ServerParamsForceTlsv13 string

ServerParamsForceTlsv13 This field is deprecated in favor of tlsv13, and will be removed in a future release

const (
	ServerParamsForceTlsv13Disabled ServerParamsForceTlsv13 = "disabled"
	ServerParamsForceTlsv13Enabled  ServerParamsForceTlsv13 = "enabled"
)

Defines values for ServerParamsForceTlsv13.

func (ServerParamsForceTlsv13) Valid

func (e ServerParamsForceTlsv13) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsForceTlsv13 enum.

type ServerParamsInitState

type ServerParamsInitState string

ServerParamsInitState defines model for ServerParams.InitState.

const (
	ServerParamsInitStateDown      ServerParamsInitState = "down"
	ServerParamsInitStateFullyDown ServerParamsInitState = "fully-down"
	ServerParamsInitStateFullyUp   ServerParamsInitState = "fully-up"
	ServerParamsInitStateUp        ServerParamsInitState = "up"
)

Defines values for ServerParamsInitState.

func (ServerParamsInitState) Valid

func (e ServerParamsInitState) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsInitState enum.

type ServerParamsLogProto

type ServerParamsLogProto string

ServerParamsLogProto defines model for ServerParams.LogProto.

const (
	ServerParamsLogProtoLegacy     ServerParamsLogProto = "legacy"
	ServerParamsLogProtoOctetCount ServerParamsLogProto = "octet-count"
)

Defines values for ServerParamsLogProto.

func (ServerParamsLogProto) Valid

func (e ServerParamsLogProto) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsLogProto enum.

type ServerParamsMaintenance

type ServerParamsMaintenance string

ServerParamsMaintenance defines model for ServerParams.Maintenance.

const (
	ServerParamsMaintenanceDisabled ServerParamsMaintenance = "disabled"
	ServerParamsMaintenanceEnabled  ServerParamsMaintenance = "enabled"
)

Defines values for ServerParamsMaintenance.

func (ServerParamsMaintenance) Valid

func (e ServerParamsMaintenance) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsMaintenance enum.

type ServerParamsNoSslv3

type ServerParamsNoSslv3 string

ServerParamsNoSslv3 This field is deprecated in favor of sslv3, and will be removed in a future release

const (
	ServerParamsNoSslv3Disabled ServerParamsNoSslv3 = "disabled"
	ServerParamsNoSslv3Enabled  ServerParamsNoSslv3 = "enabled"
)

Defines values for ServerParamsNoSslv3.

func (ServerParamsNoSslv3) Valid

func (e ServerParamsNoSslv3) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsNoSslv3 enum.

type ServerParamsNoTlsv10

type ServerParamsNoTlsv10 string

ServerParamsNoTlsv10 This field is deprecated in favor of tlsv10, and will be removed in a future release

const (
	ServerParamsNoTlsv10Disabled ServerParamsNoTlsv10 = "disabled"
	ServerParamsNoTlsv10Enabled  ServerParamsNoTlsv10 = "enabled"
)

Defines values for ServerParamsNoTlsv10.

func (ServerParamsNoTlsv10) Valid

func (e ServerParamsNoTlsv10) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsNoTlsv10 enum.

type ServerParamsNoTlsv11

type ServerParamsNoTlsv11 string

ServerParamsNoTlsv11 This field is deprecated in favor of tlsv11, and will be removed in a future release

const (
	ServerParamsNoTlsv11Disabled ServerParamsNoTlsv11 = "disabled"
	ServerParamsNoTlsv11Enabled  ServerParamsNoTlsv11 = "enabled"
)

Defines values for ServerParamsNoTlsv11.

func (ServerParamsNoTlsv11) Valid

func (e ServerParamsNoTlsv11) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsNoTlsv11 enum.

type ServerParamsNoTlsv12

type ServerParamsNoTlsv12 string

ServerParamsNoTlsv12 This field is deprecated in favor of tlsv12, and will be removed in a future release

const (
	ServerParamsNoTlsv12Disabled ServerParamsNoTlsv12 = "disabled"
	ServerParamsNoTlsv12Enabled  ServerParamsNoTlsv12 = "enabled"
)

Defines values for ServerParamsNoTlsv12.

func (ServerParamsNoTlsv12) Valid

func (e ServerParamsNoTlsv12) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsNoTlsv12 enum.

type ServerParamsNoTlsv13

type ServerParamsNoTlsv13 string

ServerParamsNoTlsv13 This field is deprecated in favor of force_tlsv13, and will be removed in a future release

const (
	ServerParamsNoTlsv13Disabled ServerParamsNoTlsv13 = "disabled"
	ServerParamsNoTlsv13Enabled  ServerParamsNoTlsv13 = "enabled"
)

Defines values for ServerParamsNoTlsv13.

func (ServerParamsNoTlsv13) Valid

func (e ServerParamsNoTlsv13) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsNoTlsv13 enum.

type ServerParamsNoVerifyhost

type ServerParamsNoVerifyhost string

ServerParamsNoVerifyhost defines model for ServerParams.NoVerifyhost.

const (
	ServerParamsNoVerifyhostDisabled ServerParamsNoVerifyhost = "disabled"
	ServerParamsNoVerifyhostEnabled  ServerParamsNoVerifyhost = "enabled"
)

Defines values for ServerParamsNoVerifyhost.

func (ServerParamsNoVerifyhost) Valid

func (e ServerParamsNoVerifyhost) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsNoVerifyhost enum.

type ServerParamsObserve

type ServerParamsObserve string

ServerParamsObserve defines model for ServerParams.Observe.

const (
	ServerParamsObserveLayer4 ServerParamsObserve = "layer4"
	ServerParamsObserveLayer7 ServerParamsObserve = "layer7"
)

Defines values for ServerParamsObserve.

func (ServerParamsObserve) Valid

func (e ServerParamsObserve) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsObserve enum.

type ServerParamsOnError

type ServerParamsOnError string

ServerParamsOnError defines model for ServerParams.OnError.

const (
	ServerParamsOnErrorFailCheck   ServerParamsOnError = "fail-check"
	ServerParamsOnErrorFastinter   ServerParamsOnError = "fastinter"
	ServerParamsOnErrorMarkDown    ServerParamsOnError = "mark-down"
	ServerParamsOnErrorSuddenDeath ServerParamsOnError = "sudden-death"
)

Defines values for ServerParamsOnError.

func (ServerParamsOnError) Valid

func (e ServerParamsOnError) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsOnError enum.

type ServerParamsOnMarkedDown

type ServerParamsOnMarkedDown string

ServerParamsOnMarkedDown defines model for ServerParams.OnMarkedDown.

const (
	ServerParamsOnMarkedDownShutdownSessions ServerParamsOnMarkedDown = "shutdown-sessions"
)

Defines values for ServerParamsOnMarkedDown.

func (ServerParamsOnMarkedDown) Valid

func (e ServerParamsOnMarkedDown) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsOnMarkedDown enum.

type ServerParamsOnMarkedUp

type ServerParamsOnMarkedUp string

ServerParamsOnMarkedUp defines model for ServerParams.OnMarkedUp.

const (
	ServerParamsOnMarkedUpShutdownBackupSessions ServerParamsOnMarkedUp = "shutdown-backup-sessions"
)

Defines values for ServerParamsOnMarkedUp.

func (ServerParamsOnMarkedUp) Valid

func (e ServerParamsOnMarkedUp) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsOnMarkedUp enum.

type ServerParamsProxyV2Options

type ServerParamsProxyV2Options string

ServerParamsProxyV2Options defines model for ServerParams.ProxyV2Options.

const (
	ServerParamsProxyV2OptionsAuthority ServerParamsProxyV2Options = "authority"
	ServerParamsProxyV2OptionsCertCn    ServerParamsProxyV2Options = "cert-cn"
	ServerParamsProxyV2OptionsCertKey   ServerParamsProxyV2Options = "cert-key"
	ServerParamsProxyV2OptionsCertSig   ServerParamsProxyV2Options = "cert-sig"
	ServerParamsProxyV2OptionsCrc32c    ServerParamsProxyV2Options = "crc32c"
	ServerParamsProxyV2OptionsSsl       ServerParamsProxyV2Options = "ssl"
	ServerParamsProxyV2OptionsSslCipher ServerParamsProxyV2Options = "ssl-cipher"
	ServerParamsProxyV2OptionsUniqueId  ServerParamsProxyV2Options = "unique-id"
)

Defines values for ServerParamsProxyV2Options.

func (ServerParamsProxyV2Options) Valid

func (e ServerParamsProxyV2Options) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsProxyV2Options enum.

type ServerParamsResolvePrefer

type ServerParamsResolvePrefer string

ServerParamsResolvePrefer defines model for ServerParams.ResolvePrefer.

const (
	ServerParamsResolvePreferIpv4 ServerParamsResolvePrefer = "ipv4"
	ServerParamsResolvePreferIpv6 ServerParamsResolvePrefer = "ipv6"
)

Defines values for ServerParamsResolvePrefer.

func (ServerParamsResolvePrefer) Valid

func (e ServerParamsResolvePrefer) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsResolvePrefer enum.

type ServerParamsSendProxy

type ServerParamsSendProxy string

ServerParamsSendProxy defines model for ServerParams.SendProxy.

const (
	ServerParamsSendProxyDisabled ServerParamsSendProxy = "disabled"
	ServerParamsSendProxyEnabled  ServerParamsSendProxy = "enabled"
)

Defines values for ServerParamsSendProxy.

func (ServerParamsSendProxy) Valid

func (e ServerParamsSendProxy) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsSendProxy enum.

type ServerParamsSendProxyV2

type ServerParamsSendProxyV2 string

ServerParamsSendProxyV2 defines model for ServerParams.SendProxyV2.

const (
	ServerParamsSendProxyV2Disabled ServerParamsSendProxyV2 = "disabled"
	ServerParamsSendProxyV2Enabled  ServerParamsSendProxyV2 = "enabled"
)

Defines values for ServerParamsSendProxyV2.

func (ServerParamsSendProxyV2) Valid

func (e ServerParamsSendProxyV2) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsSendProxyV2 enum.

type ServerParamsSendProxyV2Ssl

type ServerParamsSendProxyV2Ssl string

ServerParamsSendProxyV2Ssl defines model for ServerParams.SendProxyV2Ssl.

const (
	ServerParamsSendProxyV2SslDisabled ServerParamsSendProxyV2Ssl = "disabled"
	ServerParamsSendProxyV2SslEnabled  ServerParamsSendProxyV2Ssl = "enabled"
)

Defines values for ServerParamsSendProxyV2Ssl.

func (ServerParamsSendProxyV2Ssl) Valid

func (e ServerParamsSendProxyV2Ssl) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsSendProxyV2Ssl enum.

type ServerParamsSendProxyV2SslCn

type ServerParamsSendProxyV2SslCn string

ServerParamsSendProxyV2SslCn defines model for ServerParams.SendProxyV2SslCn.

const (
	ServerParamsSendProxyV2SslCnDisabled ServerParamsSendProxyV2SslCn = "disabled"
	ServerParamsSendProxyV2SslCnEnabled  ServerParamsSendProxyV2SslCn = "enabled"
)

Defines values for ServerParamsSendProxyV2SslCn.

func (ServerParamsSendProxyV2SslCn) Valid

Valid indicates whether the value is a known member of the ServerParamsSendProxyV2SslCn enum.

type ServerParamsSsl

type ServerParamsSsl string

ServerParamsSsl defines model for ServerParams.Ssl.

const (
	ServerParamsSslDisabled ServerParamsSsl = "disabled"
	ServerParamsSslEnabled  ServerParamsSsl = "enabled"
)

Defines values for ServerParamsSsl.

func (ServerParamsSsl) Valid

func (e ServerParamsSsl) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsSsl enum.

type ServerParamsSslMaxVer

type ServerParamsSslMaxVer string

ServerParamsSslMaxVer defines model for ServerParams.SslMaxVer.

const (
	ServerParamsSslMaxVerSSLv3  ServerParamsSslMaxVer = "SSLv3"
	ServerParamsSslMaxVerTLSv10 ServerParamsSslMaxVer = "TLSv1.0"
	ServerParamsSslMaxVerTLSv11 ServerParamsSslMaxVer = "TLSv1.1"
	ServerParamsSslMaxVerTLSv12 ServerParamsSslMaxVer = "TLSv1.2"
	ServerParamsSslMaxVerTLSv13 ServerParamsSslMaxVer = "TLSv1.3"
)

Defines values for ServerParamsSslMaxVer.

func (ServerParamsSslMaxVer) Valid

func (e ServerParamsSslMaxVer) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsSslMaxVer enum.

type ServerParamsSslMinVer

type ServerParamsSslMinVer string

ServerParamsSslMinVer defines model for ServerParams.SslMinVer.

const (
	ServerParamsSslMinVerSSLv3  ServerParamsSslMinVer = "SSLv3"
	ServerParamsSslMinVerTLSv10 ServerParamsSslMinVer = "TLSv1.0"
	ServerParamsSslMinVerTLSv11 ServerParamsSslMinVer = "TLSv1.1"
	ServerParamsSslMinVerTLSv12 ServerParamsSslMinVer = "TLSv1.2"
	ServerParamsSslMinVerTLSv13 ServerParamsSslMinVer = "TLSv1.3"
)

Defines values for ServerParamsSslMinVer.

func (ServerParamsSslMinVer) Valid

func (e ServerParamsSslMinVer) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsSslMinVer enum.

type ServerParamsSslReuse

type ServerParamsSslReuse string

ServerParamsSslReuse defines model for ServerParams.SslReuse.

const (
	ServerParamsSslReuseDisabled ServerParamsSslReuse = "disabled"
	ServerParamsSslReuseEnabled  ServerParamsSslReuse = "enabled"
)

Defines values for ServerParamsSslReuse.

func (ServerParamsSslReuse) Valid

func (e ServerParamsSslReuse) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsSslReuse enum.

type ServerParamsSslv3

type ServerParamsSslv3 string

ServerParamsSslv3 defines model for ServerParams.Sslv3.

const (
	ServerParamsSslv3Disabled ServerParamsSslv3 = "disabled"
	ServerParamsSslv3Enabled  ServerParamsSslv3 = "enabled"
)

Defines values for ServerParamsSslv3.

func (ServerParamsSslv3) Valid

func (e ServerParamsSslv3) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsSslv3 enum.

type ServerParamsStick

type ServerParamsStick string

ServerParamsStick defines model for ServerParams.Stick.

const (
	ServerParamsStickDisabled ServerParamsStick = "disabled"
	ServerParamsStickEnabled  ServerParamsStick = "enabled"
)

Defines values for ServerParamsStick.

func (ServerParamsStick) Valid

func (e ServerParamsStick) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsStick enum.

type ServerParamsTfo

type ServerParamsTfo string

ServerParamsTfo defines model for ServerParams.Tfo.

const (
	ServerParamsTfoDisabled ServerParamsTfo = "disabled"
	ServerParamsTfoEnabled  ServerParamsTfo = "enabled"
)

Defines values for ServerParamsTfo.

func (ServerParamsTfo) Valid

func (e ServerParamsTfo) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsTfo enum.

type ServerParamsTlsTickets

type ServerParamsTlsTickets string

ServerParamsTlsTickets defines model for ServerParams.TlsTickets.

const (
	ServerParamsTlsTicketsDisabled ServerParamsTlsTickets = "disabled"
	ServerParamsTlsTicketsEnabled  ServerParamsTlsTickets = "enabled"
)

Defines values for ServerParamsTlsTickets.

func (ServerParamsTlsTickets) Valid

func (e ServerParamsTlsTickets) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsTlsTickets enum.

type ServerParamsTlsv10

type ServerParamsTlsv10 string

ServerParamsTlsv10 defines model for ServerParams.Tlsv10.

const (
	ServerParamsTlsv10Disabled ServerParamsTlsv10 = "disabled"
	ServerParamsTlsv10Enabled  ServerParamsTlsv10 = "enabled"
)

Defines values for ServerParamsTlsv10.

func (ServerParamsTlsv10) Valid

func (e ServerParamsTlsv10) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsTlsv10 enum.

type ServerParamsTlsv11

type ServerParamsTlsv11 string

ServerParamsTlsv11 defines model for ServerParams.Tlsv11.

const (
	ServerParamsTlsv11Disabled ServerParamsTlsv11 = "disabled"
	ServerParamsTlsv11Enabled  ServerParamsTlsv11 = "enabled"
)

Defines values for ServerParamsTlsv11.

func (ServerParamsTlsv11) Valid

func (e ServerParamsTlsv11) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsTlsv11 enum.

type ServerParamsTlsv12

type ServerParamsTlsv12 string

ServerParamsTlsv12 defines model for ServerParams.Tlsv12.

const (
	ServerParamsTlsv12Disabled ServerParamsTlsv12 = "disabled"
	ServerParamsTlsv12Enabled  ServerParamsTlsv12 = "enabled"
)

Defines values for ServerParamsTlsv12.

func (ServerParamsTlsv12) Valid

func (e ServerParamsTlsv12) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsTlsv12 enum.

type ServerParamsTlsv13

type ServerParamsTlsv13 string

ServerParamsTlsv13 defines model for ServerParams.Tlsv13.

const (
	ServerParamsTlsv13Disabled ServerParamsTlsv13 = "disabled"
	ServerParamsTlsv13Enabled  ServerParamsTlsv13 = "enabled"
)

Defines values for ServerParamsTlsv13.

func (ServerParamsTlsv13) Valid

func (e ServerParamsTlsv13) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsTlsv13 enum.

type ServerParamsVerify

type ServerParamsVerify string

ServerParamsVerify defines model for ServerParams.Verify.

const (
	ServerParamsVerifyNone     ServerParamsVerify = "none"
	ServerParamsVerifyRequired ServerParamsVerify = "required"
)

Defines values for ServerParamsVerify.

func (ServerParamsVerify) Valid

func (e ServerParamsVerify) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsVerify enum.

type ServerParamsWs

type ServerParamsWs string

ServerParamsWs defines model for ServerParams.Ws.

const (
	ServerParamsWsAuto ServerParamsWs = "auto"
	ServerParamsWsH1   ServerParamsWs = "h1"
	ServerParamsWsH2   ServerParamsWs = "h2"
)

Defines values for ServerParamsWs.

func (ServerParamsWs) Valid

func (e ServerParamsWs) Valid() bool

Valid indicates whether the value is a known member of the ServerParamsWs enum.

type ServerProxyV2Options

type ServerProxyV2Options string

ServerProxyV2Options defines model for Server.ProxyV2Options.

const (
	ServerProxyV2OptionsAuthority ServerProxyV2Options = "authority"
	ServerProxyV2OptionsCertCn    ServerProxyV2Options = "cert-cn"
	ServerProxyV2OptionsCertKey   ServerProxyV2Options = "cert-key"
	ServerProxyV2OptionsCertSig   ServerProxyV2Options = "cert-sig"
	ServerProxyV2OptionsCrc32c    ServerProxyV2Options = "crc32c"
	ServerProxyV2OptionsSsl       ServerProxyV2Options = "ssl"
	ServerProxyV2OptionsSslCipher ServerProxyV2Options = "ssl-cipher"
	ServerProxyV2OptionsUniqueId  ServerProxyV2Options = "unique-id"
)

Defines values for ServerProxyV2Options.

func (ServerProxyV2Options) Valid

func (e ServerProxyV2Options) Valid() bool

Valid indicates whether the value is a known member of the ServerProxyV2Options enum.

type ServerResolvePrefer

type ServerResolvePrefer string

ServerResolvePrefer defines model for Server.ResolvePrefer.

const (
	ServerResolvePreferIpv4 ServerResolvePrefer = "ipv4"
	ServerResolvePreferIpv6 ServerResolvePrefer = "ipv6"
)

Defines values for ServerResolvePrefer.

func (ServerResolvePrefer) Valid

func (e ServerResolvePrefer) Valid() bool

Valid indicates whether the value is a known member of the ServerResolvePrefer enum.

type ServerSendProxy

type ServerSendProxy string

ServerSendProxy defines model for Server.SendProxy.

const (
	ServerSendProxyDisabled ServerSendProxy = "disabled"
	ServerSendProxyEnabled  ServerSendProxy = "enabled"
)

Defines values for ServerSendProxy.

func (ServerSendProxy) Valid

func (e ServerSendProxy) Valid() bool

Valid indicates whether the value is a known member of the ServerSendProxy enum.

type ServerSendProxyV2

type ServerSendProxyV2 string

ServerSendProxyV2 defines model for Server.SendProxyV2.

const (
	ServerSendProxyV2Disabled ServerSendProxyV2 = "disabled"
	ServerSendProxyV2Enabled  ServerSendProxyV2 = "enabled"
)

Defines values for ServerSendProxyV2.

func (ServerSendProxyV2) Valid

func (e ServerSendProxyV2) Valid() bool

Valid indicates whether the value is a known member of the ServerSendProxyV2 enum.

type ServerSendProxyV2Ssl

type ServerSendProxyV2Ssl string

ServerSendProxyV2Ssl defines model for Server.SendProxyV2Ssl.

const (
	ServerSendProxyV2SslDisabled ServerSendProxyV2Ssl = "disabled"
	ServerSendProxyV2SslEnabled  ServerSendProxyV2Ssl = "enabled"
)

Defines values for ServerSendProxyV2Ssl.

func (ServerSendProxyV2Ssl) Valid

func (e ServerSendProxyV2Ssl) Valid() bool

Valid indicates whether the value is a known member of the ServerSendProxyV2Ssl enum.

type ServerSendProxyV2SslCn

type ServerSendProxyV2SslCn string

ServerSendProxyV2SslCn defines model for Server.SendProxyV2SslCn.

const (
	ServerSendProxyV2SslCnDisabled ServerSendProxyV2SslCn = "disabled"
	ServerSendProxyV2SslCnEnabled  ServerSendProxyV2SslCn = "enabled"
)

Defines values for ServerSendProxyV2SslCn.

func (ServerSendProxyV2SslCn) Valid

func (e ServerSendProxyV2SslCn) Valid() bool

Valid indicates whether the value is a known member of the ServerSendProxyV2SslCn enum.

type ServerSsl

type ServerSsl string

ServerSsl defines model for Server.Ssl.

const (
	ServerSslDisabled ServerSsl = "disabled"
	ServerSslEnabled  ServerSsl = "enabled"
)

Defines values for ServerSsl.

func (ServerSsl) Valid

func (e ServerSsl) Valid() bool

Valid indicates whether the value is a known member of the ServerSsl enum.

type ServerSslMaxVer

type ServerSslMaxVer string

ServerSslMaxVer defines model for Server.SslMaxVer.

const (
	ServerSslMaxVerSSLv3  ServerSslMaxVer = "SSLv3"
	ServerSslMaxVerTLSv10 ServerSslMaxVer = "TLSv1.0"
	ServerSslMaxVerTLSv11 ServerSslMaxVer = "TLSv1.1"
	ServerSslMaxVerTLSv12 ServerSslMaxVer = "TLSv1.2"
	ServerSslMaxVerTLSv13 ServerSslMaxVer = "TLSv1.3"
)

Defines values for ServerSslMaxVer.

func (ServerSslMaxVer) Valid

func (e ServerSslMaxVer) Valid() bool

Valid indicates whether the value is a known member of the ServerSslMaxVer enum.

type ServerSslMinVer

type ServerSslMinVer string

ServerSslMinVer defines model for Server.SslMinVer.

const (
	ServerSslMinVerSSLv3  ServerSslMinVer = "SSLv3"
	ServerSslMinVerTLSv10 ServerSslMinVer = "TLSv1.0"
	ServerSslMinVerTLSv11 ServerSslMinVer = "TLSv1.1"
	ServerSslMinVerTLSv12 ServerSslMinVer = "TLSv1.2"
	ServerSslMinVerTLSv13 ServerSslMinVer = "TLSv1.3"
)

Defines values for ServerSslMinVer.

func (ServerSslMinVer) Valid

func (e ServerSslMinVer) Valid() bool

Valid indicates whether the value is a known member of the ServerSslMinVer enum.

type ServerSslReuse

type ServerSslReuse string

ServerSslReuse defines model for Server.SslReuse.

const (
	ServerSslReuseDisabled ServerSslReuse = "disabled"
	ServerSslReuseEnabled  ServerSslReuse = "enabled"
)

Defines values for ServerSslReuse.

func (ServerSslReuse) Valid

func (e ServerSslReuse) Valid() bool

Valid indicates whether the value is a known member of the ServerSslReuse enum.

type ServerSslv3

type ServerSslv3 string

ServerSslv3 defines model for Server.Sslv3.

const (
	ServerSslv3Disabled ServerSslv3 = "disabled"
	ServerSslv3Enabled  ServerSslv3 = "enabled"
)

Defines values for ServerSslv3.

func (ServerSslv3) Valid

func (e ServerSslv3) Valid() bool

Valid indicates whether the value is a known member of the ServerSslv3 enum.

type ServerStick

type ServerStick string

ServerStick defines model for Server.Stick.

const (
	ServerStickDisabled ServerStick = "disabled"
	ServerStickEnabled  ServerStick = "enabled"
)

Defines values for ServerStick.

func (ServerStick) Valid

func (e ServerStick) Valid() bool

Valid indicates whether the value is a known member of the ServerStick enum.

type ServerSwitchingRule

type ServerSwitchingRule struct {
	Cond         *ServerSwitchingRuleCond           `json:"cond,omitempty"`
	CondTest     *string                            `json:"cond_test,omitempty"`
	Metadata     *map[string]map[string]interface{} `json:"metadata,omitempty"`
	TargetServer string                             `json:"target_server"`
}

ServerSwitchingRule HAProxy server switching rule configuration (corresponds to use-server directive)

type ServerSwitchingRuleCond

type ServerSwitchingRuleCond string

ServerSwitchingRuleCond defines model for ServerSwitchingRule.Cond.

const (
	ServerSwitchingRuleCondIf     ServerSwitchingRuleCond = "if"
	ServerSwitchingRuleCondUnless ServerSwitchingRuleCond = "unless"
)

Defines values for ServerSwitchingRuleCond.

func (ServerSwitchingRuleCond) Valid

func (e ServerSwitchingRuleCond) Valid() bool

Valid indicates whether the value is a known member of the ServerSwitchingRuleCond enum.

type ServerSwitchingRules

type ServerSwitchingRules = []ServerSwitchingRule

ServerSwitchingRules HAProxy backend server switching rules array (corresponds to use-server directives)

type ServerTemplate

type ServerTemplate struct {
	AgentAddr         *string                       `json:"agent-addr,omitempty"`
	AgentCheck        *ServerTemplateAgentCheck     `json:"agent-check,omitempty"`
	AgentInter        *int                          `json:"agent-inter,omitempty"`
	AgentPort         *int                          `json:"agent-port,omitempty"`
	AgentSend         *string                       `json:"agent-send,omitempty"`
	Allow0rtt         *bool                         `json:"allow_0rtt,omitempty"`
	Alpn              *string                       `json:"alpn,omitempty"`
	Backup            *ServerTemplateBackup         `json:"backup,omitempty"`
	Check             *ServerTemplateCheck          `json:"check,omitempty"`
	CheckPoolConnName *string                       `json:"check-pool-conn-name,omitempty"`
	CheckReusePool    *ServerTemplateCheckReusePool `json:"check-reuse-pool,omitempty"`
	CheckSendProxy    *ServerTemplateCheckSendProxy `json:"check-send-proxy,omitempty"`
	CheckSni          *string                       `json:"check-sni,omitempty"`
	CheckSsl          *ServerTemplateCheckSsl       `json:"check-ssl,omitempty"`
	CheckAlpn         *string                       `json:"check_alpn,omitempty"`
	CheckProto        *string                       `json:"check_proto,omitempty"`
	CheckViaSocks4    *ServerTemplateCheckViaSocks4 `json:"check_via_socks4,omitempty"`
	Ciphers           *string                       `json:"ciphers,omitempty"`
	Ciphersuites      *string                       `json:"ciphersuites,omitempty"`
	ClientSigalgs     *string                       `json:"client_sigalgs,omitempty"`
	Cookie            *string                       `json:"cookie,omitempty"`
	CrlFile           *string                       `json:"crl_file,omitempty"`
	Curves            *string                       `json:"curves,omitempty"`
	Downinter         *int                          `json:"downinter,omitempty"`
	ErrorLimit        *int                          `json:"error_limit,omitempty"`
	Fall              *int                          `json:"fall,omitempty"`
	Fastinter         *int                          `json:"fastinter,omitempty"`

	// ForceSslv3 This field is deprecated in favor of sslv3, and will be removed in a future release
	ForceSslv3 *ServerTemplateForceSslv3 `json:"force_sslv3,omitempty"`

	// ForceTlsv10 This field is deprecated in favor of tlsv10, and will be removed in a future release
	ForceTlsv10 *ServerTemplateForceTlsv10 `json:"force_tlsv10,omitempty"`

	// ForceTlsv11 This field is deprecated in favor of tlsv11, and will be removed in a future release
	ForceTlsv11 *ServerTemplateForceTlsv11 `json:"force_tlsv11,omitempty"`

	// ForceTlsv12 This field is deprecated in favor of tlsv12, and will be removed in a future release
	ForceTlsv12 *ServerTemplateForceTlsv12 `json:"force_tlsv12,omitempty"`

	// ForceTlsv13 This field is deprecated in favor of tlsv13, and will be removed in a future release
	ForceTlsv13        *ServerTemplateForceTlsv13         `json:"force_tlsv13,omitempty"`
	Fqdn               string                             `json:"fqdn"`
	Guid               *string                            `json:"guid,omitempty"`
	HashKey            *string                            `json:"hash_key,omitempty"`
	HealthCheckAddress *string                            `json:"health_check_address,omitempty"`
	HealthCheckPort    *int                               `json:"health_check_port,omitempty"`
	Id                 *int                               `json:"id,omitempty"`
	IdlePing           *int                               `json:"idle_ping,omitempty"`
	InitAddr           *string                            `json:"init-addr,omitempty"`
	InitState          *ServerTemplateInitState           `json:"init-state,omitempty"`
	Inter              *int                               `json:"inter,omitempty"`
	LogBufsize         *int                               `json:"log-bufsize,omitempty"`
	LogProto           *ServerTemplateLogProto            `json:"log_proto,omitempty"`
	Maintenance        *ServerTemplateMaintenance         `json:"maintenance,omitempty"`
	MaxReuse           *int                               `json:"max_reuse,omitempty"`
	Maxconn            *int                               `json:"maxconn,omitempty"`
	Maxqueue           *int                               `json:"maxqueue,omitempty"`
	Metadata           *map[string]map[string]interface{} `json:"metadata,omitempty"`
	Minconn            *int                               `json:"minconn,omitempty"`
	Namespace          *string                            `json:"namespace,omitempty"`

	// NoSslv3 This field is deprecated in favor of sslv3, and will be removed in a future release
	NoSslv3 *ServerTemplateNoSslv3 `json:"no_sslv3,omitempty"`

	// NoTlsv10 This field is deprecated in favor of tlsv10, and will be removed in a future release
	NoTlsv10 *ServerTemplateNoTlsv10 `json:"no_tlsv10,omitempty"`

	// NoTlsv11 This field is deprecated in favor of tlsv11, and will be removed in a future release
	NoTlsv11 *ServerTemplateNoTlsv11 `json:"no_tlsv11,omitempty"`

	// NoTlsv12 This field is deprecated in favor of tlsv12, and will be removed in a future release
	NoTlsv12 *ServerTemplateNoTlsv12 `json:"no_tlsv12,omitempty"`

	// NoTlsv13 This field is deprecated in favor of force_tlsv13, and will be removed in a future release
	NoTlsv13         *ServerTemplateNoTlsv13         `json:"no_tlsv13,omitempty"`
	NoVerifyhost     *ServerTemplateNoVerifyhost     `json:"no_verifyhost,omitempty"`
	Npn              *string                         `json:"npn,omitempty"`
	NumOrRange       string                          `json:"num_or_range"`
	Observe          *ServerTemplateObserve          `json:"observe,omitempty"`
	OnError          *ServerTemplateOnError          `json:"on-error,omitempty"`
	OnMarkedDown     *ServerTemplateOnMarkedDown     `json:"on-marked-down,omitempty"`
	OnMarkedUp       *ServerTemplateOnMarkedUp       `json:"on-marked-up,omitempty"`
	PoolConnName     *string                         `json:"pool_conn_name,omitempty"`
	PoolLowConn      *int                            `json:"pool_low_conn,omitempty"`
	PoolMaxConn      *int                            `json:"pool_max_conn,omitempty"`
	PoolPurgeDelay   *int                            `json:"pool_purge_delay,omitempty"`
	Port             *int                            `json:"port,omitempty"`
	Prefix           string                          `json:"prefix"`
	Proto            *string                         `json:"proto,omitempty"`
	ProxyV2Options   *[]ServerTemplateProxyV2Options `json:"proxy-v2-options,omitempty"`
	Redir            *string                         `json:"redir,omitempty"`
	ResolveNet       *string                         `json:"resolve-net,omitempty"`
	ResolvePrefer    *ServerTemplateResolvePrefer    `json:"resolve-prefer,omitempty"`
	ResolveOpts      *string                         `json:"resolve_opts,omitempty"`
	Resolvers        *string                         `json:"resolvers,omitempty"`
	Rise             *int                            `json:"rise,omitempty"`
	SendProxy        *ServerTemplateSendProxy        `json:"send-proxy,omitempty"`
	SendProxyV2      *ServerTemplateSendProxyV2      `json:"send-proxy-v2,omitempty"`
	SendProxyV2Ssl   *ServerTemplateSendProxyV2Ssl   `json:"send_proxy_v2_ssl,omitempty"`
	SendProxyV2SslCn *ServerTemplateSendProxyV2SslCn `json:"send_proxy_v2_ssl_cn,omitempty"`
	SetProxyV2TlvFmt *struct {
		Id    string `json:"id"`
		Value string `json:"value"`
	} `json:"set-proxy-v2-tlv-fmt,omitempty"`
	Shard          *int                      `json:"shard,omitempty"`
	Sigalgs        *string                   `json:"sigalgs,omitempty"`
	Slowstart      *int                      `json:"slowstart,omitempty"`
	Sni            *string                   `json:"sni,omitempty"`
	Socks4         *string                   `json:"socks4,omitempty"`
	Source         *string                   `json:"source,omitempty"`
	Ssl            *ServerTemplateSsl        `json:"ssl,omitempty"`
	SslCafile      *string                   `json:"ssl_cafile,omitempty"`
	SslCertificate *string                   `json:"ssl_certificate,omitempty"`
	SslMaxVer      *ServerTemplateSslMaxVer  `json:"ssl_max_ver,omitempty"`
	SslMinVer      *ServerTemplateSslMinVer  `json:"ssl_min_ver,omitempty"`
	SslReuse       *ServerTemplateSslReuse   `json:"ssl_reuse,omitempty"`
	Sslv3          *ServerTemplateSslv3      `json:"sslv3,omitempty"`
	Stick          *ServerTemplateStick      `json:"stick,omitempty"`
	StrictMaxconn  *bool                     `json:"strict-maxconn,omitempty"`
	TcpUt          *int                      `json:"tcp_ut,omitempty"`
	Tfo            *ServerTemplateTfo        `json:"tfo,omitempty"`
	TlsTickets     *ServerTemplateTlsTickets `json:"tls_tickets,omitempty"`
	Tlsv10         *ServerTemplateTlsv10     `json:"tlsv10,omitempty"`
	Tlsv11         *ServerTemplateTlsv11     `json:"tlsv11,omitempty"`
	Tlsv12         *ServerTemplateTlsv12     `json:"tlsv12,omitempty"`
	Tlsv13         *ServerTemplateTlsv13     `json:"tlsv13,omitempty"`
	Track          *string                   `json:"track,omitempty"`
	Verify         *ServerTemplateVerify     `json:"verify,omitempty"`
	Verifyhost     *string                   `json:"verifyhost,omitempty"`
	Weight         *int                      `json:"weight,omitempty"`
	Ws             *ServerTemplateWs         `json:"ws,omitempty"`
}

ServerTemplate defines model for server_template.

type ServerTemplateAgentCheck

type ServerTemplateAgentCheck string

ServerTemplateAgentCheck defines model for ServerTemplate.AgentCheck.

const (
	ServerTemplateAgentCheckDisabled ServerTemplateAgentCheck = "disabled"
	ServerTemplateAgentCheckEnabled  ServerTemplateAgentCheck = "enabled"
)

Defines values for ServerTemplateAgentCheck.

func (ServerTemplateAgentCheck) Valid

func (e ServerTemplateAgentCheck) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateAgentCheck enum.

type ServerTemplateBackup

type ServerTemplateBackup string

ServerTemplateBackup defines model for ServerTemplate.Backup.

const (
	ServerTemplateBackupDisabled ServerTemplateBackup = "disabled"
	ServerTemplateBackupEnabled  ServerTemplateBackup = "enabled"
)

Defines values for ServerTemplateBackup.

func (ServerTemplateBackup) Valid

func (e ServerTemplateBackup) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateBackup enum.

type ServerTemplateCheck

type ServerTemplateCheck string

ServerTemplateCheck defines model for ServerTemplate.Check.

const (
	ServerTemplateCheckDisabled ServerTemplateCheck = "disabled"
	ServerTemplateCheckEnabled  ServerTemplateCheck = "enabled"
)

Defines values for ServerTemplateCheck.

func (ServerTemplateCheck) Valid

func (e ServerTemplateCheck) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateCheck enum.

type ServerTemplateCheckReusePool

type ServerTemplateCheckReusePool string

ServerTemplateCheckReusePool defines model for ServerTemplate.CheckReusePool.

const (
	ServerTemplateCheckReusePoolDisabled ServerTemplateCheckReusePool = "disabled"
	ServerTemplateCheckReusePoolEnabled  ServerTemplateCheckReusePool = "enabled"
)

Defines values for ServerTemplateCheckReusePool.

func (ServerTemplateCheckReusePool) Valid

Valid indicates whether the value is a known member of the ServerTemplateCheckReusePool enum.

type ServerTemplateCheckSendProxy

type ServerTemplateCheckSendProxy string

ServerTemplateCheckSendProxy defines model for ServerTemplate.CheckSendProxy.

const (
	ServerTemplateCheckSendProxyDisabled ServerTemplateCheckSendProxy = "disabled"
	ServerTemplateCheckSendProxyEnabled  ServerTemplateCheckSendProxy = "enabled"
)

Defines values for ServerTemplateCheckSendProxy.

func (ServerTemplateCheckSendProxy) Valid

Valid indicates whether the value is a known member of the ServerTemplateCheckSendProxy enum.

type ServerTemplateCheckSsl

type ServerTemplateCheckSsl string

ServerTemplateCheckSsl defines model for ServerTemplate.CheckSsl.

const (
	ServerTemplateCheckSslDisabled ServerTemplateCheckSsl = "disabled"
	ServerTemplateCheckSslEnabled  ServerTemplateCheckSsl = "enabled"
)

Defines values for ServerTemplateCheckSsl.

func (ServerTemplateCheckSsl) Valid

func (e ServerTemplateCheckSsl) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateCheckSsl enum.

type ServerTemplateCheckViaSocks4

type ServerTemplateCheckViaSocks4 string

ServerTemplateCheckViaSocks4 defines model for ServerTemplate.CheckViaSocks4.

const (
	ServerTemplateCheckViaSocks4Disabled ServerTemplateCheckViaSocks4 = "disabled"
	ServerTemplateCheckViaSocks4Enabled  ServerTemplateCheckViaSocks4 = "enabled"
)

Defines values for ServerTemplateCheckViaSocks4.

func (ServerTemplateCheckViaSocks4) Valid

Valid indicates whether the value is a known member of the ServerTemplateCheckViaSocks4 enum.

type ServerTemplateForceSslv3

type ServerTemplateForceSslv3 string

ServerTemplateForceSslv3 This field is deprecated in favor of sslv3, and will be removed in a future release

const (
	ServerTemplateForceSslv3Disabled ServerTemplateForceSslv3 = "disabled"
	ServerTemplateForceSslv3Enabled  ServerTemplateForceSslv3 = "enabled"
)

Defines values for ServerTemplateForceSslv3.

func (ServerTemplateForceSslv3) Valid

func (e ServerTemplateForceSslv3) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateForceSslv3 enum.

type ServerTemplateForceTlsv10

type ServerTemplateForceTlsv10 string

ServerTemplateForceTlsv10 This field is deprecated in favor of tlsv10, and will be removed in a future release

const (
	ServerTemplateForceTlsv10Disabled ServerTemplateForceTlsv10 = "disabled"
	ServerTemplateForceTlsv10Enabled  ServerTemplateForceTlsv10 = "enabled"
)

Defines values for ServerTemplateForceTlsv10.

func (ServerTemplateForceTlsv10) Valid

func (e ServerTemplateForceTlsv10) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateForceTlsv10 enum.

type ServerTemplateForceTlsv11

type ServerTemplateForceTlsv11 string

ServerTemplateForceTlsv11 This field is deprecated in favor of tlsv11, and will be removed in a future release

const (
	ServerTemplateForceTlsv11Disabled ServerTemplateForceTlsv11 = "disabled"
	ServerTemplateForceTlsv11Enabled  ServerTemplateForceTlsv11 = "enabled"
)

Defines values for ServerTemplateForceTlsv11.

func (ServerTemplateForceTlsv11) Valid

func (e ServerTemplateForceTlsv11) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateForceTlsv11 enum.

type ServerTemplateForceTlsv12

type ServerTemplateForceTlsv12 string

ServerTemplateForceTlsv12 This field is deprecated in favor of tlsv12, and will be removed in a future release

const (
	ServerTemplateForceTlsv12Disabled ServerTemplateForceTlsv12 = "disabled"
	ServerTemplateForceTlsv12Enabled  ServerTemplateForceTlsv12 = "enabled"
)

Defines values for ServerTemplateForceTlsv12.

func (ServerTemplateForceTlsv12) Valid

func (e ServerTemplateForceTlsv12) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateForceTlsv12 enum.

type ServerTemplateForceTlsv13

type ServerTemplateForceTlsv13 string

ServerTemplateForceTlsv13 This field is deprecated in favor of tlsv13, and will be removed in a future release

const (
	ServerTemplateForceTlsv13Disabled ServerTemplateForceTlsv13 = "disabled"
	ServerTemplateForceTlsv13Enabled  ServerTemplateForceTlsv13 = "enabled"
)

Defines values for ServerTemplateForceTlsv13.

func (ServerTemplateForceTlsv13) Valid

func (e ServerTemplateForceTlsv13) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateForceTlsv13 enum.

type ServerTemplateInitState

type ServerTemplateInitState string

ServerTemplateInitState defines model for ServerTemplate.InitState.

const (
	ServerTemplateInitStateDown      ServerTemplateInitState = "down"
	ServerTemplateInitStateFullyDown ServerTemplateInitState = "fully-down"
	ServerTemplateInitStateFullyUp   ServerTemplateInitState = "fully-up"
	ServerTemplateInitStateUp        ServerTemplateInitState = "up"
)

Defines values for ServerTemplateInitState.

func (ServerTemplateInitState) Valid

func (e ServerTemplateInitState) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateInitState enum.

type ServerTemplateLogProto

type ServerTemplateLogProto string

ServerTemplateLogProto defines model for ServerTemplate.LogProto.

const (
	ServerTemplateLogProtoLegacy     ServerTemplateLogProto = "legacy"
	ServerTemplateLogProtoOctetCount ServerTemplateLogProto = "octet-count"
)

Defines values for ServerTemplateLogProto.

func (ServerTemplateLogProto) Valid

func (e ServerTemplateLogProto) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateLogProto enum.

type ServerTemplateMaintenance

type ServerTemplateMaintenance string

ServerTemplateMaintenance defines model for ServerTemplate.Maintenance.

const (
	ServerTemplateMaintenanceDisabled ServerTemplateMaintenance = "disabled"
	ServerTemplateMaintenanceEnabled  ServerTemplateMaintenance = "enabled"
)

Defines values for ServerTemplateMaintenance.

func (ServerTemplateMaintenance) Valid

func (e ServerTemplateMaintenance) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateMaintenance enum.

type ServerTemplateNoSslv3

type ServerTemplateNoSslv3 string

ServerTemplateNoSslv3 This field is deprecated in favor of sslv3, and will be removed in a future release

const (
	ServerTemplateNoSslv3Disabled ServerTemplateNoSslv3 = "disabled"
	ServerTemplateNoSslv3Enabled  ServerTemplateNoSslv3 = "enabled"
)

Defines values for ServerTemplateNoSslv3.

func (ServerTemplateNoSslv3) Valid

func (e ServerTemplateNoSslv3) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateNoSslv3 enum.

type ServerTemplateNoTlsv10

type ServerTemplateNoTlsv10 string

ServerTemplateNoTlsv10 This field is deprecated in favor of tlsv10, and will be removed in a future release

const (
	ServerTemplateNoTlsv10Disabled ServerTemplateNoTlsv10 = "disabled"
	ServerTemplateNoTlsv10Enabled  ServerTemplateNoTlsv10 = "enabled"
)

Defines values for ServerTemplateNoTlsv10.

func (ServerTemplateNoTlsv10) Valid

func (e ServerTemplateNoTlsv10) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateNoTlsv10 enum.

type ServerTemplateNoTlsv11

type ServerTemplateNoTlsv11 string

ServerTemplateNoTlsv11 This field is deprecated in favor of tlsv11, and will be removed in a future release

const (
	ServerTemplateNoTlsv11Disabled ServerTemplateNoTlsv11 = "disabled"
	ServerTemplateNoTlsv11Enabled  ServerTemplateNoTlsv11 = "enabled"
)

Defines values for ServerTemplateNoTlsv11.

func (ServerTemplateNoTlsv11) Valid

func (e ServerTemplateNoTlsv11) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateNoTlsv11 enum.

type ServerTemplateNoTlsv12

type ServerTemplateNoTlsv12 string

ServerTemplateNoTlsv12 This field is deprecated in favor of tlsv12, and will be removed in a future release

const (
	ServerTemplateNoTlsv12Disabled ServerTemplateNoTlsv12 = "disabled"
	ServerTemplateNoTlsv12Enabled  ServerTemplateNoTlsv12 = "enabled"
)

Defines values for ServerTemplateNoTlsv12.

func (ServerTemplateNoTlsv12) Valid

func (e ServerTemplateNoTlsv12) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateNoTlsv12 enum.

type ServerTemplateNoTlsv13

type ServerTemplateNoTlsv13 string

ServerTemplateNoTlsv13 This field is deprecated in favor of force_tlsv13, and will be removed in a future release

const (
	ServerTemplateNoTlsv13Disabled ServerTemplateNoTlsv13 = "disabled"
	ServerTemplateNoTlsv13Enabled  ServerTemplateNoTlsv13 = "enabled"
)

Defines values for ServerTemplateNoTlsv13.

func (ServerTemplateNoTlsv13) Valid

func (e ServerTemplateNoTlsv13) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateNoTlsv13 enum.

type ServerTemplateNoVerifyhost

type ServerTemplateNoVerifyhost string

ServerTemplateNoVerifyhost defines model for ServerTemplate.NoVerifyhost.

const (
	ServerTemplateNoVerifyhostDisabled ServerTemplateNoVerifyhost = "disabled"
	ServerTemplateNoVerifyhostEnabled  ServerTemplateNoVerifyhost = "enabled"
)

Defines values for ServerTemplateNoVerifyhost.

func (ServerTemplateNoVerifyhost) Valid

func (e ServerTemplateNoVerifyhost) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateNoVerifyhost enum.

type ServerTemplateObserve

type ServerTemplateObserve string

ServerTemplateObserve defines model for ServerTemplate.Observe.

const (
	ServerTemplateObserveLayer4 ServerTemplateObserve = "layer4"
	ServerTemplateObserveLayer7 ServerTemplateObserve = "layer7"
)

Defines values for ServerTemplateObserve.

func (ServerTemplateObserve) Valid

func (e ServerTemplateObserve) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateObserve enum.

type ServerTemplateOnError

type ServerTemplateOnError string

ServerTemplateOnError defines model for ServerTemplate.OnError.

const (
	ServerTemplateOnErrorFailCheck   ServerTemplateOnError = "fail-check"
	ServerTemplateOnErrorFastinter   ServerTemplateOnError = "fastinter"
	ServerTemplateOnErrorMarkDown    ServerTemplateOnError = "mark-down"
	ServerTemplateOnErrorSuddenDeath ServerTemplateOnError = "sudden-death"
)

Defines values for ServerTemplateOnError.

func (ServerTemplateOnError) Valid

func (e ServerTemplateOnError) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateOnError enum.

type ServerTemplateOnMarkedDown

type ServerTemplateOnMarkedDown string

ServerTemplateOnMarkedDown defines model for ServerTemplate.OnMarkedDown.

const (
	ServerTemplateOnMarkedDownShutdownSessions ServerTemplateOnMarkedDown = "shutdown-sessions"
)

Defines values for ServerTemplateOnMarkedDown.

func (ServerTemplateOnMarkedDown) Valid

func (e ServerTemplateOnMarkedDown) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateOnMarkedDown enum.

type ServerTemplateOnMarkedUp

type ServerTemplateOnMarkedUp string

ServerTemplateOnMarkedUp defines model for ServerTemplate.OnMarkedUp.

const (
	ServerTemplateOnMarkedUpShutdownBackupSessions ServerTemplateOnMarkedUp = "shutdown-backup-sessions"
)

Defines values for ServerTemplateOnMarkedUp.

func (ServerTemplateOnMarkedUp) Valid

func (e ServerTemplateOnMarkedUp) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateOnMarkedUp enum.

type ServerTemplateProxyV2Options

type ServerTemplateProxyV2Options string

ServerTemplateProxyV2Options defines model for ServerTemplate.ProxyV2Options.

const (
	ServerTemplateProxyV2OptionsAuthority ServerTemplateProxyV2Options = "authority"
	ServerTemplateProxyV2OptionsCertCn    ServerTemplateProxyV2Options = "cert-cn"
	ServerTemplateProxyV2OptionsCertKey   ServerTemplateProxyV2Options = "cert-key"
	ServerTemplateProxyV2OptionsCertSig   ServerTemplateProxyV2Options = "cert-sig"
	ServerTemplateProxyV2OptionsCrc32c    ServerTemplateProxyV2Options = "crc32c"
	ServerTemplateProxyV2OptionsSsl       ServerTemplateProxyV2Options = "ssl"
	ServerTemplateProxyV2OptionsSslCipher ServerTemplateProxyV2Options = "ssl-cipher"
	ServerTemplateProxyV2OptionsUniqueId  ServerTemplateProxyV2Options = "unique-id"
)

Defines values for ServerTemplateProxyV2Options.

func (ServerTemplateProxyV2Options) Valid

Valid indicates whether the value is a known member of the ServerTemplateProxyV2Options enum.

type ServerTemplateResolvePrefer

type ServerTemplateResolvePrefer string

ServerTemplateResolvePrefer defines model for ServerTemplate.ResolvePrefer.

const (
	ServerTemplateResolvePreferIpv4 ServerTemplateResolvePrefer = "ipv4"
	ServerTemplateResolvePreferIpv6 ServerTemplateResolvePrefer = "ipv6"
)

Defines values for ServerTemplateResolvePrefer.

func (ServerTemplateResolvePrefer) Valid

Valid indicates whether the value is a known member of the ServerTemplateResolvePrefer enum.

type ServerTemplateSendProxy

type ServerTemplateSendProxy string

ServerTemplateSendProxy defines model for ServerTemplate.SendProxy.

const (
	ServerTemplateSendProxyDisabled ServerTemplateSendProxy = "disabled"
	ServerTemplateSendProxyEnabled  ServerTemplateSendProxy = "enabled"
)

Defines values for ServerTemplateSendProxy.

func (ServerTemplateSendProxy) Valid

func (e ServerTemplateSendProxy) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateSendProxy enum.

type ServerTemplateSendProxyV2

type ServerTemplateSendProxyV2 string

ServerTemplateSendProxyV2 defines model for ServerTemplate.SendProxyV2.

const (
	ServerTemplateSendProxyV2Disabled ServerTemplateSendProxyV2 = "disabled"
	ServerTemplateSendProxyV2Enabled  ServerTemplateSendProxyV2 = "enabled"
)

Defines values for ServerTemplateSendProxyV2.

func (ServerTemplateSendProxyV2) Valid

func (e ServerTemplateSendProxyV2) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateSendProxyV2 enum.

type ServerTemplateSendProxyV2Ssl

type ServerTemplateSendProxyV2Ssl string

ServerTemplateSendProxyV2Ssl defines model for ServerTemplate.SendProxyV2Ssl.

const (
	ServerTemplateSendProxyV2SslDisabled ServerTemplateSendProxyV2Ssl = "disabled"
	ServerTemplateSendProxyV2SslEnabled  ServerTemplateSendProxyV2Ssl = "enabled"
)

Defines values for ServerTemplateSendProxyV2Ssl.

func (ServerTemplateSendProxyV2Ssl) Valid

Valid indicates whether the value is a known member of the ServerTemplateSendProxyV2Ssl enum.

type ServerTemplateSendProxyV2SslCn

type ServerTemplateSendProxyV2SslCn string

ServerTemplateSendProxyV2SslCn defines model for ServerTemplate.SendProxyV2SslCn.

const (
	ServerTemplateSendProxyV2SslCnDisabled ServerTemplateSendProxyV2SslCn = "disabled"
	ServerTemplateSendProxyV2SslCnEnabled  ServerTemplateSendProxyV2SslCn = "enabled"
)

Defines values for ServerTemplateSendProxyV2SslCn.

func (ServerTemplateSendProxyV2SslCn) Valid

Valid indicates whether the value is a known member of the ServerTemplateSendProxyV2SslCn enum.

type ServerTemplateSsl

type ServerTemplateSsl string

ServerTemplateSsl defines model for ServerTemplate.Ssl.

const (
	ServerTemplateSslDisabled ServerTemplateSsl = "disabled"
	ServerTemplateSslEnabled  ServerTemplateSsl = "enabled"
)

Defines values for ServerTemplateSsl.

func (ServerTemplateSsl) Valid

func (e ServerTemplateSsl) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateSsl enum.

type ServerTemplateSslMaxVer

type ServerTemplateSslMaxVer string

ServerTemplateSslMaxVer defines model for ServerTemplate.SslMaxVer.

const (
	ServerTemplateSslMaxVerSSLv3  ServerTemplateSslMaxVer = "SSLv3"
	ServerTemplateSslMaxVerTLSv10 ServerTemplateSslMaxVer = "TLSv1.0"
	ServerTemplateSslMaxVerTLSv11 ServerTemplateSslMaxVer = "TLSv1.1"
	ServerTemplateSslMaxVerTLSv12 ServerTemplateSslMaxVer = "TLSv1.2"
	ServerTemplateSslMaxVerTLSv13 ServerTemplateSslMaxVer = "TLSv1.3"
)

Defines values for ServerTemplateSslMaxVer.

func (ServerTemplateSslMaxVer) Valid

func (e ServerTemplateSslMaxVer) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateSslMaxVer enum.

type ServerTemplateSslMinVer

type ServerTemplateSslMinVer string

ServerTemplateSslMinVer defines model for ServerTemplate.SslMinVer.

const (
	ServerTemplateSslMinVerSSLv3  ServerTemplateSslMinVer = "SSLv3"
	ServerTemplateSslMinVerTLSv10 ServerTemplateSslMinVer = "TLSv1.0"
	ServerTemplateSslMinVerTLSv11 ServerTemplateSslMinVer = "TLSv1.1"
	ServerTemplateSslMinVerTLSv12 ServerTemplateSslMinVer = "TLSv1.2"
	ServerTemplateSslMinVerTLSv13 ServerTemplateSslMinVer = "TLSv1.3"
)

Defines values for ServerTemplateSslMinVer.

func (ServerTemplateSslMinVer) Valid

func (e ServerTemplateSslMinVer) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateSslMinVer enum.

type ServerTemplateSslReuse

type ServerTemplateSslReuse string

ServerTemplateSslReuse defines model for ServerTemplate.SslReuse.

const (
	ServerTemplateSslReuseDisabled ServerTemplateSslReuse = "disabled"
	ServerTemplateSslReuseEnabled  ServerTemplateSslReuse = "enabled"
)

Defines values for ServerTemplateSslReuse.

func (ServerTemplateSslReuse) Valid

func (e ServerTemplateSslReuse) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateSslReuse enum.

type ServerTemplateSslv3

type ServerTemplateSslv3 string

ServerTemplateSslv3 defines model for ServerTemplate.Sslv3.

const (
	ServerTemplateSslv3Disabled ServerTemplateSslv3 = "disabled"
	ServerTemplateSslv3Enabled  ServerTemplateSslv3 = "enabled"
)

Defines values for ServerTemplateSslv3.

func (ServerTemplateSslv3) Valid

func (e ServerTemplateSslv3) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateSslv3 enum.

type ServerTemplateStick

type ServerTemplateStick string

ServerTemplateStick defines model for ServerTemplate.Stick.

const (
	ServerTemplateStickDisabled ServerTemplateStick = "disabled"
	ServerTemplateStickEnabled  ServerTemplateStick = "enabled"
)

Defines values for ServerTemplateStick.

func (ServerTemplateStick) Valid

func (e ServerTemplateStick) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateStick enum.

type ServerTemplateTfo

type ServerTemplateTfo string

ServerTemplateTfo defines model for ServerTemplate.Tfo.

const (
	ServerTemplateTfoDisabled ServerTemplateTfo = "disabled"
	ServerTemplateTfoEnabled  ServerTemplateTfo = "enabled"
)

Defines values for ServerTemplateTfo.

func (ServerTemplateTfo) Valid

func (e ServerTemplateTfo) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateTfo enum.

type ServerTemplateTlsTickets

type ServerTemplateTlsTickets string

ServerTemplateTlsTickets defines model for ServerTemplate.TlsTickets.

const (
	ServerTemplateTlsTicketsDisabled ServerTemplateTlsTickets = "disabled"
	ServerTemplateTlsTicketsEnabled  ServerTemplateTlsTickets = "enabled"
)

Defines values for ServerTemplateTlsTickets.

func (ServerTemplateTlsTickets) Valid

func (e ServerTemplateTlsTickets) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateTlsTickets enum.

type ServerTemplateTlsv10

type ServerTemplateTlsv10 string

ServerTemplateTlsv10 defines model for ServerTemplate.Tlsv10.

const (
	ServerTemplateTlsv10Disabled ServerTemplateTlsv10 = "disabled"
	ServerTemplateTlsv10Enabled  ServerTemplateTlsv10 = "enabled"
)

Defines values for ServerTemplateTlsv10.

func (ServerTemplateTlsv10) Valid

func (e ServerTemplateTlsv10) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateTlsv10 enum.

type ServerTemplateTlsv11

type ServerTemplateTlsv11 string

ServerTemplateTlsv11 defines model for ServerTemplate.Tlsv11.

const (
	ServerTemplateTlsv11Disabled ServerTemplateTlsv11 = "disabled"
	ServerTemplateTlsv11Enabled  ServerTemplateTlsv11 = "enabled"
)

Defines values for ServerTemplateTlsv11.

func (ServerTemplateTlsv11) Valid

func (e ServerTemplateTlsv11) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateTlsv11 enum.

type ServerTemplateTlsv12

type ServerTemplateTlsv12 string

ServerTemplateTlsv12 defines model for ServerTemplate.Tlsv12.

const (
	ServerTemplateTlsv12Disabled ServerTemplateTlsv12 = "disabled"
	ServerTemplateTlsv12Enabled  ServerTemplateTlsv12 = "enabled"
)

Defines values for ServerTemplateTlsv12.

func (ServerTemplateTlsv12) Valid

func (e ServerTemplateTlsv12) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateTlsv12 enum.

type ServerTemplateTlsv13

type ServerTemplateTlsv13 string

ServerTemplateTlsv13 defines model for ServerTemplate.Tlsv13.

const (
	ServerTemplateTlsv13Disabled ServerTemplateTlsv13 = "disabled"
	ServerTemplateTlsv13Enabled  ServerTemplateTlsv13 = "enabled"
)

Defines values for ServerTemplateTlsv13.

func (ServerTemplateTlsv13) Valid

func (e ServerTemplateTlsv13) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateTlsv13 enum.

type ServerTemplateVerify

type ServerTemplateVerify string

ServerTemplateVerify defines model for ServerTemplate.Verify.

const (
	ServerTemplateVerifyNone     ServerTemplateVerify = "none"
	ServerTemplateVerifyRequired ServerTemplateVerify = "required"
)

Defines values for ServerTemplateVerify.

func (ServerTemplateVerify) Valid

func (e ServerTemplateVerify) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateVerify enum.

type ServerTemplateWs

type ServerTemplateWs string

ServerTemplateWs defines model for ServerTemplate.Ws.

const (
	ServerTemplateWsAuto ServerTemplateWs = "auto"
	ServerTemplateWsH1   ServerTemplateWs = "h1"
	ServerTemplateWsH2   ServerTemplateWs = "h2"
)

Defines values for ServerTemplateWs.

func (ServerTemplateWs) Valid

func (e ServerTemplateWs) Valid() bool

Valid indicates whether the value is a known member of the ServerTemplateWs enum.

type ServerTfo

type ServerTfo string

ServerTfo defines model for Server.Tfo.

const (
	ServerTfoDisabled ServerTfo = "disabled"
	ServerTfoEnabled  ServerTfo = "enabled"
)

Defines values for ServerTfo.

func (ServerTfo) Valid

func (e ServerTfo) Valid() bool

Valid indicates whether the value is a known member of the ServerTfo enum.

type ServerTlsTickets

type ServerTlsTickets string

ServerTlsTickets defines model for Server.TlsTickets.

const (
	ServerTlsTicketsDisabled ServerTlsTickets = "disabled"
	ServerTlsTicketsEnabled  ServerTlsTickets = "enabled"
)

Defines values for ServerTlsTickets.

func (ServerTlsTickets) Valid

func (e ServerTlsTickets) Valid() bool

Valid indicates whether the value is a known member of the ServerTlsTickets enum.

type ServerTlsv10

type ServerTlsv10 string

ServerTlsv10 defines model for Server.Tlsv10.

const (
	ServerTlsv10Disabled ServerTlsv10 = "disabled"
	ServerTlsv10Enabled  ServerTlsv10 = "enabled"
)

Defines values for ServerTlsv10.

func (ServerTlsv10) Valid

func (e ServerTlsv10) Valid() bool

Valid indicates whether the value is a known member of the ServerTlsv10 enum.

type ServerTlsv11

type ServerTlsv11 string

ServerTlsv11 defines model for Server.Tlsv11.

const (
	ServerTlsv11Disabled ServerTlsv11 = "disabled"
	ServerTlsv11Enabled  ServerTlsv11 = "enabled"
)

Defines values for ServerTlsv11.

func (ServerTlsv11) Valid

func (e ServerTlsv11) Valid() bool

Valid indicates whether the value is a known member of the ServerTlsv11 enum.

type ServerTlsv12

type ServerTlsv12 string

ServerTlsv12 defines model for Server.Tlsv12.

const (
	ServerTlsv12Disabled ServerTlsv12 = "disabled"
	ServerTlsv12Enabled  ServerTlsv12 = "enabled"
)

Defines values for ServerTlsv12.

func (ServerTlsv12) Valid

func (e ServerTlsv12) Valid() bool

Valid indicates whether the value is a known member of the ServerTlsv12 enum.

type ServerTlsv13

type ServerTlsv13 string

ServerTlsv13 defines model for Server.Tlsv13.

const (
	ServerTlsv13Disabled ServerTlsv13 = "disabled"
	ServerTlsv13Enabled  ServerTlsv13 = "enabled"
)

Defines values for ServerTlsv13.

func (ServerTlsv13) Valid

func (e ServerTlsv13) Valid() bool

Valid indicates whether the value is a known member of the ServerTlsv13 enum.

type ServerVerify

type ServerVerify string

ServerVerify defines model for Server.Verify.

const (
	ServerVerifyNone     ServerVerify = "none"
	ServerVerifyRequired ServerVerify = "required"
)

Defines values for ServerVerify.

func (ServerVerify) Valid

func (e ServerVerify) Valid() bool

Valid indicates whether the value is a known member of the ServerVerify enum.

type ServerWs

type ServerWs string

ServerWs defines model for Server.Ws.

const (
	ServerWsAuto ServerWs = "auto"
	ServerWsH1   ServerWs = "h1"
	ServerWsH2   ServerWs = "h2"
)

Defines values for ServerWs.

func (ServerWs) Valid

func (e ServerWs) Valid() bool

Valid indicates whether the value is a known member of the ServerWs enum.

type SetCaFileMultipartBody

type SetCaFileMultipartBody struct {
	FileUpload openapi_types.File `json:"file_upload"`
}

SetCaFileMultipartBody defines parameters for SetCaFile.

type SetCaFileMultipartRequestBody

type SetCaFileMultipartRequestBody SetCaFileMultipartBody

SetCaFileMultipartRequestBody defines body for SetCaFile for multipart/form-data ContentType.

type SkipReload

type SkipReload = bool

SkipReload defines model for skip_reload.

type SmtpchkParams

type SmtpchkParams struct {
	Domain *string `json:"domain,omitempty"`
	Hello  *string `json:"hello,omitempty"`
}

SmtpchkParams defines model for smtpchk_params.

type Source

type Source struct {
	Address       string        `json:"address"`
	AddressSecond *string       `json:"address_second,omitempty"`
	Hdr           *string       `json:"hdr,omitempty"`
	Interface     *string       `json:"interface,omitempty"`
	Occ           *string       `json:"occ,omitempty"`
	Port          *int          `json:"port,omitempty"`
	PortSecond    *int          `json:"port_second,omitempty"`
	Usesrc        *SourceUsesrc `json:"usesrc,omitempty"`
}

Source defines model for source.

type SourceUsesrc

type SourceUsesrc string

SourceUsesrc defines model for Source.Usesrc.

const (
	SourceUsesrcAddress  SourceUsesrc = "address"
	SourceUsesrcClient   SourceUsesrc = "client"
	SourceUsesrcClientip SourceUsesrc = "clientip"
	SourceUsesrcHdrIp    SourceUsesrc = "hdr_ip"
)

Defines values for SourceUsesrc.

func (SourceUsesrc) Valid

func (e SourceUsesrc) Valid() bool

Valid indicates whether the value is a known member of the SourceUsesrc enum.

type SslCaFile

type SslCaFile struct {
	Count       *string `json:"count,omitempty"`
	File        *string `json:"file,omitempty"`
	StorageName *string `json:"storage_name,omitempty"`
}

SslCaFile A file containing one or more SSL/TLS certificates and keys

type SslCaFiles

type SslCaFiles = []SslCaFile

SslCaFiles Array of SSL CA files

type SslCertificate

type SslCertificate struct {
	Algorithm         *string    `json:"algorithm,omitempty"`
	AuthorityKeyId    *string    `json:"authority_key_id,omitempty"`
	ChainIssuer       *string    `json:"chain_issuer,omitempty"`
	ChainSubject      *string    `json:"chain_subject,omitempty"`
	Description       *string    `json:"description,omitempty"`
	Domains           *string    `json:"domains,omitempty"`
	File              *string    `json:"file,omitempty"`
	IpAddresses       *string    `json:"ip_addresses,omitempty"`
	Issuers           *string    `json:"issuers,omitempty"`
	NotAfter          *time.Time `json:"not_after,omitempty"`
	NotBefore         *time.Time `json:"not_before,omitempty"`
	Serial            *string    `json:"serial,omitempty"`
	Sha1FingerPrint   *string    `json:"sha1_finger_print,omitempty"`
	Sha256FingerPrint *string    `json:"sha256_finger_print,omitempty"`

	// Size File size in bytes.
	Size *int `json:"size,omitempty"`

	// Status Only set when using the runtime API.
	Status                  *string `json:"status,omitempty"`
	StorageName             *string `json:"storage_name,omitempty"`
	Subject                 *string `json:"subject,omitempty"`
	SubjectAlternativeNames *string `json:"subject_alternative_names,omitempty"`
	SubjectKeyId            *string `json:"subject_key_id,omitempty"`
}

SslCertificate A file containing one or more SSL/TLS certificates and keys

type SslCertificates

type SslCertificates = []SslCertificate

SslCertificates Array of ssl certificate files

type SslCrtListFile

type SslCrtListFile struct {
	Description *string `json:"description,omitempty"`
	File        *string `json:"file,omitempty"`

	// Size File size in bytes.
	Size        *int    `json:"size,omitempty"`
	StorageName *string `json:"storage_name,omitempty"`
}

SslCrtListFile A file referencing one or more certificates with their configuration.

type SslCrtListFiles

type SslCrtListFiles = []SslCrtListFile

SslCrtListFiles List of SSL certificate list files (crt-list)

type StatsAuth

type StatsAuth struct {
	Passwd string `json:"passwd"`
	User   string `json:"user"`
}

StatsAuth defines model for stats_auth.

type StatsHttpRequest

type StatsHttpRequest struct {
	Cond     *string              `json:"cond,omitempty"`
	CondTest *string              `json:"cond_test,omitempty"`
	Realm    *string              `json:"realm,omitempty"`
	Type     StatsHttpRequestType `json:"type"`
}

StatsHttpRequest defines model for stats_http_request.

type StatsHttpRequestType

type StatsHttpRequestType string

StatsHttpRequestType defines model for StatsHttpRequest.Type.

const (
	StatsHttpRequestTypeAllow StatsHttpRequestType = "allow"
	StatsHttpRequestTypeAuth  StatsHttpRequestType = "auth"
	StatsHttpRequestTypeDeny  StatsHttpRequestType = "deny"
)

Defines values for StatsHttpRequestType.

func (StatsHttpRequestType) Valid

func (e StatsHttpRequestType) Valid() bool

Valid indicates whether the value is a known member of the StatsHttpRequestType enum.

type StatsOptions

type StatsOptions struct {
	StatsAdmin         *bool                       `json:"stats_admin,omitempty"`
	StatsAdminCond     *StatsOptionsStatsAdminCond `json:"stats_admin_cond,omitempty"`
	StatsAdminCondTest *string                     `json:"stats_admin_cond_test,omitempty"`
	StatsAuths         *[]StatsAuth                `json:"stats_auths,omitempty"`
	StatsEnable        *bool                       `json:"stats_enable,omitempty"`
	StatsHideVersion   *bool                       `json:"stats_hide_version,omitempty"`
	StatsHttpRequests  *[]StatsHttpRequest         `json:"stats_http_requests,omitempty"`
	StatsMaxconn       *int                        `json:"stats_maxconn,omitempty"`
	StatsRealm         *bool                       `json:"stats_realm,omitempty"`
	StatsRealmRealm    *string                     `json:"stats_realm_realm,omitempty"`
	StatsRefreshDelay  *int                        `json:"stats_refresh_delay,omitempty"`
	StatsShowDesc      *string                     `json:"stats_show_desc,omitempty"`
	StatsShowLegends   *bool                       `json:"stats_show_legends,omitempty"`
	StatsShowModules   *bool                       `json:"stats_show_modules,omitempty"`
	StatsShowNodeName  *string                     `json:"stats_show_node_name"`
	StatsUriPrefix     *string                     `json:"stats_uri_prefix,omitempty"`
}

StatsOptions defines model for stats_options.

type StatsOptionsStatsAdminCond

type StatsOptionsStatsAdminCond string

StatsOptionsStatsAdminCond defines model for StatsOptions.StatsAdminCond.

const (
	StatsOptionsStatsAdminCondIf     StatsOptionsStatsAdminCond = "if"
	StatsOptionsStatsAdminCondUnless StatsOptionsStatsAdminCond = "unless"
)

Defines values for StatsOptionsStatsAdminCond.

func (StatsOptionsStatsAdminCond) Valid

func (e StatsOptionsStatsAdminCond) Valid() bool

Valid indicates whether the value is a known member of the StatsOptionsStatsAdminCond enum.

type StickRule

type StickRule struct {
	Cond     *StickRuleCond                     `json:"cond,omitempty"`
	CondTest *string                            `json:"cond_test,omitempty"`
	Metadata *map[string]map[string]interface{} `json:"metadata,omitempty"`
	Pattern  string                             `json:"pattern"`
	Table    *string                            `json:"table,omitempty"`
	Type     StickRuleType                      `json:"type"`
}

StickRule Define a pattern used to create an entry in a stickiness table or matching condition or associate a user to a server.

type StickRuleCond

type StickRuleCond string

StickRuleCond defines model for StickRule.Cond.

const (
	StickRuleCondIf     StickRuleCond = "if"
	StickRuleCondUnless StickRuleCond = "unless"
)

Defines values for StickRuleCond.

func (StickRuleCond) Valid

func (e StickRuleCond) Valid() bool

Valid indicates whether the value is a known member of the StickRuleCond enum.

type StickRuleType

type StickRuleType string

StickRuleType defines model for StickRule.Type.

const (
	StickRuleTypeMatch         StickRuleType = "match"
	StickRuleTypeOn            StickRuleType = "on"
	StickRuleTypeStoreRequest  StickRuleType = "store-request"
	StickRuleTypeStoreResponse StickRuleType = "store-response"
)

Defines values for StickRuleType.

func (StickRuleType) Valid

func (e StickRuleType) Valid() bool

Valid indicates whether the value is a known member of the StickRuleType enum.

type StickRules

type StickRules = []StickRule

StickRules HAProxy backend stick rules array (corresponds to stick store-request, stick match, stick on, stick store-response)

type TcpCheck

type TcpCheck struct {
	Action          TcpCheckAction                     `json:"action"`
	Addr            *string                            `json:"addr,omitempty"`
	Alpn            *string                            `json:"alpn,omitempty"`
	CheckComment    *string                            `json:"check_comment,omitempty"`
	Data            *string                            `json:"data,omitempty"`
	Default         *bool                              `json:"default,omitempty"`
	ErrorStatus     *TcpCheckErrorStatus               `json:"error_status,omitempty"`
	ExclamationMark *bool                              `json:"exclamation_mark,omitempty"`
	Fmt             *string                            `json:"fmt,omitempty"`
	HexFmt          *string                            `json:"hex_fmt,omitempty"`
	HexString       *string                            `json:"hex_string,omitempty"`
	Linger          *bool                              `json:"linger,omitempty"`
	Match           *TcpCheckMatch                     `json:"match,omitempty"`
	Metadata        *map[string]map[string]interface{} `json:"metadata,omitempty"`
	MinRecv         *int                               `json:"min_recv,omitempty"`
	OkStatus        *TcpCheckOkStatus                  `json:"ok_status,omitempty"`
	OnError         *string                            `json:"on_error,omitempty"`
	OnSuccess       *string                            `json:"on_success,omitempty"`
	Pattern         *string                            `json:"pattern,omitempty"`
	Port            *int                               `json:"port,omitempty"`
	PortString      *string                            `json:"port_string,omitempty"`
	Proto           *string                            `json:"proto,omitempty"`
	SendProxy       *bool                              `json:"send_proxy,omitempty"`
	Sni             *string                            `json:"sni,omitempty"`
	Ssl             *bool                              `json:"ssl,omitempty"`
	StatusCode      *string                            `json:"status-code,omitempty"`
	ToutStatus      *TcpCheckToutStatus                `json:"tout_status,omitempty"`
	VarExpr         *string                            `json:"var_expr,omitempty"`
	VarFmt          *string                            `json:"var_fmt,omitempty"`
	VarName         *string                            `json:"var_name,omitempty"`
	VarScope        *string                            `json:"var_scope,omitempty"`
	ViaSocks4       *bool                              `json:"via_socks4,omitempty"`
}

TcpCheck defines model for tcp_check.

type TcpCheckAction

type TcpCheckAction string

TcpCheckAction defines model for TcpCheck.Action.

const (
	TcpCheckActionComment      TcpCheckAction = "comment"
	TcpCheckActionConnect      TcpCheckAction = "connect"
	TcpCheckActionExpect       TcpCheckAction = "expect"
	TcpCheckActionSend         TcpCheckAction = "send"
	TcpCheckActionSendBinary   TcpCheckAction = "send-binary"
	TcpCheckActionSendBinaryLf TcpCheckAction = "send-binary-lf"
	TcpCheckActionSendLf       TcpCheckAction = "send-lf"
	TcpCheckActionSetVar       TcpCheckAction = "set-var"
	TcpCheckActionSetVarFmt    TcpCheckAction = "set-var-fmt"
	TcpCheckActionUnsetVar     TcpCheckAction = "unset-var"
)

Defines values for TcpCheckAction.

func (TcpCheckAction) Valid

func (e TcpCheckAction) Valid() bool

Valid indicates whether the value is a known member of the TcpCheckAction enum.

type TcpCheckErrorStatus

type TcpCheckErrorStatus string

TcpCheckErrorStatus defines model for TcpCheck.ErrorStatus.

const (
	TcpCheckErrorStatusL4CON TcpCheckErrorStatus = "L4CON"
	TcpCheckErrorStatusL6RSP TcpCheckErrorStatus = "L6RSP"
	TcpCheckErrorStatusL7OKC TcpCheckErrorStatus = "L7OKC"
	TcpCheckErrorStatusL7RSP TcpCheckErrorStatus = "L7RSP"
	TcpCheckErrorStatusL7STS TcpCheckErrorStatus = "L7STS"
)

Defines values for TcpCheckErrorStatus.

func (TcpCheckErrorStatus) Valid

func (e TcpCheckErrorStatus) Valid() bool

Valid indicates whether the value is a known member of the TcpCheckErrorStatus enum.

type TcpCheckMatch

type TcpCheckMatch string

TcpCheckMatch defines model for TcpCheck.Match.

const (
	TcpCheckMatchBinary   TcpCheckMatch = "binary"
	TcpCheckMatchBinaryLf TcpCheckMatch = "binary-lf"
	TcpCheckMatchRbinary  TcpCheckMatch = "rbinary"
	TcpCheckMatchRstring  TcpCheckMatch = "rstring"
	TcpCheckMatchString   TcpCheckMatch = "string"
	TcpCheckMatchStringLf TcpCheckMatch = "string-lf"
)

Defines values for TcpCheckMatch.

func (TcpCheckMatch) Valid

func (e TcpCheckMatch) Valid() bool

Valid indicates whether the value is a known member of the TcpCheckMatch enum.

type TcpCheckOkStatus

type TcpCheckOkStatus string

TcpCheckOkStatus defines model for TcpCheck.OkStatus.

const (
	TcpCheckOkStatusL4OK  TcpCheckOkStatus = "L4OK"
	TcpCheckOkStatusL6OK  TcpCheckOkStatus = "L6OK"
	TcpCheckOkStatusL7OK  TcpCheckOkStatus = "L7OK"
	TcpCheckOkStatusL7OKC TcpCheckOkStatus = "L7OKC"
)

Defines values for TcpCheckOkStatus.

func (TcpCheckOkStatus) Valid

func (e TcpCheckOkStatus) Valid() bool

Valid indicates whether the value is a known member of the TcpCheckOkStatus enum.

type TcpCheckToutStatus

type TcpCheckToutStatus string

TcpCheckToutStatus defines model for TcpCheck.ToutStatus.

const (
	TcpCheckToutStatusL4TOUT TcpCheckToutStatus = "L4TOUT"
	TcpCheckToutStatusL6TOUT TcpCheckToutStatus = "L6TOUT"
	TcpCheckToutStatusL7TOUT TcpCheckToutStatus = "L7TOUT"
)

Defines values for TcpCheckToutStatus.

func (TcpCheckToutStatus) Valid

func (e TcpCheckToutStatus) Valid() bool

Valid indicates whether the value is a known member of the TcpCheckToutStatus enum.

type TcpChecks

type TcpChecks = []TcpCheck

TcpChecks defines model for tcp_checks.

type TcpRequestRule

type TcpRequestRule struct {
	Action               *TcpRequestRuleAction              `json:"action,omitempty"`
	BandwidthLimitLimit  *string                            `json:"bandwidth_limit_limit,omitempty"`
	BandwidthLimitName   *string                            `json:"bandwidth_limit_name,omitempty"`
	BandwidthLimitPeriod *string                            `json:"bandwidth_limit_period,omitempty"`
	CaptureLen           *int                               `json:"capture_len,omitempty"`
	CaptureSample        *string                            `json:"capture_sample,omitempty"`
	Cond                 *TcpRequestRuleCond                `json:"cond,omitempty"`
	CondTest             *string                            `json:"cond_test,omitempty"`
	Expr                 *string                            `json:"expr,omitempty"`
	GptValue             *string                            `json:"gpt_value,omitempty"`
	LogLevel             *TcpRequestRuleLogLevel            `json:"log_level,omitempty"`
	LuaAction            *string                            `json:"lua_action,omitempty"`
	LuaParams            *string                            `json:"lua_params,omitempty"`
	MarkValue            *string                            `json:"mark_value,omitempty"`
	Metadata             *map[string]map[string]interface{} `json:"metadata,omitempty"`
	NiceValue            *int                               `json:"nice_value,omitempty"`
	ResolveProtocol      *TcpRequestRuleResolveProtocol     `json:"resolve_protocol,omitempty"`
	ResolveResolvers     *string                            `json:"resolve_resolvers,omitempty"`
	ResolveVar           *string                            `json:"resolve_var,omitempty"`
	RstTtl               *int                               `json:"rst_ttl,omitempty"`
	ScCnt                *int                               `json:"sc_cnt,omitempty"`
	ScIdx                *string                            `json:"sc_idx,omitempty"`
	ScIncId              *string                            `json:"sc_inc_id,omitempty"`
	ScInt                *int                               `json:"sc_int,omitempty"`
	ScMessage            *string                            `json:"sc_message,omitempty"`
	ServerName           *string                            `json:"server_name,omitempty"`
	ServiceName          *string                            `json:"service_name,omitempty"`
	SpoeEngineName       *string                            `json:"spoe_engine_name,omitempty"`
	SpoeGroupName        *string                            `json:"spoe_group_name,omitempty"`
	SwitchModeProto      *string                            `json:"switch_mode_proto,omitempty"`
	Timeout              *int                               `json:"timeout,omitempty"`
	TosValue             *string                            `json:"tos_value,omitempty"`
	TrackKey             *string                            `json:"track_key,omitempty"`
	TrackStickCounter    *int                               `json:"track_stick_counter,omitempty"`
	TrackTable           *string                            `json:"track_table,omitempty"`
	Type                 TcpRequestRuleType                 `json:"type"`
	VarFormat            *string                            `json:"var_format,omitempty"`
	VarName              *string                            `json:"var_name,omitempty"`
	VarScope             *string                            `json:"var_scope,omitempty"`
}

TcpRequestRule HAProxy TCP Request Rule configuration (corresponds to tcp-request)

type TcpRequestRuleAction

type TcpRequestRuleAction string

TcpRequestRuleAction defines model for TcpRequestRule.Action.

const (
	TcpRequestRuleActionAccept             TcpRequestRuleAction = "accept"
	TcpRequestRuleActionAttachSrv          TcpRequestRuleAction = "attach-srv"
	TcpRequestRuleActionCapture            TcpRequestRuleAction = "capture"
	TcpRequestRuleActionDoLog              TcpRequestRuleAction = "do-log"
	TcpRequestRuleActionDoResolve          TcpRequestRuleAction = "do-resolve"
	TcpRequestRuleActionExpectNetscalerCip TcpRequestRuleAction = "expect-netscaler-cip"
	TcpRequestRuleActionExpectProxy        TcpRequestRuleAction = "expect-proxy"
	TcpRequestRuleActionLua                TcpRequestRuleAction = "lua"
	TcpRequestRuleActionReject             TcpRequestRuleAction = "reject"
	TcpRequestRuleActionScAddGpc           TcpRequestRuleAction = "sc-add-gpc"
	TcpRequestRuleActionScIncGpc           TcpRequestRuleAction = "sc-inc-gpc"
	TcpRequestRuleActionScIncGpc0          TcpRequestRuleAction = "sc-inc-gpc0"
	TcpRequestRuleActionScIncGpc1          TcpRequestRuleAction = "sc-inc-gpc1"
	TcpRequestRuleActionScSetGpt           TcpRequestRuleAction = "sc-set-gpt"
	TcpRequestRuleActionScSetGpt0          TcpRequestRuleAction = "sc-set-gpt0"
	TcpRequestRuleActionScSetGptstr        TcpRequestRuleAction = "sc-set-gptstr"
	TcpRequestRuleActionSendSpoeGroup      TcpRequestRuleAction = "send-spoe-group"
	TcpRequestRuleActionSetBandwidthLimit  TcpRequestRuleAction = "set-bandwidth-limit"
	TcpRequestRuleActionSetBcMark          TcpRequestRuleAction = "set-bc-mark"
	TcpRequestRuleActionSetBcTos           TcpRequestRuleAction = "set-bc-tos"
	TcpRequestRuleActionSetDst             TcpRequestRuleAction = "set-dst"
	TcpRequestRuleActionSetDstPort         TcpRequestRuleAction = "set-dst-port"
	TcpRequestRuleActionSetFcMark          TcpRequestRuleAction = "set-fc-mark"
	TcpRequestRuleActionSetFcTos           TcpRequestRuleAction = "set-fc-tos"
	TcpRequestRuleActionSetLogLevel        TcpRequestRuleAction = "set-log-level"
	TcpRequestRuleActionSetMark            TcpRequestRuleAction = "set-mark"
	TcpRequestRuleActionSetNice            TcpRequestRuleAction = "set-nice"
	TcpRequestRuleActionSetPriorityClass   TcpRequestRuleAction = "set-priority-class"
	TcpRequestRuleActionSetPriorityOffset  TcpRequestRuleAction = "set-priority-offset"
	TcpRequestRuleActionSetRetries         TcpRequestRuleAction = "set-retries"
	TcpRequestRuleActionSetSrc             TcpRequestRuleAction = "set-src"
	TcpRequestRuleActionSetSrcPort         TcpRequestRuleAction = "set-src-port"
	TcpRequestRuleActionSetTos             TcpRequestRuleAction = "set-tos"
	TcpRequestRuleActionSetVar             TcpRequestRuleAction = "set-var"
	TcpRequestRuleActionSetVarFmt          TcpRequestRuleAction = "set-var-fmt"
	TcpRequestRuleActionSilentDrop         TcpRequestRuleAction = "silent-drop"
	TcpRequestRuleActionSwitchMode         TcpRequestRuleAction = "switch-mode"
	TcpRequestRuleActionTrackSc            TcpRequestRuleAction = "track-sc"
	TcpRequestRuleActionUnsetVar           TcpRequestRuleAction = "unset-var"
	TcpRequestRuleActionUseService         TcpRequestRuleAction = "use-service"
)

Defines values for TcpRequestRuleAction.

func (TcpRequestRuleAction) Valid

func (e TcpRequestRuleAction) Valid() bool

Valid indicates whether the value is a known member of the TcpRequestRuleAction enum.

type TcpRequestRuleCond

type TcpRequestRuleCond string

TcpRequestRuleCond defines model for TcpRequestRule.Cond.

const (
	TcpRequestRuleCondIf     TcpRequestRuleCond = "if"
	TcpRequestRuleCondUnless TcpRequestRuleCond = "unless"
)

Defines values for TcpRequestRuleCond.

func (TcpRequestRuleCond) Valid

func (e TcpRequestRuleCond) Valid() bool

Valid indicates whether the value is a known member of the TcpRequestRuleCond enum.

type TcpRequestRuleLogLevel

type TcpRequestRuleLogLevel string

TcpRequestRuleLogLevel defines model for TcpRequestRule.LogLevel.

const (
	TcpRequestRuleLogLevelAlert   TcpRequestRuleLogLevel = "alert"
	TcpRequestRuleLogLevelCrit    TcpRequestRuleLogLevel = "crit"
	TcpRequestRuleLogLevelDebug   TcpRequestRuleLogLevel = "debug"
	TcpRequestRuleLogLevelEmerg   TcpRequestRuleLogLevel = "emerg"
	TcpRequestRuleLogLevelErr     TcpRequestRuleLogLevel = "err"
	TcpRequestRuleLogLevelInfo    TcpRequestRuleLogLevel = "info"
	TcpRequestRuleLogLevelNotice  TcpRequestRuleLogLevel = "notice"
	TcpRequestRuleLogLevelSilent  TcpRequestRuleLogLevel = "silent"
	TcpRequestRuleLogLevelWarning TcpRequestRuleLogLevel = "warning"
)

Defines values for TcpRequestRuleLogLevel.

func (TcpRequestRuleLogLevel) Valid

func (e TcpRequestRuleLogLevel) Valid() bool

Valid indicates whether the value is a known member of the TcpRequestRuleLogLevel enum.

type TcpRequestRuleResolveProtocol

type TcpRequestRuleResolveProtocol string

TcpRequestRuleResolveProtocol defines model for TcpRequestRule.ResolveProtocol.

const (
	TcpRequestRuleResolveProtocolIpv4 TcpRequestRuleResolveProtocol = "ipv4"
	TcpRequestRuleResolveProtocolIpv6 TcpRequestRuleResolveProtocol = "ipv6"
)

Defines values for TcpRequestRuleResolveProtocol.

func (TcpRequestRuleResolveProtocol) Valid

Valid indicates whether the value is a known member of the TcpRequestRuleResolveProtocol enum.

type TcpRequestRuleType

type TcpRequestRuleType string

TcpRequestRuleType defines model for TcpRequestRule.Type.

const (
	TcpRequestRuleTypeConnection   TcpRequestRuleType = "connection"
	TcpRequestRuleTypeContent      TcpRequestRuleType = "content"
	TcpRequestRuleTypeInspectDelay TcpRequestRuleType = "inspect-delay"
	TcpRequestRuleTypeSession      TcpRequestRuleType = "session"
)

Defines values for TcpRequestRuleType.

func (TcpRequestRuleType) Valid

func (e TcpRequestRuleType) Valid() bool

Valid indicates whether the value is a known member of the TcpRequestRuleType enum.

type TcpRequestRules

type TcpRequestRules = []TcpRequestRule

TcpRequestRules HAProxy TCP request rules array (corresponds to tcp-request directive)

type TcpResponseRule

type TcpResponseRule struct {
	Action               *TcpResponseRuleAction             `json:"action,omitempty"`
	BandwidthLimitLimit  *string                            `json:"bandwidth_limit_limit,omitempty"`
	BandwidthLimitName   *string                            `json:"bandwidth_limit_name,omitempty"`
	BandwidthLimitPeriod *string                            `json:"bandwidth_limit_period,omitempty"`
	Cond                 *TcpResponseRuleCond               `json:"cond,omitempty"`
	CondTest             *string                            `json:"cond_test,omitempty"`
	Expr                 *string                            `json:"expr,omitempty"`
	LogLevel             *TcpResponseRuleLogLevel           `json:"log_level,omitempty"`
	LuaAction            *string                            `json:"lua_action,omitempty"`
	LuaParams            *string                            `json:"lua_params,omitempty"`
	MarkValue            *string                            `json:"mark_value,omitempty"`
	Metadata             *map[string]map[string]interface{} `json:"metadata,omitempty"`
	NiceValue            *int                               `json:"nice_value,omitempty"`
	RstTtl               *int                               `json:"rst_ttl,omitempty"`
	ScCnt                *int                               `json:"sc_cnt,omitempty"`
	ScExpr               *string                            `json:"sc_expr,omitempty"`
	ScId                 *int                               `json:"sc_id,omitempty"`
	ScIdx                *int                               `json:"sc_idx,omitempty"`
	ScInt                *int                               `json:"sc_int,omitempty"`
	ScMessage            *string                            `json:"sc_message,omitempty"`
	SpoeEngine           *string                            `json:"spoe_engine,omitempty"`
	SpoeGroup            *string                            `json:"spoe_group,omitempty"`
	Timeout              *int                               `json:"timeout,omitempty"`
	TosValue             *string                            `json:"tos_value,omitempty"`
	Type                 TcpResponseRuleType                `json:"type"`
	VarFormat            *string                            `json:"var_format,omitempty"`
	VarName              *string                            `json:"var_name,omitempty"`
	VarScope             *string                            `json:"var_scope,omitempty"`
}

TcpResponseRule HAProxy TCP Response Rule configuration (corresponds to tcp-response)

type TcpResponseRuleAction

type TcpResponseRuleAction string

TcpResponseRuleAction defines model for TcpResponseRule.Action.

const (
	TcpResponseRuleActionAccept            TcpResponseRuleAction = "accept"
	TcpResponseRuleActionClose             TcpResponseRuleAction = "close"
	TcpResponseRuleActionDoLog             TcpResponseRuleAction = "do-log"
	TcpResponseRuleActionLua               TcpResponseRuleAction = "lua"
	TcpResponseRuleActionReject            TcpResponseRuleAction = "reject"
	TcpResponseRuleActionScAddGpc          TcpResponseRuleAction = "sc-add-gpc"
	TcpResponseRuleActionScIncGpc          TcpResponseRuleAction = "sc-inc-gpc"
	TcpResponseRuleActionScIncGpc0         TcpResponseRuleAction = "sc-inc-gpc0"
	TcpResponseRuleActionScIncGpc1         TcpResponseRuleAction = "sc-inc-gpc1"
	TcpResponseRuleActionScSetGpt          TcpResponseRuleAction = "sc-set-gpt"
	TcpResponseRuleActionScSetGpt0         TcpResponseRuleAction = "sc-set-gpt0"
	TcpResponseRuleActionScSetGptstr       TcpResponseRuleAction = "sc-set-gptstr"
	TcpResponseRuleActionSendSpoeGroup     TcpResponseRuleAction = "send-spoe-group"
	TcpResponseRuleActionSetBandwidthLimit TcpResponseRuleAction = "set-bandwidth-limit"
	TcpResponseRuleActionSetFcMark         TcpResponseRuleAction = "set-fc-mark"
	TcpResponseRuleActionSetFcTos          TcpResponseRuleAction = "set-fc-tos"
	TcpResponseRuleActionSetLogLevel       TcpResponseRuleAction = "set-log-level"
	TcpResponseRuleActionSetMark           TcpResponseRuleAction = "set-mark"
	TcpResponseRuleActionSetNice           TcpResponseRuleAction = "set-nice"
	TcpResponseRuleActionSetTos            TcpResponseRuleAction = "set-tos"
	TcpResponseRuleActionSetVar            TcpResponseRuleAction = "set-var"
	TcpResponseRuleActionSetVarFmt         TcpResponseRuleAction = "set-var-fmt"
	TcpResponseRuleActionSilentDrop        TcpResponseRuleAction = "silent-drop"
	TcpResponseRuleActionUnsetVar          TcpResponseRuleAction = "unset-var"
)

Defines values for TcpResponseRuleAction.

func (TcpResponseRuleAction) Valid

func (e TcpResponseRuleAction) Valid() bool

Valid indicates whether the value is a known member of the TcpResponseRuleAction enum.

type TcpResponseRuleCond

type TcpResponseRuleCond string

TcpResponseRuleCond defines model for TcpResponseRule.Cond.

const (
	TcpResponseRuleCondIf     TcpResponseRuleCond = "if"
	TcpResponseRuleCondUnless TcpResponseRuleCond = "unless"
)

Defines values for TcpResponseRuleCond.

func (TcpResponseRuleCond) Valid

func (e TcpResponseRuleCond) Valid() bool

Valid indicates whether the value is a known member of the TcpResponseRuleCond enum.

type TcpResponseRuleLogLevel

type TcpResponseRuleLogLevel string

TcpResponseRuleLogLevel defines model for TcpResponseRule.LogLevel.

const (
	TcpResponseRuleLogLevelAlert   TcpResponseRuleLogLevel = "alert"
	TcpResponseRuleLogLevelCrit    TcpResponseRuleLogLevel = "crit"
	TcpResponseRuleLogLevelDebug   TcpResponseRuleLogLevel = "debug"
	TcpResponseRuleLogLevelEmerg   TcpResponseRuleLogLevel = "emerg"
	TcpResponseRuleLogLevelErr     TcpResponseRuleLogLevel = "err"
	TcpResponseRuleLogLevelInfo    TcpResponseRuleLogLevel = "info"
	TcpResponseRuleLogLevelNotice  TcpResponseRuleLogLevel = "notice"
	TcpResponseRuleLogLevelSilent  TcpResponseRuleLogLevel = "silent"
	TcpResponseRuleLogLevelWarning TcpResponseRuleLogLevel = "warning"
)

Defines values for TcpResponseRuleLogLevel.

func (TcpResponseRuleLogLevel) Valid

func (e TcpResponseRuleLogLevel) Valid() bool

Valid indicates whether the value is a known member of the TcpResponseRuleLogLevel enum.

type TcpResponseRuleType

type TcpResponseRuleType string

TcpResponseRuleType defines model for TcpResponseRule.Type.

const (
	TcpResponseRuleTypeContent      TcpResponseRuleType = "content"
	TcpResponseRuleTypeInspectDelay TcpResponseRuleType = "inspect-delay"
)

Defines values for TcpResponseRuleType.

func (TcpResponseRuleType) Valid

func (e TcpResponseRuleType) Valid() bool

Valid indicates whether the value is a known member of the TcpResponseRuleType enum.

type TcpResponseRules

type TcpResponseRules = []TcpResponseRule

TcpResponseRules HAProxy TCP response rules array (corresponds to tcp-response directive)

type TransactionId

type TransactionId = string

TransactionId defines model for transaction_id.

type UDPLb

type UDPLb struct {
	// AcceptedPayloadSize Accepted payload size in bytes, defaults to 1472 bytes.
	AcceptedPayloadSize *int `json:"accepted_payload_size,omitempty"`

	// AclList HAProxy ACL lines array (corresponds to acl directives)
	AclList           *Acls                 `json:"acl_list,omitempty"`
	AdvCheck          *UdpLbAdvCheck        `json:"adv_check,omitempty"`
	Balance           *Balance              `json:"balance,omitempty"`
	ClientTimeout     *int                  `json:"client_timeout,omitempty"`
	DefaultServer     *DefaultServer        `json:"default_server,omitempty"`
	DgramBinds        *map[string]DgramBind `json:"dgram_binds,omitempty"`
	HashBalanceFactor *int                  `json:"hash_balance_factor,omitempty"`
	HashType          *HashType             `json:"hash_type,omitempty"`

	// LogTargetList HAProxy log target array (corresponds to log directives)
	LogTargetList  *LogTargets                        `json:"log_target_list,omitempty"`
	Maxconn        *int                               `json:"maxconn,omitempty"`
	Metadata       *map[string]map[string]interface{} `json:"metadata,omitempty"`
	Name           string                             `json:"name"`
	Persist        *UdpLbPersist                      `json:"persist,omitempty"`
	ProxyRequests  *int                               `json:"proxy_requests,omitempty"`
	ProxyResponses *int                               `json:"proxy_responses,omitempty"`

	// ServerSwitchingRuleList HAProxy backend server switching rules array (corresponds to use-server directives)
	ServerSwitchingRuleList *ServerSwitchingRules `json:"server_switching_rule_list,omitempty"`
	ServerTimeout           *int                  `json:"server_timeout,omitempty"`
	Servers                 *map[string]Server    `json:"servers,omitempty"`
	Source                  *Source               `json:"source,omitempty"`
	TcpCheckRuleList        *TcpChecks            `json:"tcp_check_rule_list,omitempty"`
}

UDPLb defines model for udp_lb.

type UdpLbAdvCheck

type UdpLbAdvCheck string

UdpLbAdvCheck defines model for UdpLb.AdvCheck.

const (
	UdpLbAdvCheckTcp UdpLbAdvCheck = "tcp"
	UdpLbAdvCheckUdp UdpLbAdvCheck = "udp"
)

Defines values for UdpLbAdvCheck.

func (UdpLbAdvCheck) Valid

func (e UdpLbAdvCheck) Valid() bool

Valid indicates whether the value is a known member of the UdpLbAdvCheck enum.

type UdpLbBase

type UdpLbBase struct {
	// AcceptedPayloadSize Accepted payload size in bytes, defaults to 1472 bytes.
	AcceptedPayloadSize *int                               `json:"accepted_payload_size,omitempty"`
	AdvCheck            *UdpLbBaseAdvCheck                 `json:"adv_check,omitempty"`
	Balance             *Balance                           `json:"balance,omitempty"`
	ClientTimeout       *int                               `json:"client_timeout,omitempty"`
	DefaultServer       *DefaultServer                     `json:"default_server,omitempty"`
	HashBalanceFactor   *int                               `json:"hash_balance_factor,omitempty"`
	HashType            *HashType                          `json:"hash_type,omitempty"`
	Maxconn             *int                               `json:"maxconn,omitempty"`
	Metadata            *map[string]map[string]interface{} `json:"metadata,omitempty"`
	Name                string                             `json:"name"`
	Persist             *UdpLbBasePersist                  `json:"persist,omitempty"`
	ProxyRequests       *int                               `json:"proxy_requests,omitempty"`
	ProxyResponses      *int                               `json:"proxy_responses,omitempty"`
	ServerTimeout       *int                               `json:"server_timeout,omitempty"`
	Source              *Source                            `json:"source,omitempty"`
}

UdpLbBase defines model for udp_lb_base.

type UdpLbBaseAdvCheck

type UdpLbBaseAdvCheck string

UdpLbBaseAdvCheck defines model for UdpLbBase.AdvCheck.

const (
	UdpLbBaseAdvCheckTcp UdpLbBaseAdvCheck = "tcp"
	UdpLbBaseAdvCheckUdp UdpLbBaseAdvCheck = "udp"
)

Defines values for UdpLbBaseAdvCheck.

func (UdpLbBaseAdvCheck) Valid

func (e UdpLbBaseAdvCheck) Valid() bool

Valid indicates whether the value is a known member of the UdpLbBaseAdvCheck enum.

type UdpLbBasePersist

type UdpLbBasePersist string

UdpLbBasePersist defines model for UdpLbBase.Persist.

const (
	UdpLbBasePersistDisabled UdpLbBasePersist = "disabled"
	UdpLbBasePersistEnabled  UdpLbBasePersist = "enabled"
)

Defines values for UdpLbBasePersist.

func (UdpLbBasePersist) Valid

func (e UdpLbBasePersist) Valid() bool

Valid indicates whether the value is a known member of the UdpLbBasePersist enum.

type UdpLbPersist

type UdpLbPersist string

UdpLbPersist defines model for UdpLb.Persist.

const (
	UdpLbPersistDisabled UdpLbPersist = "disabled"
	UdpLbPersistEnabled  UdpLbPersist = "enabled"
)

Defines values for UdpLbPersist.

func (UdpLbPersist) Valid

func (e UdpLbPersist) Valid() bool

Valid indicates whether the value is a known member of the UdpLbPersist enum.

type Version

type Version = int

Version defines model for version.

type WafBodyRule

type WafBodyRule struct {
	Cond       *WafBodyRuleCond `json:"cond,omitempty"`
	CondTest   *string          `json:"cond_test,omitempty"`
	DenyStatus *int             `json:"deny_status,omitempty"`
	Type       WafBodyRuleType  `json:"type"`
	VarExpr    *string          `json:"var_expr,omitempty"`
	VarName    *string          `json:"var_name,omitempty"`
	VarScope   *string          `json:"var_scope,omitempty"`
}

WafBodyRule defines model for waf_body_rule.

type WafBodyRuleCond

type WafBodyRuleCond string

WafBodyRuleCond defines model for WafBodyRule.Cond.

const (
	WafBodyRuleCondIf     WafBodyRuleCond = "if"
	WafBodyRuleCondUnless WafBodyRuleCond = "unless"
)

Defines values for WafBodyRuleCond.

func (WafBodyRuleCond) Valid

func (e WafBodyRuleCond) Valid() bool

Valid indicates whether the value is a known member of the WafBodyRuleCond enum.

type WafBodyRuleType

type WafBodyRuleType string

WafBodyRuleType defines model for WafBodyRule.Type.

const (
	WafBodyRuleTypeAllow    WafBodyRuleType = "allow"
	WafBodyRuleTypeDeny     WafBodyRuleType = "deny"
	WafBodyRuleTypeSetVar   WafBodyRuleType = "set-var"
	WafBodyRuleTypeUnsetVar WafBodyRuleType = "unset-var"
)

Defines values for WafBodyRuleType.

func (WafBodyRuleType) Valid

func (e WafBodyRuleType) Valid() bool

Valid indicates whether the value is a known member of the WafBodyRuleType enum.

type WafBodyRules

type WafBodyRules = []WafBodyRule

WafBodyRules defines model for waf_body_rules.

type WafGlobal

type WafGlobal struct {
	// AnalyzerCache The size of the LRU cache used for SQLi/XSS analyzer lookups. Disabled by default.
	AnalyzerCache *int `json:"analyzer_cache,omitempty"`
	BodyLimit     *int `json:"body_limit,omitempty"`
	JsonLevels    *int `json:"json_levels,omitempty"`

	// LogHostHeaderLen Sets the maximum length of the Host header to be captured for use in WAF logs.
	// Defaults to 1024.
	LogHostHeaderLen *int                               `json:"log_host_header_len,omitempty"`
	Metadata         *map[string]map[string]interface{} `json:"metadata,omitempty"`
	RulesFile        *string                            `json:"rules_file,omitempty"`
	RulesPath        *string                            `json:"rules_path,omitempty"`
	WafGlobalUpdate  *struct {
		// Delay Sets the download period. Defaults to 5 minutes.
		Delay *int `json:"delay,omitempty"`

		// DontlogNormal Deactivates logging of successful updates.
		DontlogNormal *bool `json:"dontlog_normal,omitempty"`

		// Id The rules file initially loaded by the "waf-load" global keyword,
		// or by the "rules-file" filter parameter.
		Id string `json:"id"`

		// Log Enables logging using the configured "log" targets.
		Log *bool `json:"log,omitempty"`

		// Modified Enables the use of the time from the "Last-Modified" response HTTP header,
		// i.e. checking whether or not to update the data by setting the "If-Modified-Since" request HTTP header.
		Modified *bool `json:"modified,omitempty"`

		// Retries The number of retries to establish a connection to the server. If unspecified, the global "retries" value is used.
		Retries      *int          `json:"retries,omitempty"`
		ServerParams *ServerParams `json:"server_params,omitempty"`

		// WafGlobalUpdateSource Sets the source address for outgoing connections. This is normally not needed,
		// but might be useful in some very specific cases.
		WafGlobalUpdateSource *struct {
			Address string `json:"address"`
			Port    *int   `json:"port,omitempty"`
		} `json:"source,omitempty"`

		// Timeout Specifies the HTTP connect timeout for attempts to download a new file version. Default is 5 seconds.
		Timeout *int `json:"timeout,omitempty"`

		// Url The location from where the file can be downloaded.
		Url string `json:"url"`

		// Xmodified It is the same as the 'modified' parameter, with the difference that the file modification time is set immediately after reading this information from the file status (i.e. immediately after starting HAProxy).
		// This means that the first data download may also be rejected if the file to be downloaded is not more recent than the data originally loaded from the local file system.
		Xmodified *bool `json:"xmodified,omitempty"`
	} `json:"update,omitempty"`
}

WafGlobal defines model for waf_global.

type WafProfile

type WafProfile struct {
	// Analyze Set analyzer to analyze "sqli" (SQL injection), "xss" (cross-site scripting) or "all" (both, SQLi and XSS)
	Analyze *WafProfileAnalyze `json:"analyze,omitempty"`

	// AnalyzeAcl Allows to specify the patterns (fingerprints) list file for use with SQLi analyzer lookups
	AnalyzeAcl    *string                   `json:"analyze_acl,omitempty"`
	AnalyzeFlags  *[]WafProfileAnalyzeFlags `json:"analyze_flags,omitempty"`
	BodyLimit     *int                      `json:"body_limit,omitempty"`
	LearningMode  *bool                     `json:"learning_mode,omitempty"`
	WafProfileLog *struct {
		// ExtNonzero Only log the rule matches with a nonzero score value or the ones that triggered an action
		ExtNonzero *bool `json:"ext_nonzero,omitempty"`

		// ExtScore Includes the named scores associated with a matching rule
		ExtScore *bool `json:"ext_score,omitempty"`

		// HostHeader Includes the host header within the WAF log line
		HostHeader *bool `json:"host_header,omitempty"`

		// HostHeaderLen Set maximum length of the host header to be captured for use in WAF logs
		HostHeaderLen *int                       `json:"host_header_len,omitempty"`
		Level         *WafProfileLogLevel        `json:"level,omitempty"`
		LogExtensive  *WafProfileLogLogExtensive `json:"log_extensive,omitempty"`

		// Nonzero Only log the rule matches with a nonzero score value or the ones that triggered an action
		// It also automatically enables the "ext_nonzero" option
		Nonzero *bool `json:"nonzero,omitempty"`

		// Wl Enable the logging of whitelisted rules
		Wl *bool `json:"wl,omitempty"`
	} `json:"log,omitempty"`
	Metadata  *map[string]map[string]interface{} `json:"metadata,omitempty"`
	Name      string                             `json:"name"`
	RulesFile *string                            `json:"rules_file,omitempty"`
	RulesPath *string                            `json:"rules_path,omitempty"`

	// WafProfileTable Enable tracking of triggered rules using the stick-table <table> which must exist
	WafProfileTable *struct {
		// Categorized Categorizes rules based on named scores and their actions
		Categorized *bool `json:"categorized,omitempty"`

		// Nonzero If set only tracks the rules with a nonzero score value or the ones that triggered an action
		Nonzero *bool  `json:"nonzero,omitempty"`
		Table   string `json:"table"`
	} `json:"table,omitempty"`
	Timeout *int `json:"timeout,omitempty"`
}

WafProfile defines model for waf_profile.

type WafProfileAnalyze

type WafProfileAnalyze string

WafProfileAnalyze Set analyzer to analyze "sqli" (SQL injection), "xss" (cross-site scripting) or "all" (both, SQLi and XSS)

const (
	WafProfileAnalyzeAll  WafProfileAnalyze = "all"
	WafProfileAnalyzeSqli WafProfileAnalyze = "sqli"
	WafProfileAnalyzeXss  WafProfileAnalyze = "xss"
)

Defines values for WafProfileAnalyze.

func (WafProfileAnalyze) Valid

func (e WafProfileAnalyze) Valid() bool

Valid indicates whether the value is a known member of the WafProfileAnalyze enum.

type WafProfileAnalyzeFlags

type WafProfileAnalyzeFlags string

WafProfileAnalyzeFlags defines model for WafProfile.AnalyzeFlags.

const (
	WafProfileAnalyzeFlagsSQLIQUOTEDOUBLE WafProfileAnalyzeFlags = "SQLI_QUOTE_DOUBLE"
	WafProfileAnalyzeFlagsSQLIQUOTENONE   WafProfileAnalyzeFlags = "SQLI_QUOTE_NONE"
	WafProfileAnalyzeFlagsSQLIQUOTESINGLE WafProfileAnalyzeFlags = "SQLI_QUOTE_SINGLE"
	WafProfileAnalyzeFlagsSQLISQLANSI     WafProfileAnalyzeFlags = "SQLI_SQL_ANSI"
	WafProfileAnalyzeFlagsSQLISQLMYSQL    WafProfileAnalyzeFlags = "SQLI_SQL_MYSQL"
	WafProfileAnalyzeFlagsXSSBACKQUOTE    WafProfileAnalyzeFlags = "XSS_BACK_QUOTE"
	WafProfileAnalyzeFlagsXSSQUOTEDOUBLE  WafProfileAnalyzeFlags = "XSS_QUOTE_DOUBLE"
	WafProfileAnalyzeFlagsXSSQUOTENONE    WafProfileAnalyzeFlags = "XSS_QUOTE_NONE"
	WafProfileAnalyzeFlagsXSSQUOTESINGLE  WafProfileAnalyzeFlags = "XSS_QUOTE_SINGLE"
)

Defines values for WafProfileAnalyzeFlags.

func (WafProfileAnalyzeFlags) Valid

func (e WafProfileAnalyzeFlags) Valid() bool

Valid indicates whether the value is a known member of the WafProfileAnalyzeFlags enum.

type WafProfileLogLevel

type WafProfileLogLevel string

WafProfileLogLevel defines model for WafProfile.Log.Level.

const (
	WafProfileLogLevelAlert   WafProfileLogLevel = "alert"
	WafProfileLogLevelCrit    WafProfileLogLevel = "crit"
	WafProfileLogLevelDebug   WafProfileLogLevel = "debug"
	WafProfileLogLevelEmerg   WafProfileLogLevel = "emerg"
	WafProfileLogLevelErr     WafProfileLogLevel = "err"
	WafProfileLogLevelInfo    WafProfileLogLevel = "info"
	WafProfileLogLevelNotice  WafProfileLogLevel = "notice"
	WafProfileLogLevelSilent  WafProfileLogLevel = "silent"
	WafProfileLogLevelWarning WafProfileLogLevel = "warning"
)

Defines values for WafProfileLogLevel.

func (WafProfileLogLevel) Valid

func (e WafProfileLogLevel) Valid() bool

Valid indicates whether the value is a known member of the WafProfileLogLevel enum.

type WafProfileLogLogExtensive

type WafProfileLogLogExtensive string

WafProfileLogLogExtensive defines model for WafProfile.Log.LogExtensive.

const (
	WafProfileLogLogExtensiveExtensive    WafProfileLogLogExtensive = "extensive"
	WafProfileLogLogExtensiveExtensiveMsg WafProfileLogLogExtensive = "extensive+msg"
)

Defines values for WafProfileLogLogExtensive.

func (WafProfileLogLogExtensive) Valid

func (e WafProfileLogLogExtensive) Valid() bool

Valid indicates whether the value is a known member of the WafProfileLogLogExtensive enum.

Jump to

Keyboard shortcuts

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