executors

package
v0.1.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package executors provides pre-built executor functions for HAProxy configuration operations.

Package executors provides pre-built executor functions for HAProxy configuration operations.

Package executors provides pre-built executor functions for HAProxy configuration operations.

This file contains executors for HAProxy Enterprise Edition (EE) only features: - Bot Management Profiles (v3.0+ EE) - Captcha (v3.0+ EE) - WAF Profile (v3.2+ EE only) - WAF Global (v3.2+ EE only)

Package executors provides pre-built executor functions for HAProxy configuration operations.

Package executors provides pre-built executor functions for HAProxy configuration operations.

Package executors provides pre-built executor functions for HAProxy configuration operations.

Package executors provides pre-built executor functions for HAProxy configuration operations.

Package executors provides pre-built executor functions for HAProxy configuration operations.

Package executors provides pre-built executor functions for HAProxy configuration operations.

These functions encapsulate the dispatcher callback boilerplate, providing a clean interface between the generic operation types and the versioned DataPlane API clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ACLBackendCreate

func ACLBackendCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.ACL) error

ACLBackendCreate returns an executor for creating ACLs in backends.

func ACLBackendDelete

func ACLBackendDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, _ *models.ACL) error

ACLBackendDelete returns an executor for deleting ACLs from backends.

func ACLBackendUpdate

func ACLBackendUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.ACL) error

ACLBackendUpdate returns an executor for updating ACLs in backends.

func ACLFrontendCreate

func ACLFrontendCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.ACL) error

ACLFrontendCreate returns an executor for creating ACLs in frontends.

func ACLFrontendDelete

func ACLFrontendDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, _ *models.ACL) error

ACLFrontendDelete returns an executor for deleting ACLs from frontends.

func ACLFrontendUpdate

func ACLFrontendUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.ACL) error

ACLFrontendUpdate returns an executor for updating ACLs in frontends.

func AcmeProviderCreate

func AcmeProviderCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.AcmeProvider, name string) error

AcmeProviderCreate returns an executor for creating acme sections. ACME providers are only available in HAProxy DataPlane API v3.2+.

func AcmeProviderDelete

func AcmeProviderDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, _ *models.AcmeProvider, name string) error

AcmeProviderDelete returns an executor for deleting acme sections. ACME providers are only available in HAProxy DataPlane API v3.2+.

func AcmeProviderUpdate

func AcmeProviderUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.AcmeProvider, name string) error

AcmeProviderUpdate returns an executor for updating acme sections. ACME providers are only available in HAProxy DataPlane API v3.2+.

func BackendCreate

func BackendCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.Backend, name string) error

BackendCreate returns an executor for creating backends.

func BackendDelete

func BackendDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, _ *models.Backend, name string) error

BackendDelete returns an executor for deleting backends.

func BackendSwitchingRuleCreate

func BackendSwitchingRuleCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.BackendSwitchingRule) error

BackendSwitchingRuleCreate returns an executor for creating backend switching rules.

func BackendSwitchingRuleDelete

func BackendSwitchingRuleDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, _ *models.BackendSwitchingRule) error

BackendSwitchingRuleDelete returns an executor for deleting backend switching rules.

func BackendSwitchingRuleUpdate

func BackendSwitchingRuleUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.BackendSwitchingRule) error

BackendSwitchingRuleUpdate returns an executor for updating backend switching rules.

func BackendUpdate

func BackendUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.Backend, name string) error

BackendUpdate returns an executor for updating backends.

func BindFrontendCreate

func BindFrontendCreate(frontendName string) func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, childName string, model *models.Bind) error

BindFrontendCreate returns an executor for creating binds in frontends. Note: Bind uses DispatchCreate (not DispatchCreateChild) because the API takes frontendName as a path parameter, not as part of an index-based child.

func BindFrontendDelete

func BindFrontendDelete(frontendName string) func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, childName string, model *models.Bind) error

BindFrontendDelete returns an executor for deleting binds from frontends.

func BindFrontendUpdate

func BindFrontendUpdate(frontendName string) func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, childName string, model *models.Bind) error

BindFrontendUpdate returns an executor for updating binds in frontends.

func BotMgmtProfileCreate

func BotMgmtProfileCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *v32ee.BotmgmtProfile, name string) error

BotMgmtProfileCreate returns an executor for creating bot management profiles. Bot management profiles are only available in HAProxy Enterprise Edition.

func BotMgmtProfileDelete

func BotMgmtProfileDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, _ *v32ee.BotmgmtProfile, name string) error

BotMgmtProfileDelete returns an executor for deleting bot management profiles.

func BotMgmtProfileUpdate

func BotMgmtProfileUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *v32ee.BotmgmtProfile, name string) error

BotMgmtProfileUpdate returns an executor for updating bot management profiles.

func CacheCreate

func CacheCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.Cache, name string) error

CacheCreate returns an executor for creating cache sections.

func CacheDelete

func CacheDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, _ *models.Cache, name string) error

CacheDelete returns an executor for deleting cache sections.

func CacheUpdate

func CacheUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.Cache, name string) error

CacheUpdate returns an executor for updating cache sections.

func CaptchaCreate

func CaptchaCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *v32ee.Captcha, name string) error

CaptchaCreate returns an executor for creating captcha sections. Captcha is only available in HAProxy Enterprise Edition.

func CaptchaDelete

func CaptchaDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, _ *v32ee.Captcha, name string) error

CaptchaDelete returns an executor for deleting captcha sections.

func CaptchaUpdate

func CaptchaUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *v32ee.Captcha, name string) error

CaptchaUpdate returns an executor for updating captcha sections.

func CrtStoreCreate

func CrtStoreCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.CrtStore, name string) error

CrtStoreCreate returns an executor for creating crt-store sections.

func CrtStoreDelete

func CrtStoreDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, _ *models.CrtStore, name string) error

CrtStoreDelete returns an executor for deleting crt-store sections.

func CrtStoreUpdate

func CrtStoreUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.CrtStore, name string) error

CrtStoreUpdate returns an executor for updating crt-store sections.

func DeclareCaptureFrontendCreate

func DeclareCaptureFrontendCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.Capture) error

DeclareCaptureFrontendCreate returns an executor for creating declare captures in frontends.

func DeclareCaptureFrontendDelete

func DeclareCaptureFrontendDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, _ *models.Capture) error

DeclareCaptureFrontendDelete returns an executor for deleting declare captures from frontends.

func DeclareCaptureFrontendUpdate

func DeclareCaptureFrontendUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.Capture) error

DeclareCaptureFrontendUpdate returns an executor for updating declare captures in frontends.

func DefaultsCreate

func DefaultsCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.Defaults, name string) error

DefaultsCreate returns an executor for creating defaults sections.

func DefaultsDelete

func DefaultsDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, _ *models.Defaults, name string) error

DefaultsDelete returns an executor for deleting defaults sections.

func DefaultsUpdate

func DefaultsUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.Defaults, name string) error

DefaultsUpdate returns an executor for updating defaults sections.

func DispatchCreate31Plus

func DispatchCreate31Plus[TUnified any, TV32 any, TV31 any, TV32EE any, TV31EE any](
	ctx context.Context,
	c *client.DataplaneClient,
	unifiedModel TUnified,
	v32Call func(TV32) (*http.Response, error),
	v31Call func(TV31) (*http.Response, error),
	v32eeCall func(TV32EE) (*http.Response, error),
	v31eeCall func(TV31EE) (*http.Response, error),
) (*http.Response, error)

DispatchCreate31Plus is a generic helper for create operations on v3.1+ only features.

func DispatchCreate32Plus

func DispatchCreate32Plus[TUnified any, TV32 any, TV32EE any](
	ctx context.Context,
	c *client.DataplaneClient,
	unifiedModel TUnified,
	v32Call func(TV32) (*http.Response, error),
	v32eeCall func(TV32EE) (*http.Response, error),
) (*http.Response, error)

DispatchCreate32Plus is a generic helper for create operations on v3.2+ only features.

func DispatchCreateChild31Plus

func DispatchCreateChild31Plus[TUnified any, TV32 any, TV31 any, TV32EE any, TV31EE any](
	ctx context.Context,
	c *client.DataplaneClient,
	parent string,
	index int,
	unifiedModel TUnified,
	v32Call func(string, int, TV32) (*http.Response, error),
	v31Call func(string, int, TV31) (*http.Response, error),
	v32eeCall func(string, int, TV32EE) (*http.Response, error),
	v31eeCall func(string, int, TV31EE) (*http.Response, error),
) (*http.Response, error)

DispatchCreateChild31Plus is a generic helper for create operations on v3.1+ only indexed child features.

func DispatchDelete31Plus

func DispatchDelete31Plus(
	ctx context.Context,
	c *client.DataplaneClient,
	name string,
	v32Call func(string) (*http.Response, error),
	v31Call func(string) (*http.Response, error),
	v32eeCall func(string) (*http.Response, error),
	v31eeCall func(string) (*http.Response, error),
) (*http.Response, error)

DispatchDelete31Plus is a generic helper for delete operations on v3.1+ only features.

func DispatchDelete32Plus

func DispatchDelete32Plus(
	ctx context.Context,
	c *client.DataplaneClient,
	name string,
	v32Call func(string) (*http.Response, error),
	v32eeCall func(string) (*http.Response, error),
) (*http.Response, error)

DispatchDelete32Plus is a generic helper for delete operations on v3.2+ only features.

func DispatchDeleteChild31Plus

func DispatchDeleteChild31Plus(
	ctx context.Context,
	c *client.DataplaneClient,
	parent string,
	index int,
	v32Call func(string, int) (*http.Response, error),
	v31Call func(string, int) (*http.Response, error),
	v32eeCall func(string, int) (*http.Response, error),
	v31eeCall func(string, int) (*http.Response, error),
) (*http.Response, error)

DispatchDeleteChild31Plus is a generic helper for delete operations on v3.1+ only indexed child features.

func DispatchReplaceChild31Plus

func DispatchReplaceChild31Plus[TUnified any, TV32 any, TV31 any, TV32EE any, TV31EE any](
	ctx context.Context,
	c *client.DataplaneClient,
	parent string,
	index int,
	unifiedModel TUnified,
	v32Call func(string, int, TV32) (*http.Response, error),
	v31Call func(string, int, TV31) (*http.Response, error),
	v32eeCall func(string, int, TV32EE) (*http.Response, error),
	v31eeCall func(string, int, TV31EE) (*http.Response, error),
) (*http.Response, error)

DispatchReplaceChild31Plus is a generic helper for replace operations on v3.1+ only indexed child features.

func DispatchUpdate31Plus

func DispatchUpdate31Plus[TUnified any, TV32 any, TV31 any, TV32EE any, TV31EE any](
	ctx context.Context,
	c *client.DataplaneClient,
	name string,
	unifiedModel TUnified,
	v32Call func(string, TV32) (*http.Response, error),
	v31Call func(string, TV31) (*http.Response, error),
	v32eeCall func(string, TV32EE) (*http.Response, error),
	v31eeCall func(string, TV31EE) (*http.Response, error),
) (*http.Response, error)

DispatchUpdate31Plus is a generic helper for update operations on v3.1+ only features.

func DispatchUpdate32Plus

func DispatchUpdate32Plus[TUnified any, TV32 any, TV32EE any](
	ctx context.Context,
	c *client.DataplaneClient,
	name string,
	unifiedModel TUnified,
	v32Call func(string, TV32) (*http.Response, error),
	v32eeCall func(string, TV32EE) (*http.Response, error),
) (*http.Response, error)

DispatchUpdate32Plus is a generic helper for update operations on v3.2+ only features.

func FCGIAppCreate

func FCGIAppCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.FCGIApp, name string) error

FCGIAppCreate returns an executor for creating fcgi-app sections.

func FCGIAppDelete

func FCGIAppDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, _ *models.FCGIApp, name string) error

FCGIAppDelete returns an executor for deleting fcgi-app sections.

func FCGIAppUpdate

func FCGIAppUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.FCGIApp, name string) error

FCGIAppUpdate returns an executor for updating fcgi-app sections.

func FilterBackendCreate

func FilterBackendCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.Filter) error

FilterBackendCreate returns an executor for creating filters in backends.

func FilterBackendDelete

func FilterBackendDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, _ *models.Filter) error

FilterBackendDelete returns an executor for deleting filters from backends.

func FilterBackendUpdate

func FilterBackendUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.Filter) error

FilterBackendUpdate returns an executor for updating filters in backends.

func FilterFrontendCreate

func FilterFrontendCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.Filter) error

FilterFrontendCreate returns an executor for creating filters in frontends.

func FilterFrontendDelete

func FilterFrontendDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, _ *models.Filter) error

FilterFrontendDelete returns an executor for deleting filters from frontends.

func FilterFrontendUpdate

func FilterFrontendUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.Filter) error

FilterFrontendUpdate returns an executor for updating filters in frontends.

func FrontendCreate

func FrontendCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.Frontend, name string) error

FrontendCreate returns an executor for creating frontends.

func FrontendDelete

func FrontendDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, _ *models.Frontend, name string) error

FrontendDelete returns an executor for deleting frontends.

func FrontendUpdate

func FrontendUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.Frontend, name string) error

FrontendUpdate returns an executor for updating frontends.

func GlobalUpdate

func GlobalUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.Global) error

GlobalUpdate returns an executor for updating the global section. The global section is a singleton - it always exists and can only be updated.

func HTTPAfterResponseRuleBackendCreate

func HTTPAfterResponseRuleBackendCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.HTTPAfterResponseRule) error

HTTPAfterResponseRuleBackendCreate returns an executor for creating HTTP after response rules in backends.

func HTTPAfterResponseRuleBackendDelete

func HTTPAfterResponseRuleBackendDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, _ *models.HTTPAfterResponseRule) error

HTTPAfterResponseRuleBackendDelete returns an executor for deleting HTTP after response rules from backends.

func HTTPAfterResponseRuleBackendUpdate

func HTTPAfterResponseRuleBackendUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.HTTPAfterResponseRule) error

HTTPAfterResponseRuleBackendUpdate returns an executor for updating HTTP after response rules in backends.

func HTTPCheckBackendCreate

func HTTPCheckBackendCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.HTTPCheck) error

HTTPCheckBackendCreate returns an executor for creating HTTP checks in backends.

func HTTPCheckBackendDelete

func HTTPCheckBackendDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, _ *models.HTTPCheck) error

HTTPCheckBackendDelete returns an executor for deleting HTTP checks from backends.

func HTTPCheckBackendUpdate

func HTTPCheckBackendUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.HTTPCheck) error

HTTPCheckBackendUpdate returns an executor for updating HTTP checks in backends.

func HTTPErrorsSectionCreate

func HTTPErrorsSectionCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.HTTPErrorsSection, name string) error

HTTPErrorsSectionCreate returns an executor for creating http-errors sections.

func HTTPErrorsSectionDelete

func HTTPErrorsSectionDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, _ *models.HTTPErrorsSection, name string) error

HTTPErrorsSectionDelete returns an executor for deleting http-errors sections.

func HTTPErrorsSectionUpdate

func HTTPErrorsSectionUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.HTTPErrorsSection, name string) error

HTTPErrorsSectionUpdate returns an executor for updating http-errors sections.

func HTTPRequestRuleBackendCreate

func HTTPRequestRuleBackendCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.HTTPRequestRule) error

HTTPRequestRuleBackendCreate returns an executor for creating HTTP request rules in backends.

func HTTPRequestRuleBackendDelete

func HTTPRequestRuleBackendDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, _ *models.HTTPRequestRule) error

HTTPRequestRuleBackendDelete returns an executor for deleting HTTP request rules from backends.

func HTTPRequestRuleBackendUpdate

func HTTPRequestRuleBackendUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.HTTPRequestRule) error

HTTPRequestRuleBackendUpdate returns an executor for updating HTTP request rules in backends.

func HTTPRequestRuleFrontendCreate

func HTTPRequestRuleFrontendCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.HTTPRequestRule) error

HTTPRequestRuleFrontendCreate returns an executor for creating HTTP request rules in frontends.

func HTTPRequestRuleFrontendDelete

func HTTPRequestRuleFrontendDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, _ *models.HTTPRequestRule) error

HTTPRequestRuleFrontendDelete returns an executor for deleting HTTP request rules from frontends.

func HTTPRequestRuleFrontendUpdate

func HTTPRequestRuleFrontendUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.HTTPRequestRule) error

HTTPRequestRuleFrontendUpdate returns an executor for updating HTTP request rules in frontends.

func HTTPResponseRuleBackendCreate

func HTTPResponseRuleBackendCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.HTTPResponseRule) error

HTTPResponseRuleBackendCreate returns an executor for creating HTTP response rules in backends.

func HTTPResponseRuleBackendDelete

func HTTPResponseRuleBackendDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, _ *models.HTTPResponseRule) error

HTTPResponseRuleBackendDelete returns an executor for deleting HTTP response rules from backends.

func HTTPResponseRuleBackendUpdate

func HTTPResponseRuleBackendUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.HTTPResponseRule) error

HTTPResponseRuleBackendUpdate returns an executor for updating HTTP response rules in backends.

func HTTPResponseRuleFrontendCreate

func HTTPResponseRuleFrontendCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.HTTPResponseRule) error

HTTPResponseRuleFrontendCreate returns an executor for creating HTTP response rules in frontends.

func HTTPResponseRuleFrontendDelete

func HTTPResponseRuleFrontendDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, _ *models.HTTPResponseRule) error

HTTPResponseRuleFrontendDelete returns an executor for deleting HTTP response rules from frontends.

func HTTPResponseRuleFrontendUpdate

func HTTPResponseRuleFrontendUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.HTTPResponseRule) error

HTTPResponseRuleFrontendUpdate returns an executor for updating HTTP response rules in frontends.

func LogForwardCreate

func LogForwardCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.LogForward, name string) error

LogForwardCreate returns an executor for creating log-forward sections.

func LogForwardDelete

func LogForwardDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, _ *models.LogForward, name string) error

LogForwardDelete returns an executor for deleting log-forward sections.

func LogForwardUpdate

func LogForwardUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.LogForward, name string) error

LogForwardUpdate returns an executor for updating log-forward sections.

func LogProfileCreate

func LogProfileCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.LogProfile, name string) error

LogProfileCreate returns an executor for creating log-profile sections. Log profiles are only available in HAProxy DataPlane API v3.1+.

func LogProfileDelete

func LogProfileDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, _ *models.LogProfile, name string) error

LogProfileDelete returns an executor for deleting log-profile sections. Log profiles are only available in HAProxy DataPlane API v3.1+.

func LogProfileUpdate

func LogProfileUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.LogProfile, name string) error

LogProfileUpdate returns an executor for updating log-profile sections. Log profiles are only available in HAProxy DataPlane API v3.1+.

func LogTargetBackendCreate

func LogTargetBackendCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.LogTarget) error

LogTargetBackendCreate returns an executor for creating log targets in backends.

func LogTargetBackendDelete

func LogTargetBackendDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, _ *models.LogTarget) error

LogTargetBackendDelete returns an executor for deleting log targets from backends.

func LogTargetBackendUpdate

func LogTargetBackendUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.LogTarget) error

LogTargetBackendUpdate returns an executor for updating log targets in backends.

func LogTargetFrontendCreate

func LogTargetFrontendCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.LogTarget) error

LogTargetFrontendCreate returns an executor for creating log targets in frontends.

func LogTargetFrontendDelete

func LogTargetFrontendDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, _ *models.LogTarget) error

LogTargetFrontendDelete returns an executor for deleting log targets from frontends.

func LogTargetFrontendUpdate

func LogTargetFrontendUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.LogTarget) error

LogTargetFrontendUpdate returns an executor for updating log targets in frontends.

func MailerEntryCreate

func MailerEntryCreate(mailersName string) func(ctx context.Context, c *client.DataplaneClient, txID string, containerName string, childName string, model *models.MailerEntry) error

MailerEntryCreate returns an executor for creating mailer entries in mailers sections.

func MailerEntryDelete

func MailerEntryDelete(mailersName string) func(ctx context.Context, c *client.DataplaneClient, txID string, containerName string, childName string, model *models.MailerEntry) error

MailerEntryDelete returns an executor for deleting mailer entries from mailers sections.

func MailerEntryUpdate

func MailerEntryUpdate(mailersName string) func(ctx context.Context, c *client.DataplaneClient, txID string, containerName string, childName string, model *models.MailerEntry) error

MailerEntryUpdate returns an executor for updating mailer entries in mailers sections.

func MailersSectionCreate

func MailersSectionCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.MailersSection, name string) error

MailersSectionCreate returns an executor for creating mailers sections.

func MailersSectionDelete

func MailersSectionDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, _ *models.MailersSection, name string) error

MailersSectionDelete returns an executor for deleting mailers sections.

func MailersSectionUpdate

func MailersSectionUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.MailersSection, name string) error

MailersSectionUpdate returns an executor for updating mailers sections.

func NameserverCreate

func NameserverCreate(resolverName string) func(ctx context.Context, c *client.DataplaneClient, txID string, containerName string, childName string, model *models.Nameserver) error

NameserverCreate returns an executor for creating nameservers in resolver sections.

func NameserverDelete

func NameserverDelete(resolverName string) func(ctx context.Context, c *client.DataplaneClient, txID string, containerName string, childName string, model *models.Nameserver) error

NameserverDelete returns an executor for deleting nameservers from resolver sections.

func NameserverUpdate

func NameserverUpdate(resolverName string) func(ctx context.Context, c *client.DataplaneClient, txID string, containerName string, childName string, model *models.Nameserver) error

NameserverUpdate returns an executor for updating nameservers in resolver sections.

func PeerEntryCreate

func PeerEntryCreate(peerSectionName string) func(ctx context.Context, c *client.DataplaneClient, txID string, containerName string, childName string, model *models.PeerEntry) error

PeerEntryCreate returns an executor for creating peer entries in peers sections.

func PeerEntryDelete

func PeerEntryDelete(peerSectionName string) func(ctx context.Context, c *client.DataplaneClient, txID string, containerName string, childName string, model *models.PeerEntry) error

PeerEntryDelete returns an executor for deleting peer entries from peers sections.

func PeerEntryUpdate

func PeerEntryUpdate(peerSectionName string) func(ctx context.Context, c *client.DataplaneClient, txID string, containerName string, childName string, model *models.PeerEntry) error

PeerEntryUpdate returns an executor for updating peer entries in peers sections.

func PeerSectionCreate

func PeerSectionCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.PeerSection, name string) error

PeerSectionCreate returns an executor for creating peer sections.

func PeerSectionDelete

func PeerSectionDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, _ *models.PeerSection, name string) error

PeerSectionDelete returns an executor for deleting peer sections.

func PeerSectionUpdate

func PeerSectionUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.PeerSection, name string) error

PeerSectionUpdate returns an executor for updating peer sections. Note: The HAProxy Dataplane API does not support updating peer sections directly.

func ProgramCreate

func ProgramCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.Program, name string) error

ProgramCreate returns an executor for creating program sections.

func ProgramDelete

func ProgramDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, _ *models.Program, name string) error

ProgramDelete returns an executor for deleting program sections.

func ProgramUpdate

func ProgramUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.Program, name string) error

ProgramUpdate returns an executor for updating program sections.

func QUICInitialRuleDefaultsCreate

func QUICInitialRuleDefaultsCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.QUICInitialRule) error

QUICInitialRuleDefaultsCreate returns an executor for creating QUIC initial rules in defaults. QUIC initial rules are only available in HAProxy DataPlane API v3.1+.

func QUICInitialRuleDefaultsDelete

func QUICInitialRuleDefaultsDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, _ *models.QUICInitialRule) error

QUICInitialRuleDefaultsDelete returns an executor for deleting QUIC initial rules from defaults. QUIC initial rules are only available in HAProxy DataPlane API v3.1+.

func QUICInitialRuleDefaultsUpdate

func QUICInitialRuleDefaultsUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.QUICInitialRule) error

QUICInitialRuleDefaultsUpdate returns an executor for updating QUIC initial rules in defaults. QUIC initial rules are only available in HAProxy DataPlane API v3.1+.

func QUICInitialRuleFrontendCreate

func QUICInitialRuleFrontendCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.QUICInitialRule) error

QUICInitialRuleFrontendCreate returns an executor for creating QUIC initial rules in frontends. QUIC initial rules are only available in HAProxy DataPlane API v3.1+.

func QUICInitialRuleFrontendDelete

func QUICInitialRuleFrontendDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, _ *models.QUICInitialRule) error

QUICInitialRuleFrontendDelete returns an executor for deleting QUIC initial rules from frontends. QUIC initial rules are only available in HAProxy DataPlane API v3.1+.

func QUICInitialRuleFrontendUpdate

func QUICInitialRuleFrontendUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.QUICInitialRule) error

QUICInitialRuleFrontendUpdate returns an executor for updating QUIC initial rules in frontends. QUIC initial rules are only available in HAProxy DataPlane API v3.1+.

func ResolverCreate

func ResolverCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.Resolver, name string) error

ResolverCreate returns an executor for creating resolver sections.

func ResolverDelete

func ResolverDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, _ *models.Resolver, name string) error

ResolverDelete returns an executor for deleting resolver sections.

func ResolverUpdate

func ResolverUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.Resolver, name string) error

ResolverUpdate returns an executor for updating resolver sections.

func RingCreate

func RingCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.Ring, name string) error

RingCreate returns an executor for creating ring sections.

func RingDelete

func RingDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, _ *models.Ring, name string) error

RingDelete returns an executor for deleting ring sections.

func RingUpdate

func RingUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.Ring, name string) error

RingUpdate returns an executor for updating ring sections.

func ServerCreate

func ServerCreate(backendName string) func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, childName string, model *models.Server) error

ServerCreate returns an executor for creating servers in backends.

func ServerDelete

func ServerDelete(backendName string) func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, childName string, model *models.Server) error

ServerDelete returns an executor for deleting servers from backends.

func ServerSwitchingRuleBackendCreate

func ServerSwitchingRuleBackendCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.ServerSwitchingRule) error

ServerSwitchingRuleBackendCreate returns an executor for creating server switching rules in backends.

func ServerSwitchingRuleBackendDelete

func ServerSwitchingRuleBackendDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, _ *models.ServerSwitchingRule) error

ServerSwitchingRuleBackendDelete returns an executor for deleting server switching rules from backends.

func ServerSwitchingRuleBackendUpdate

func ServerSwitchingRuleBackendUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.ServerSwitchingRule) error

ServerSwitchingRuleBackendUpdate returns an executor for updating server switching rules in backends.

func ServerTemplateCreate

func ServerTemplateCreate(backendName string) func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, childName string, model *models.ServerTemplate) error

ServerTemplateCreate returns an executor for creating server templates in backends.

func ServerTemplateDelete

func ServerTemplateDelete(backendName string) func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, childName string, model *models.ServerTemplate) error

ServerTemplateDelete returns an executor for deleting server templates from backends.

func ServerTemplateUpdate

func ServerTemplateUpdate(backendName string) func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, childName string, model *models.ServerTemplate) error

ServerTemplateUpdate returns an executor for updating server templates in backends.

func ServerUpdate

func ServerUpdate(backendName string) func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, childName string, model *models.Server) error

ServerUpdate returns an executor for updating servers in backends. When txID is empty, it uses version-based update (DataPlane API decides if reload is needed). When txID is non-empty, it uses the Configuration API with transaction.

func StickRuleBackendCreate

func StickRuleBackendCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.StickRule) error

StickRuleBackendCreate returns an executor for creating stick rules in backends.

func StickRuleBackendDelete

func StickRuleBackendDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, _ *models.StickRule) error

StickRuleBackendDelete returns an executor for deleting stick rules from backends.

func StickRuleBackendUpdate

func StickRuleBackendUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.StickRule) error

StickRuleBackendUpdate returns an executor for updating stick rules in backends.

func TCPCheckBackendCreate

func TCPCheckBackendCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.TCPCheck) error

TCPCheckBackendCreate returns an executor for creating TCP checks in backends.

func TCPCheckBackendDelete

func TCPCheckBackendDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, _ *models.TCPCheck) error

TCPCheckBackendDelete returns an executor for deleting TCP checks from backends.

func TCPCheckBackendUpdate

func TCPCheckBackendUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.TCPCheck) error

TCPCheckBackendUpdate returns an executor for updating TCP checks in backends.

func TCPRequestRuleBackendCreate

func TCPRequestRuleBackendCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.TCPRequestRule) error

TCPRequestRuleBackendCreate returns an executor for creating TCP request rules in backends.

func TCPRequestRuleBackendDelete

func TCPRequestRuleBackendDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, _ *models.TCPRequestRule) error

TCPRequestRuleBackendDelete returns an executor for deleting TCP request rules from backends.

func TCPRequestRuleBackendUpdate

func TCPRequestRuleBackendUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.TCPRequestRule) error

TCPRequestRuleBackendUpdate returns an executor for updating TCP request rules in backends.

func TCPRequestRuleFrontendCreate

func TCPRequestRuleFrontendCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.TCPRequestRule) error

TCPRequestRuleFrontendCreate returns an executor for creating TCP request rules in frontends.

func TCPRequestRuleFrontendDelete

func TCPRequestRuleFrontendDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, _ *models.TCPRequestRule) error

TCPRequestRuleFrontendDelete returns an executor for deleting TCP request rules from frontends.

func TCPRequestRuleFrontendUpdate

func TCPRequestRuleFrontendUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.TCPRequestRule) error

TCPRequestRuleFrontendUpdate returns an executor for updating TCP request rules in frontends.

func TCPResponseRuleBackendCreate

func TCPResponseRuleBackendCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.TCPResponseRule) error

TCPResponseRuleBackendCreate returns an executor for creating TCP response rules in backends.

func TCPResponseRuleBackendDelete

func TCPResponseRuleBackendDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, _ *models.TCPResponseRule) error

TCPResponseRuleBackendDelete returns an executor for deleting TCP response rules from backends.

func TCPResponseRuleBackendUpdate

func TCPResponseRuleBackendUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, parent string, index int, model *models.TCPResponseRule) error

TCPResponseRuleBackendUpdate returns an executor for updating TCP response rules in backends.

func TracesUpdate

func TracesUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.Traces) error

TracesUpdate returns an executor for updating the traces section. The traces section is a singleton - it can be created or replaced. Traces configuration is only available in HAProxy DataPlane API v3.1+.

func UserCreate

func UserCreate(userlistName string) func(ctx context.Context, c *client.DataplaneClient, txID string, containerName string, childName string, model *models.User) error

UserCreate returns an executor for creating users in userlists.

func UserDelete

func UserDelete(userlistName string) func(ctx context.Context, c *client.DataplaneClient, txID string, containerName string, childName string, model *models.User) error

UserDelete returns an executor for deleting users from userlists.

func UserUpdate

func UserUpdate(userlistName string) func(ctx context.Context, c *client.DataplaneClient, txID string, containerName string, childName string, model *models.User) error

UserUpdate returns an executor for updating users in userlists.

func UserlistCreate

func UserlistCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *models.Userlist, name string) error

UserlistCreate returns an executor for creating userlist sections.

func UserlistDelete

func UserlistDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, _ *models.Userlist, name string) error

UserlistDelete returns an executor for deleting userlist sections.

func WAFGlobalCreate

func WAFGlobalCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *v32ee.WafGlobal) error

WAFGlobalCreate returns an executor for creating the WAF global configuration. WAF global is a singleton section. If it doesn't exist, it can be created.

func WAFGlobalDelete

func WAFGlobalDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, model *v32ee.WafGlobal) error

WAFGlobalDelete returns an executor for deleting the WAF global configuration.

func WAFGlobalUpdate

func WAFGlobalUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *v32ee.WafGlobal) error

WAFGlobalUpdate returns an executor for updating the WAF global configuration. WAF global is a singleton section - it can only be updated, not created/deleted.

func WAFProfileCreate

func WAFProfileCreate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *v32ee.WafProfile, name string) error

WAFProfileCreate returns an executor for creating WAF profiles. WAF profiles are only available in HAProxy Enterprise Edition v3.2+.

func WAFProfileDelete

func WAFProfileDelete() func(ctx context.Context, c *client.DataplaneClient, txID string, _ *v32ee.WafProfile, name string) error

WAFProfileDelete returns an executor for deleting WAF profiles.

func WAFProfileUpdate

func WAFProfileUpdate() func(ctx context.Context, c *client.DataplaneClient, txID string, model *v32ee.WafProfile, name string) error

WAFProfileUpdate returns an executor for updating WAF profiles.

Types

This section is empty.

Jump to

Keyboard shortcuts

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