Documentation ¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- type ACLApiService
- func (a *ACLApiService) CreateAcl(ctx _context.Context, parentName string, parentType string, acl Acl, ...) (Acl, *_nethttp.Response, error)
- func (a *ACLApiService) DeleteAcl(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *ACLApiService) GetAcl(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20031, *_nethttp.Response, error)
- func (a *ACLApiService) GetAcls(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20030, *_nethttp.Response, error)
- func (a *ACLApiService) ReplaceAcl(ctx _context.Context, id int32, parentName string, parentType string, acl Acl, ...) (Acl, *_nethttp.Response, error)
- type APIClient
- type APIKey
- type APIResponse
- type Acl
- type Backend
- type BackendApiService
- func (a *BackendApiService) CreateBackend(ctx _context.Context, backend Backend, localVarOptionals *CreateBackendOpts) (Backend, *_nethttp.Response, error)
- func (a *BackendApiService) DeleteBackend(ctx _context.Context, name string, localVarOptionals *DeleteBackendOpts) (*_nethttp.Response, error)
- func (a *BackendApiService) GetBackend(ctx _context.Context, name string, localVarOptionals *GetBackendOpts) (InlineResponse2007, *_nethttp.Response, error)
- func (a *BackendApiService) GetBackends(ctx _context.Context, localVarOptionals *GetBackendsOpts) (InlineResponse2006, *_nethttp.Response, error)
- func (a *BackendApiService) ReplaceBackend(ctx _context.Context, name string, backend Backend, ...) (Backend, *_nethttp.Response, error)
- type BackendHashType
- type BackendOptionsApiService
- func (a *BackendOptionsApiService) CreateAcl(ctx _context.Context, parentName string, parentType string, acl Acl, ...) (Acl, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) CreateFilter(ctx _context.Context, parentName string, parentType string, filter Filter, ...) (Filter, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) CreateHTTPRequestRule(ctx _context.Context, parentName string, parentType string, ...) (HttpRequestRule, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) CreateHTTPResponseRule(ctx _context.Context, parentName string, parentType string, ...) (HttpResponseRule, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) CreateLogTarget(ctx _context.Context, parentName string, parentType string, ...) (LogTarget, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) CreateServer(ctx _context.Context, backend string, server Server, ...) (Server, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) CreateServerSwitchingRule(ctx _context.Context, backend string, serverSwitchingRule ServerSwitchingRule, ...) (ServerSwitchingRule, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) CreateStickRule(ctx _context.Context, backend string, stickRule StickRule, ...) (StickRule, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) CreateTCPRequestRule(ctx _context.Context, parentName string, parentType string, ...) (TcpRequestRule, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) CreateTCPResponseRule(ctx _context.Context, backend string, tcpResponseRule TcpResponseRule, ...) (TcpResponseRule, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) DeleteAcl(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *BackendOptionsApiService) DeleteFilter(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *BackendOptionsApiService) DeleteHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *BackendOptionsApiService) DeleteHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *BackendOptionsApiService) DeleteLogTarget(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *BackendOptionsApiService) DeleteServer(ctx _context.Context, name string, backend string, ...) (*_nethttp.Response, error)
- func (a *BackendOptionsApiService) DeleteServerSwitchingRule(ctx _context.Context, id int32, backend string, ...) (*_nethttp.Response, error)
- func (a *BackendOptionsApiService) DeleteStickRule(ctx _context.Context, id int32, backend string, ...) (*_nethttp.Response, error)
- func (a *BackendOptionsApiService) DeleteTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *BackendOptionsApiService) DeleteTCPResponseRule(ctx _context.Context, id int32, backend string, ...) (*_nethttp.Response, error)
- func (a *BackendOptionsApiService) GetAcl(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20031, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) GetAcls(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20030, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) GetFilter(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20025, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) GetFilters(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20024, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) GetHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20013, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) GetHTTPRequestRules(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20012, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) GetHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20015, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) GetHTTPResponseRules(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20014, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) GetLogTarget(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20029, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) GetLogTargets(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20028, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) GetServer(ctx _context.Context, name string, backend string, ...) (InlineResponse20011, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) GetServerSwitchingRule(ctx _context.Context, id int32, backend string, ...) (InlineResponse20023, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) GetServerSwitchingRules(ctx _context.Context, backend string, ...) (InlineResponse20022, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) GetServers(ctx _context.Context, backend string, localVarOptionals *GetServersOpts) (InlineResponse20010, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) GetStickRule(ctx _context.Context, id int32, backend string, ...) (InlineResponse20027, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) GetStickRules(ctx _context.Context, backend string, localVarOptionals *GetStickRulesOpts) (InlineResponse20026, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) GetTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20017, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) GetTCPRequestRules(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20016, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) GetTCPResponseRule(ctx _context.Context, id int32, backend string, ...) (InlineResponse20019, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) GetTCPResponseRules(ctx _context.Context, backend string, ...) (InlineResponse20018, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) ReplaceAcl(ctx _context.Context, id int32, parentName string, parentType string, acl Acl, ...) (Acl, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) ReplaceFilter(ctx _context.Context, id int32, parentName string, parentType string, ...) (Filter, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) ReplaceHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (HttpRequestRule, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) ReplaceHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (HttpResponseRule, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) ReplaceLogTarget(ctx _context.Context, id int32, parentName string, parentType string, ...) (LogTarget, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) ReplaceServer(ctx _context.Context, name string, backend string, server Server, ...) (Server, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) ReplaceServerSwitchingRule(ctx _context.Context, id int32, backend string, ...) (ServerSwitchingRule, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) ReplaceStickRule(ctx _context.Context, id int32, backend string, stickRule StickRule, ...) (StickRule, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) ReplaceTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (TcpRequestRule, *_nethttp.Response, error)
- func (a *BackendOptionsApiService) ReplaceTCPResponseRule(ctx _context.Context, id int32, backend string, ...) (TcpResponseRule, *_nethttp.Response, error)
- type BackendStickTable
- type BackendSwitchingRule
- type BackendSwitchingRuleApiService
- func (a *BackendSwitchingRuleApiService) CreateBackendSwitchingRule(ctx _context.Context, frontend string, ...) (BackendSwitchingRule, *_nethttp.Response, error)
- func (a *BackendSwitchingRuleApiService) DeleteBackendSwitchingRule(ctx _context.Context, id int32, frontend string, ...) (*_nethttp.Response, error)
- func (a *BackendSwitchingRuleApiService) GetBackendSwitchingRule(ctx _context.Context, id int32, frontend string, ...) (InlineResponse20021, *_nethttp.Response, error)
- func (a *BackendSwitchingRuleApiService) GetBackendSwitchingRules(ctx _context.Context, frontend string, ...) (InlineResponse20020, *_nethttp.Response, error)
- func (a *BackendSwitchingRuleApiService) ReplaceBackendSwitchingRule(ctx _context.Context, id int32, frontend string, ...) (BackendSwitchingRule, *_nethttp.Response, error)
- type Balance
- type BasicAuth
- type Bind
- type BindApiService
- func (a *BindApiService) CreateBind(ctx _context.Context, frontend string, bind Bind, ...) (Bind, *_nethttp.Response, error)
- func (a *BindApiService) DeleteBind(ctx _context.Context, name string, frontend string, ...) (*_nethttp.Response, error)
- func (a *BindApiService) GetBind(ctx _context.Context, name string, frontend string, ...) (InlineResponse2009, *_nethttp.Response, error)
- func (a *BindApiService) GetBinds(ctx _context.Context, frontend string, localVarOptionals *GetBindsOpts) (InlineResponse2008, *_nethttp.Response, error)
- func (a *BindApiService) ReplaceBind(ctx _context.Context, name string, frontend string, bind Bind, ...) (Bind, *_nethttp.Response, error)
- type CommitTransactionOpts
- type Configuration
- type ConfigurationApiService
- func (a *ConfigurationApiService) GetHAProxyConfiguration(ctx _context.Context, localVarOptionals *GetHAProxyConfigurationOpts) (InlineResponse20032, *_nethttp.Response, error)
- func (a *ConfigurationApiService) PostHAProxyConfiguration(ctx _context.Context, body string, ...) (string, *_nethttp.Response, error)
- type CreateAclOpts
- type CreateBackendOpts
- type CreateBackendSwitchingRuleOpts
- type CreateBindOpts
- type CreateFilterOpts
- type CreateFrontendOpts
- type CreateHTTPRequestRuleOpts
- type CreateHTTPResponseRuleOpts
- type CreateLogTargetOpts
- type CreateServerOpts
- type CreateServerSwitchingRuleOpts
- type CreateSiteOpts
- type CreateStickRuleOpts
- type CreateTCPRequestRuleOpts
- type CreateTCPResponseRuleOpts
- type DefaultServer
- type Defaults
- type DefaultsApiService
- type DeleteAclOpts
- type DeleteBackendOpts
- type DeleteBackendSwitchingRuleOpts
- type DeleteBindOpts
- type DeleteFilterOpts
- type DeleteFrontendOpts
- type DeleteHTTPRequestRuleOpts
- type DeleteHTTPResponseRuleOpts
- type DeleteLogTargetOpts
- type DeleteServerOpts
- type DeleteServerSwitchingRuleOpts
- type DeleteSiteOpts
- type DeleteStickRuleOpts
- type DeleteTCPRequestRuleOpts
- type DeleteTCPResponseRuleOpts
- type DiscoveryApiService
- func (a *DiscoveryApiService) GetAPIEndpoints(ctx _context.Context) ([]Endpoint, *_nethttp.Response, error)
- func (a *DiscoveryApiService) GetConfigurationEndpoints(ctx _context.Context) ([]Endpoint, *_nethttp.Response, error)
- func (a *DiscoveryApiService) GetHaproxyEndpoints(ctx _context.Context) ([]Endpoint, *_nethttp.Response, error)
- func (a *DiscoveryApiService) GetServicesEndpoints(ctx _context.Context) ([]Endpoint, *_nethttp.Response, error)
- func (a *DiscoveryApiService) GetStatsEndpoints(ctx _context.Context) ([]Endpoint, *_nethttp.Response, error)
- type Endpoint
- type Errorfile
- type Filter
- type FilterApiService
- func (a *FilterApiService) CreateFilter(ctx _context.Context, parentName string, parentType string, filter Filter, ...) (Filter, *_nethttp.Response, error)
- func (a *FilterApiService) DeleteFilter(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *FilterApiService) GetFilter(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20025, *_nethttp.Response, error)
- func (a *FilterApiService) GetFilters(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20024, *_nethttp.Response, error)
- func (a *FilterApiService) ReplaceFilter(ctx _context.Context, id int32, parentName string, parentType string, ...) (Filter, *_nethttp.Response, error)
- type Forwardfor
- type Frontend
- type FrontendApiService
- func (a *FrontendApiService) CreateFrontend(ctx _context.Context, frontend Frontend, localVarOptionals *CreateFrontendOpts) (Frontend, *_nethttp.Response, error)
- func (a *FrontendApiService) DeleteFrontend(ctx _context.Context, name string, localVarOptionals *DeleteFrontendOpts) (*_nethttp.Response, error)
- func (a *FrontendApiService) GetFrontend(ctx _context.Context, name string, localVarOptionals *GetFrontendOpts) (InlineResponse2005, *_nethttp.Response, error)
- func (a *FrontendApiService) GetFrontends(ctx _context.Context, localVarOptionals *GetFrontendsOpts) (InlineResponse2004, *_nethttp.Response, error)
- func (a *FrontendApiService) ReplaceFrontend(ctx _context.Context, name string, frontend Frontend, ...) (Frontend, *_nethttp.Response, error)
- type FrontendOptionsApiService
- func (a *FrontendOptionsApiService) CreateAcl(ctx _context.Context, parentName string, parentType string, acl Acl, ...) (Acl, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) CreateBackendSwitchingRule(ctx _context.Context, frontend string, ...) (BackendSwitchingRule, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) CreateBind(ctx _context.Context, frontend string, bind Bind, ...) (Bind, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) CreateFilter(ctx _context.Context, parentName string, parentType string, filter Filter, ...) (Filter, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) CreateHTTPRequestRule(ctx _context.Context, parentName string, parentType string, ...) (HttpRequestRule, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) CreateHTTPResponseRule(ctx _context.Context, parentName string, parentType string, ...) (HttpResponseRule, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) CreateLogTarget(ctx _context.Context, parentName string, parentType string, ...) (LogTarget, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) CreateTCPRequestRule(ctx _context.Context, parentName string, parentType string, ...) (TcpRequestRule, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) CreateTCPResponseRule(ctx _context.Context, backend string, tcpResponseRule TcpResponseRule, ...) (TcpResponseRule, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) DeleteAcl(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *FrontendOptionsApiService) DeleteBackendSwitchingRule(ctx _context.Context, id int32, frontend string, ...) (*_nethttp.Response, error)
- func (a *FrontendOptionsApiService) DeleteBind(ctx _context.Context, name string, frontend string, ...) (*_nethttp.Response, error)
- func (a *FrontendOptionsApiService) DeleteFilter(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *FrontendOptionsApiService) DeleteHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *FrontendOptionsApiService) DeleteHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *FrontendOptionsApiService) DeleteLogTarget(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *FrontendOptionsApiService) DeleteTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *FrontendOptionsApiService) DeleteTCPResponseRule(ctx _context.Context, id int32, backend string, ...) (*_nethttp.Response, error)
- func (a *FrontendOptionsApiService) GetAcl(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20031, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) GetAcls(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20030, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) GetBackendSwitchingRule(ctx _context.Context, id int32, frontend string, ...) (InlineResponse20021, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) GetBackendSwitchingRules(ctx _context.Context, frontend string, ...) (InlineResponse20020, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) GetBind(ctx _context.Context, name string, frontend string, ...) (InlineResponse2009, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) GetBinds(ctx _context.Context, frontend string, localVarOptionals *GetBindsOpts) (InlineResponse2008, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) GetFilter(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20025, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) GetFilters(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20024, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) GetHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20013, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) GetHTTPRequestRules(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20012, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) GetHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20015, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) GetHTTPResponseRules(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20014, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) GetLogTarget(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20029, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) GetLogTargets(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20028, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) GetTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20017, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) GetTCPRequestRules(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20016, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) GetTCPResponseRule(ctx _context.Context, id int32, backend string, ...) (InlineResponse20019, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) GetTCPResponseRules(ctx _context.Context, backend string, ...) (InlineResponse20018, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) ReplaceAcl(ctx _context.Context, id int32, parentName string, parentType string, acl Acl, ...) (Acl, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) ReplaceBackendSwitchingRule(ctx _context.Context, id int32, frontend string, ...) (BackendSwitchingRule, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) ReplaceBind(ctx _context.Context, name string, frontend string, bind Bind, ...) (Bind, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) ReplaceFilter(ctx _context.Context, id int32, parentName string, parentType string, ...) (Filter, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) ReplaceHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (HttpRequestRule, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) ReplaceHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (HttpResponseRule, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) ReplaceLogTarget(ctx _context.Context, id int32, parentName string, parentType string, ...) (LogTarget, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) ReplaceTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (TcpRequestRule, *_nethttp.Response, error)
- func (a *FrontendOptionsApiService) ReplaceTCPResponseRule(ctx _context.Context, id int32, backend string, ...) (TcpResponseRule, *_nethttp.Response, error)
- type GenericOpenAPIError
- type GetAclOpts
- type GetAclsOpts
- type GetBackendOpts
- type GetBackendSwitchingRuleOpts
- type GetBackendSwitchingRulesOpts
- type GetBackendsOpts
- type GetBindOpts
- type GetBindsOpts
- type GetDefaultsOpts
- type GetFilterOpts
- type GetFiltersOpts
- type GetFrontendOpts
- type GetFrontendsOpts
- type GetGlobalOpts
- type GetHAProxyConfigurationOpts
- type GetHTTPRequestRuleOpts
- type GetHTTPRequestRulesOpts
- type GetHTTPResponseRuleOpts
- type GetHTTPResponseRulesOpts
- type GetLogTargetOpts
- type GetLogTargetsOpts
- type GetServerOpts
- type GetServerSwitchingRuleOpts
- type GetServerSwitchingRulesOpts
- type GetServersOpts
- type GetSiteOpts
- type GetSitesOpts
- type GetStatsOpts
- type GetStickRuleOpts
- type GetStickRulesOpts
- type GetTCPRequestRuleOpts
- type GetTCPRequestRulesOpts
- type GetTCPResponseRuleOpts
- type GetTCPResponseRulesOpts
- type GetTransactionsOpts
- type Global
- type GlobalApiService
- type GlobalCpuMaps
- type GlobalRuntimeApis
- type HAProxyConfigurationManagementApiService
- func (a *HAProxyConfigurationManagementApiService) CreateAcl(ctx _context.Context, parentName string, parentType string, acl Acl, ...) (Acl, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) CreateBackend(ctx _context.Context, backend Backend, localVarOptionals *CreateBackendOpts) (Backend, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) CreateBackendSwitchingRule(ctx _context.Context, frontend string, ...) (BackendSwitchingRule, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) CreateBind(ctx _context.Context, frontend string, bind Bind, ...) (Bind, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) CreateFilter(ctx _context.Context, parentName string, parentType string, filter Filter, ...) (Filter, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) CreateFrontend(ctx _context.Context, frontend Frontend, localVarOptionals *CreateFrontendOpts) (Frontend, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) CreateHTTPRequestRule(ctx _context.Context, parentName string, parentType string, ...) (HttpRequestRule, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) CreateHTTPResponseRule(ctx _context.Context, parentName string, parentType string, ...) (HttpResponseRule, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) CreateLogTarget(ctx _context.Context, parentName string, parentType string, ...) (LogTarget, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) CreateServer(ctx _context.Context, backend string, server Server, ...) (Server, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) CreateServerSwitchingRule(ctx _context.Context, backend string, serverSwitchingRule ServerSwitchingRule, ...) (ServerSwitchingRule, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) CreateStickRule(ctx _context.Context, backend string, stickRule StickRule, ...) (StickRule, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) CreateTCPRequestRule(ctx _context.Context, parentName string, parentType string, ...) (TcpRequestRule, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) CreateTCPResponseRule(ctx _context.Context, backend string, tcpResponseRule TcpResponseRule, ...) (TcpResponseRule, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) DeleteAcl(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) DeleteBackend(ctx _context.Context, name string, localVarOptionals *DeleteBackendOpts) (*_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) DeleteBackendSwitchingRule(ctx _context.Context, id int32, frontend string, ...) (*_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) DeleteBind(ctx _context.Context, name string, frontend string, ...) (*_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) DeleteFilter(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) DeleteFrontend(ctx _context.Context, name string, localVarOptionals *DeleteFrontendOpts) (*_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) DeleteHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) DeleteHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) DeleteLogTarget(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) DeleteServer(ctx _context.Context, name string, backend string, ...) (*_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) DeleteServerSwitchingRule(ctx _context.Context, id int32, backend string, ...) (*_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) DeleteStickRule(ctx _context.Context, id int32, backend string, ...) (*_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) DeleteTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) DeleteTCPResponseRule(ctx _context.Context, id int32, backend string, ...) (*_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetAcl(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20031, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetAcls(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20030, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetBackend(ctx _context.Context, name string, localVarOptionals *GetBackendOpts) (InlineResponse2007, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetBackendSwitchingRule(ctx _context.Context, id int32, frontend string, ...) (InlineResponse20021, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetBackendSwitchingRules(ctx _context.Context, frontend string, ...) (InlineResponse20020, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetBackends(ctx _context.Context, localVarOptionals *GetBackendsOpts) (InlineResponse2006, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetBind(ctx _context.Context, name string, frontend string, ...) (InlineResponse2009, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetBinds(ctx _context.Context, frontend string, localVarOptionals *GetBindsOpts) (InlineResponse2008, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetDefaults(ctx _context.Context, localVarOptionals *GetDefaultsOpts) (InlineResponse2003, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetFilter(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20025, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetFilters(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20024, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetFrontend(ctx _context.Context, name string, localVarOptionals *GetFrontendOpts) (InlineResponse2005, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetFrontends(ctx _context.Context, localVarOptionals *GetFrontendsOpts) (InlineResponse2004, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetGlobal(ctx _context.Context, localVarOptionals *GetGlobalOpts) (InlineResponse2002, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetHAProxyConfiguration(ctx _context.Context, localVarOptionals *GetHAProxyConfigurationOpts) (InlineResponse20032, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20013, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetHTTPRequestRules(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20012, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20015, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetHTTPResponseRules(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20014, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetLogTarget(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20029, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetLogTargets(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20028, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetServer(ctx _context.Context, name string, backend string, ...) (InlineResponse20011, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetServerSwitchingRule(ctx _context.Context, id int32, backend string, ...) (InlineResponse20023, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetServerSwitchingRules(ctx _context.Context, backend string, ...) (InlineResponse20022, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetServers(ctx _context.Context, backend string, localVarOptionals *GetServersOpts) (InlineResponse20010, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetStickRule(ctx _context.Context, id int32, backend string, ...) (InlineResponse20027, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetStickRules(ctx _context.Context, backend string, localVarOptionals *GetStickRulesOpts) (InlineResponse20026, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20017, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetTCPRequestRules(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20016, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetTCPResponseRule(ctx _context.Context, id int32, backend string, ...) (InlineResponse20019, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) GetTCPResponseRules(ctx _context.Context, backend string, ...) (InlineResponse20018, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) PostHAProxyConfiguration(ctx _context.Context, body string, ...) (string, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) ReplaceAcl(ctx _context.Context, id int32, parentName string, parentType string, acl Acl, ...) (Acl, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) ReplaceBackend(ctx _context.Context, name string, backend Backend, ...) (Backend, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) ReplaceBackendSwitchingRule(ctx _context.Context, id int32, frontend string, ...) (BackendSwitchingRule, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) ReplaceBind(ctx _context.Context, name string, frontend string, bind Bind, ...) (Bind, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) ReplaceDefaults(ctx _context.Context, defaults Defaults, ...) (Defaults, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) ReplaceFilter(ctx _context.Context, id int32, parentName string, parentType string, ...) (Filter, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) ReplaceFrontend(ctx _context.Context, name string, frontend Frontend, ...) (Frontend, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) ReplaceGlobal(ctx _context.Context, global Global, localVarOptionals *ReplaceGlobalOpts) (Global, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) ReplaceHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (HttpRequestRule, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) ReplaceHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (HttpResponseRule, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) ReplaceLogTarget(ctx _context.Context, id int32, parentName string, parentType string, ...) (LogTarget, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) ReplaceServer(ctx _context.Context, name string, backend string, server Server, ...) (Server, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) ReplaceServerSwitchingRule(ctx _context.Context, id int32, backend string, ...) (ServerSwitchingRule, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) ReplaceStickRule(ctx _context.Context, id int32, backend string, stickRule StickRule, ...) (StickRule, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) ReplaceTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (TcpRequestRule, *_nethttp.Response, error)
- func (a *HAProxyConfigurationManagementApiService) ReplaceTCPResponseRule(ctx _context.Context, id int32, backend string, ...) (TcpResponseRule, *_nethttp.Response, error)
- type HTTPRequestRuleApiService
- func (a *HTTPRequestRuleApiService) CreateHTTPRequestRule(ctx _context.Context, parentName string, parentType string, ...) (HttpRequestRule, *_nethttp.Response, error)
- func (a *HTTPRequestRuleApiService) DeleteHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *HTTPRequestRuleApiService) GetHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20013, *_nethttp.Response, error)
- func (a *HTTPRequestRuleApiService) GetHTTPRequestRules(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20012, *_nethttp.Response, error)
- func (a *HTTPRequestRuleApiService) ReplaceHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (HttpRequestRule, *_nethttp.Response, error)
- type HTTPResponseRuleApiService
- func (a *HTTPResponseRuleApiService) CreateHTTPResponseRule(ctx _context.Context, parentName string, parentType string, ...) (HttpResponseRule, *_nethttp.Response, error)
- func (a *HTTPResponseRuleApiService) DeleteHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *HTTPResponseRuleApiService) GetHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20015, *_nethttp.Response, error)
- func (a *HTTPResponseRuleApiService) GetHTTPResponseRules(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20014, *_nethttp.Response, error)
- func (a *HTTPResponseRuleApiService) ReplaceHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (HttpResponseRule, *_nethttp.Response, error)
- type HttpRequestRule
- type HttpResponseRule
- type Httpchk
- type Info
- type InfoApi
- type InfoSystem
- type InfoSystemCpuInfo
- type InfoSystemMemInfo
- type InformationApiService
- type InlineResponse200
- type InlineResponse2001
- type InlineResponse20010
- type InlineResponse20011
- type InlineResponse20012
- type InlineResponse20013
- type InlineResponse20014
- type InlineResponse20015
- type InlineResponse20016
- type InlineResponse20017
- type InlineResponse20018
- type InlineResponse20019
- type InlineResponse2002
- type InlineResponse20020
- type InlineResponse20021
- type InlineResponse20022
- type InlineResponse20023
- type InlineResponse20024
- type InlineResponse20025
- type InlineResponse20026
- type InlineResponse20027
- type InlineResponse20028
- type InlineResponse20029
- type InlineResponse2003
- type InlineResponse20030
- type InlineResponse20031
- type InlineResponse20032
- type InlineResponse2004
- type InlineResponse2005
- type InlineResponse2006
- type InlineResponse2007
- type InlineResponse2008
- type InlineResponse2009
- type LogTarget
- type LogTargetApiService
- func (a *LogTargetApiService) CreateLogTarget(ctx _context.Context, parentName string, parentType string, ...) (LogTarget, *_nethttp.Response, error)
- func (a *LogTargetApiService) DeleteLogTarget(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *LogTargetApiService) GetLogTarget(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20029, *_nethttp.Response, error)
- func (a *LogTargetApiService) GetLogTargets(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20028, *_nethttp.Response, error)
- func (a *LogTargetApiService) ReplaceLogTarget(ctx _context.Context, id int32, parentName string, parentType string, ...) (LogTarget, *_nethttp.Response, error)
- type ModelError
- type NativeStat
- type NativeStatStats
- type PostHAProxyConfigurationOpts
- type ProcessInfo
- type ProcessInfoHaproxy
- type Redispatch
- type Reload
- type ReloadsApiService
- type ReplaceAclOpts
- type ReplaceBackendOpts
- type ReplaceBackendSwitchingRuleOpts
- type ReplaceBindOpts
- type ReplaceDefaultsOpts
- type ReplaceFilterOpts
- type ReplaceFrontendOpts
- type ReplaceGlobalOpts
- type ReplaceHTTPRequestRuleOpts
- type ReplaceHTTPResponseRuleOpts
- type ReplaceLogTargetOpts
- type ReplaceServerOpts
- type ReplaceServerSwitchingRuleOpts
- type ReplaceSiteOpts
- type ReplaceStickRuleOpts
- type ReplaceTCPRequestRuleOpts
- type ReplaceTCPResponseRuleOpts
- type Server
- type ServerApiService
- func (a *ServerApiService) CreateServer(ctx _context.Context, backend string, server Server, ...) (Server, *_nethttp.Response, error)
- func (a *ServerApiService) DeleteServer(ctx _context.Context, name string, backend string, ...) (*_nethttp.Response, error)
- func (a *ServerApiService) GetServer(ctx _context.Context, name string, backend string, ...) (InlineResponse20011, *_nethttp.Response, error)
- func (a *ServerApiService) GetServers(ctx _context.Context, backend string, localVarOptionals *GetServersOpts) (InlineResponse20010, *_nethttp.Response, error)
- func (a *ServerApiService) ReplaceServer(ctx _context.Context, name string, backend string, server Server, ...) (Server, *_nethttp.Response, error)
- type ServerSwitchingRule
- type ServerSwitchingRuleApiService
- func (a *ServerSwitchingRuleApiService) CreateServerSwitchingRule(ctx _context.Context, backend string, serverSwitchingRule ServerSwitchingRule, ...) (ServerSwitchingRule, *_nethttp.Response, error)
- func (a *ServerSwitchingRuleApiService) DeleteServerSwitchingRule(ctx _context.Context, id int32, backend string, ...) (*_nethttp.Response, error)
- func (a *ServerSwitchingRuleApiService) GetServerSwitchingRule(ctx _context.Context, id int32, backend string, ...) (InlineResponse20023, *_nethttp.Response, error)
- func (a *ServerSwitchingRuleApiService) GetServerSwitchingRules(ctx _context.Context, backend string, ...) (InlineResponse20022, *_nethttp.Response, error)
- func (a *ServerSwitchingRuleApiService) ReplaceServerSwitchingRule(ctx _context.Context, id int32, backend string, ...) (ServerSwitchingRule, *_nethttp.Response, error)
- type Site
- type SiteFarms
- type SiteService
- type SitesApiService
- func (a *SitesApiService) CreateSite(ctx _context.Context, site Site, localVarOptionals *CreateSiteOpts) (Site, *_nethttp.Response, error)
- func (a *SitesApiService) DeleteSite(ctx _context.Context, name string, localVarOptionals *DeleteSiteOpts) (*_nethttp.Response, error)
- func (a *SitesApiService) GetSite(ctx _context.Context, name string, localVarOptionals *GetSiteOpts) (InlineResponse2001, *_nethttp.Response, error)
- func (a *SitesApiService) GetSites(ctx _context.Context, localVarOptionals *GetSitesOpts) (InlineResponse200, *_nethttp.Response, error)
- func (a *SitesApiService) ReplaceSite(ctx _context.Context, name string, site Site, ...) (Site, *_nethttp.Response, error)
- type SpecificationApiService
- type StatsApiService
- type StickRule
- type StickRuleApiService
- func (a *StickRuleApiService) CreateStickRule(ctx _context.Context, backend string, stickRule StickRule, ...) (StickRule, *_nethttp.Response, error)
- func (a *StickRuleApiService) DeleteStickRule(ctx _context.Context, id int32, backend string, ...) (*_nethttp.Response, error)
- func (a *StickRuleApiService) GetStickRule(ctx _context.Context, id int32, backend string, ...) (InlineResponse20027, *_nethttp.Response, error)
- func (a *StickRuleApiService) GetStickRules(ctx _context.Context, backend string, localVarOptionals *GetStickRulesOpts) (InlineResponse20026, *_nethttp.Response, error)
- func (a *StickRuleApiService) ReplaceStickRule(ctx _context.Context, id int32, backend string, stickRule StickRule, ...) (StickRule, *_nethttp.Response, error)
- type TCPRequestRuleApiService
- func (a *TCPRequestRuleApiService) CreateTCPRequestRule(ctx _context.Context, parentName string, parentType string, ...) (TcpRequestRule, *_nethttp.Response, error)
- func (a *TCPRequestRuleApiService) DeleteTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (*_nethttp.Response, error)
- func (a *TCPRequestRuleApiService) GetTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (InlineResponse20017, *_nethttp.Response, error)
- func (a *TCPRequestRuleApiService) GetTCPRequestRules(ctx _context.Context, parentName string, parentType string, ...) (InlineResponse20016, *_nethttp.Response, error)
- func (a *TCPRequestRuleApiService) ReplaceTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, ...) (TcpRequestRule, *_nethttp.Response, error)
- type TCPResponseRuleApiService
- func (a *TCPResponseRuleApiService) CreateTCPResponseRule(ctx _context.Context, backend string, tcpResponseRule TcpResponseRule, ...) (TcpResponseRule, *_nethttp.Response, error)
- func (a *TCPResponseRuleApiService) DeleteTCPResponseRule(ctx _context.Context, id int32, backend string, ...) (*_nethttp.Response, error)
- func (a *TCPResponseRuleApiService) GetTCPResponseRule(ctx _context.Context, id int32, backend string, ...) (InlineResponse20019, *_nethttp.Response, error)
- func (a *TCPResponseRuleApiService) GetTCPResponseRules(ctx _context.Context, backend string, ...) (InlineResponse20018, *_nethttp.Response, error)
- func (a *TCPResponseRuleApiService) ReplaceTCPResponseRule(ctx _context.Context, id int32, backend string, ...) (TcpResponseRule, *_nethttp.Response, error)
- type TcpRequestRule
- type TcpResponseRule
- type Transaction
- type TransactionsApiService
- func (a *TransactionsApiService) CommitTransaction(ctx _context.Context, id string, localVarOptionals *CommitTransactionOpts) (Transaction, *_nethttp.Response, error)
- func (a *TransactionsApiService) DeleteTransaction(ctx _context.Context, id string) (*_nethttp.Response, error)
- func (a *TransactionsApiService) GetTransaction(ctx _context.Context, id string) (Transaction, *_nethttp.Response, error)
- func (a *TransactionsApiService) GetTransactions(ctx _context.Context, localVarOptionals *GetTransactionsOpts) ([]Transaction, *_nethttp.Response, error)
- func (a *TransactionsApiService) StartTransaction(ctx _context.Context, version int32) (Transaction, *_nethttp.Response, error)
Constants ¶
This section is empty.
Variables ¶
var ( // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. ContextOAuth2 = contextKey("token") // ContextBasicAuth takes BasicAuth as authentication for the request. ContextBasicAuth = contextKey("basic") // ContextAccessToken takes a string oauth2 access token as authentication for the request. ContextAccessToken = contextKey("accesstoken") // ContextAPIKey takes an APIKey as authentication for the request ContextAPIKey = contextKey("apikey") )
Functions ¶
Types ¶
type ACLApiService ¶
type ACLApiService service
ACLApiService ACLApi service
func (*ACLApiService) CreateAcl ¶
func (a *ACLApiService) CreateAcl(ctx _context.Context, parentName string, parentType string, acl Acl, localVarOptionals *CreateAclOpts) (Acl, *_nethttp.Response, error)
CreateAcl Add a new ACL line Adds a new ACL line of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param acl
- @param optional nil or *CreateAclOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Acl
func (*ACLApiService) DeleteAcl ¶
func (a *ACLApiService) DeleteAcl(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteAclOpts) (*_nethttp.Response, error)
DeleteAcl Delete a ACL line Deletes a ACL line configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ACL line ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteAclOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*ACLApiService) GetAcl ¶
func (a *ACLApiService) GetAcl(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetAclOpts) (InlineResponse20031, *_nethttp.Response, error)
GetAcl Return one ACL line Returns one ACL line configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ACL line ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetAclOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20031
func (*ACLApiService) GetAcls ¶
func (a *ACLApiService) GetAcls(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetAclsOpts) (InlineResponse20030, *_nethttp.Response, error)
GetAcls Return an array of all ACL lines Returns all ACL lines that are configured in specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetAclsOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20030
func (*ACLApiService) ReplaceAcl ¶
func (a *ACLApiService) ReplaceAcl(ctx _context.Context, id int32, parentName string, parentType string, acl Acl, localVarOptionals *ReplaceAclOpts) (Acl, *_nethttp.Response, error)
ReplaceAcl Replace a ACL line Replaces a ACL line configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ACL line ID
- @param parentName Parent name
- @param parentType Parent type
- @param acl
- @param optional nil or *ReplaceAclOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Acl
type APIClient ¶
type APIClient struct { ACLApi *ACLApiService BackendApi *BackendApiService BackendOptionsApi *BackendOptionsApiService BackendSwitchingRuleApi *BackendSwitchingRuleApiService BindApi *BindApiService ConfigurationApi *ConfigurationApiService DefaultsApi *DefaultsApiService DiscoveryApi *DiscoveryApiService FilterApi *FilterApiService FrontendApi *FrontendApiService FrontendOptionsApi *FrontendOptionsApiService GlobalApi *GlobalApiService HAProxyConfigurationManagementApi *HAProxyConfigurationManagementApiService HTTPRequestRuleApi *HTTPRequestRuleApiService HTTPResponseRuleApi *HTTPResponseRuleApiService InformationApi *InformationApiService LogTargetApi *LogTargetApiService ReloadsApi *ReloadsApiService ServerApi *ServerApiService ServerSwitchingRuleApi *ServerSwitchingRuleApiService SitesApi *SitesApiService SpecificationApi *SpecificationApiService StatsApi *StatsApiService StickRuleApi *StickRuleApiService TCPRequestRuleApi *TCPRequestRuleApiService TCPResponseRuleApi *TCPResponseRuleApiService TransactionsApi *TransactionsApiService // contains filtered or unexported fields }
APIClient manages communication with the HAProxy Data Plane API API v1.2 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) ChangeBasePath ¶
ChangeBasePath changes base path to allow switching to mocks
func (*APIClient) GetConfig ¶
func (c *APIClient) GetConfig() *Configuration
Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
type APIKey ¶
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the OpenAPI operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
APIResponse stores the API response returned by the server.
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
NewAPIResponse returns a new APIResonse object.
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
type Acl ¶
type Acl struct { AclName string `json:"acl_name"` Criterion string `json:"criterion"` Id *int32 `json:"id"` Value string `json:"value"` }
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 Backend ¶
type Backend struct { AdvCheck string `json:"adv_check,omitempty"` Balance Balance `json:"balance,omitempty"` CheckTimeout *int32 `json:"check_timeout,omitempty"` ConnectTimeout *int32 `json:"connect_timeout,omitempty"` Cookie string `json:"cookie,omitempty"` DefaultServer *DefaultServer `json:"default_server,omitempty"` ExternalCheck string `json:"external_check,omitempty"` ExternalCheckCommand string `json:"external_check_command,omitempty"` ExternalCheckPath string `json:"external_check_path,omitempty"` Forwardfor *Forwardfor `json:"forwardfor,omitempty"` HashType *BackendHashType `json:"hash_type,omitempty"` HttpUseHtx string `json:"http-use-htx,omitempty"` HttpConnectionMode string `json:"http_connection_mode,omitempty"` HttpKeepAliveTimeout *int32 `json:"http_keep_alive_timeout,omitempty"` HttpPretendKeepalive string `json:"http_pretend_keepalive,omitempty"` HttpRequestTimeout *int32 `json:"http_request_timeout,omitempty"` Httpchk *Httpchk `json:"httpchk,omitempty"` LogTag string `json:"log_tag,omitempty"` Mode string `json:"mode,omitempty"` Name string `json:"name"` QueueTimeout *int32 `json:"queue_timeout,omitempty"` Redispatch *Redispatch `json:"redispatch,omitempty"` Retries *int32 `json:"retries,omitempty"` ServerTimeout *int32 `json:"server_timeout,omitempty"` StickTable *BackendStickTable `json:"stick_table,omitempty"` }
Backend HAProxy backend configuration
type BackendApiService ¶
type BackendApiService service
BackendApiService BackendApi service
func (*BackendApiService) CreateBackend ¶
func (a *BackendApiService) CreateBackend(ctx _context.Context, backend Backend, localVarOptionals *CreateBackendOpts) (Backend, *_nethttp.Response, error)
CreateBackend Add a backend Adds a new backend to the configuration file.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend
- @param optional nil or *CreateBackendOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Backend
func (*BackendApiService) DeleteBackend ¶
func (a *BackendApiService) DeleteBackend(ctx _context.Context, name string, localVarOptionals *DeleteBackendOpts) (*_nethttp.Response, error)
DeleteBackend Delete a backend Deletes a frontend from the configuration by it's name.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Backend name
- @param optional nil or *DeleteBackendOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*BackendApiService) GetBackend ¶
func (a *BackendApiService) GetBackend(ctx _context.Context, name string, localVarOptionals *GetBackendOpts) (InlineResponse2007, *_nethttp.Response, error)
GetBackend Return a backend Returns one backend configuration by it's name.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Backend name
- @param optional nil or *GetBackendOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse2007
func (*BackendApiService) GetBackends ¶
func (a *BackendApiService) GetBackends(ctx _context.Context, localVarOptionals *GetBackendsOpts) (InlineResponse2006, *_nethttp.Response, error)
GetBackends Return an array of backends Returns an array of all configured backends.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *GetBackendsOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse2006
func (*BackendApiService) ReplaceBackend ¶
func (a *BackendApiService) ReplaceBackend(ctx _context.Context, name string, backend Backend, localVarOptionals *ReplaceBackendOpts) (Backend, *_nethttp.Response, error)
ReplaceBackend Replace a backend Replaces a backend configuration by it's name.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Backend name
- @param backend
- @param optional nil or *ReplaceBackendOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Backend
type BackendHashType ¶
type BackendHashType struct { Function string `json:"function,omitempty"` Method string `json:"method,omitempty"` Modifier string `json:"modifier,omitempty"` }
BackendHashType struct for BackendHashType
type BackendOptionsApiService ¶
type BackendOptionsApiService service
BackendOptionsApiService BackendOptionsApi service
func (*BackendOptionsApiService) CreateAcl ¶
func (a *BackendOptionsApiService) CreateAcl(ctx _context.Context, parentName string, parentType string, acl Acl, localVarOptionals *CreateAclOpts) (Acl, *_nethttp.Response, error)
CreateAcl Add a new ACL line Adds a new ACL line of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param acl
- @param optional nil or *CreateAclOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Acl
func (*BackendOptionsApiService) CreateFilter ¶
func (a *BackendOptionsApiService) CreateFilter(ctx _context.Context, parentName string, parentType string, filter Filter, localVarOptionals *CreateFilterOpts) (Filter, *_nethttp.Response, error)
CreateFilter Add a new Filter Adds a new Filter of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param filter
- @param optional nil or *CreateFilterOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Filter
func (*BackendOptionsApiService) CreateHTTPRequestRule ¶
func (a *BackendOptionsApiService) CreateHTTPRequestRule(ctx _context.Context, parentName string, parentType string, httpRequestRule HttpRequestRule, localVarOptionals *CreateHTTPRequestRuleOpts) (HttpRequestRule, *_nethttp.Response, error)
CreateHTTPRequestRule Add a new HTTP Request Rule Adds a new HTTP Request Rule of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param httpRequestRule
- @param optional nil or *CreateHTTPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return HttpRequestRule
func (*BackendOptionsApiService) CreateHTTPResponseRule ¶
func (a *BackendOptionsApiService) CreateHTTPResponseRule(ctx _context.Context, parentName string, parentType string, httpResponseRule HttpResponseRule, localVarOptionals *CreateHTTPResponseRuleOpts) (HttpResponseRule, *_nethttp.Response, error)
CreateHTTPResponseRule Add a new HTTP Response Rule Adds a new HTTP Response Rule of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param httpResponseRule
- @param optional nil or *CreateHTTPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return HttpResponseRule
func (*BackendOptionsApiService) CreateLogTarget ¶
func (a *BackendOptionsApiService) CreateLogTarget(ctx _context.Context, parentName string, parentType string, logTarget LogTarget, localVarOptionals *CreateLogTargetOpts) (LogTarget, *_nethttp.Response, error)
CreateLogTarget Add a new Log Target Adds a new Log Target of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param logTarget
- @param optional nil or *CreateLogTargetOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return LogTarget
func (*BackendOptionsApiService) CreateServer ¶
func (a *BackendOptionsApiService) CreateServer(ctx _context.Context, backend string, server Server, localVarOptionals *CreateServerOpts) (Server, *_nethttp.Response, error)
CreateServer Add a new server Adds a new server in the specified backend in the configuration file.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Parent backend name
- @param server
- @param optional nil or *CreateServerOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Server
func (*BackendOptionsApiService) CreateServerSwitchingRule ¶
func (a *BackendOptionsApiService) CreateServerSwitchingRule(ctx _context.Context, backend string, serverSwitchingRule ServerSwitchingRule, localVarOptionals *CreateServerSwitchingRuleOpts) (ServerSwitchingRule, *_nethttp.Response, error)
CreateServerSwitchingRule Add a new Server Switching Rule Adds a new Server Switching Rule of the specified type in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Backend name
- @param serverSwitchingRule
- @param optional nil or *CreateServerSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return ServerSwitchingRule
func (*BackendOptionsApiService) CreateStickRule ¶
func (a *BackendOptionsApiService) CreateStickRule(ctx _context.Context, backend string, stickRule StickRule, localVarOptionals *CreateStickRuleOpts) (StickRule, *_nethttp.Response, error)
CreateStickRule Add a new Stick Rule Adds a new Stick Rule of the specified type in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Backend name
- @param stickRule
- @param optional nil or *CreateStickRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return StickRule
func (*BackendOptionsApiService) CreateTCPRequestRule ¶
func (a *BackendOptionsApiService) CreateTCPRequestRule(ctx _context.Context, parentName string, parentType string, tcpRequestRule TcpRequestRule, localVarOptionals *CreateTCPRequestRuleOpts) (TcpRequestRule, *_nethttp.Response, error)
CreateTCPRequestRule Add a new TCP Request Rule Adds a new TCP Request Rule of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param tcpRequestRule
- @param optional nil or *CreateTCPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return TcpRequestRule
func (*BackendOptionsApiService) CreateTCPResponseRule ¶
func (a *BackendOptionsApiService) CreateTCPResponseRule(ctx _context.Context, backend string, tcpResponseRule TcpResponseRule, localVarOptionals *CreateTCPResponseRuleOpts) (TcpResponseRule, *_nethttp.Response, error)
CreateTCPResponseRule Add a new TCP Response Rule Adds a new TCP Response Rule of the specified type in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Parent backend name
- @param tcpResponseRule
- @param optional nil or *CreateTCPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return TcpResponseRule
func (*BackendOptionsApiService) DeleteAcl ¶
func (a *BackendOptionsApiService) DeleteAcl(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteAclOpts) (*_nethttp.Response, error)
DeleteAcl Delete a ACL line Deletes a ACL line configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ACL line ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteAclOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*BackendOptionsApiService) DeleteFilter ¶
func (a *BackendOptionsApiService) DeleteFilter(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteFilterOpts) (*_nethttp.Response, error)
DeleteFilter Delete a Filter Deletes a Filter configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Filter ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteFilterOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*BackendOptionsApiService) DeleteHTTPRequestRule ¶
func (a *BackendOptionsApiService) DeleteHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteHTTPRequestRuleOpts) (*_nethttp.Response, error)
DeleteHTTPRequestRule Delete a HTTP Request Rule Deletes a HTTP Request Rule configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteHTTPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*BackendOptionsApiService) DeleteHTTPResponseRule ¶
func (a *BackendOptionsApiService) DeleteHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteHTTPResponseRuleOpts) (*_nethttp.Response, error)
DeleteHTTPResponseRule Delete a HTTP Response Rule Deletes a HTTP Response Rule configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Response Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteHTTPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*BackendOptionsApiService) DeleteLogTarget ¶
func (a *BackendOptionsApiService) DeleteLogTarget(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteLogTargetOpts) (*_nethttp.Response, error)
DeleteLogTarget Delete a Log Target Deletes a Log Target configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Log Target ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteLogTargetOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*BackendOptionsApiService) DeleteServer ¶
func (a *BackendOptionsApiService) DeleteServer(ctx _context.Context, name string, backend string, localVarOptionals *DeleteServerOpts) (*_nethttp.Response, error)
DeleteServer Delete a server Deletes a server configuration by it's name in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Server name
- @param backend Parent backend name
- @param optional nil or *DeleteServerOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*BackendOptionsApiService) DeleteServerSwitchingRule ¶
func (a *BackendOptionsApiService) DeleteServerSwitchingRule(ctx _context.Context, id int32, backend string, localVarOptionals *DeleteServerSwitchingRuleOpts) (*_nethttp.Response, error)
DeleteServerSwitchingRule Delete a Server Switching Rule Deletes a Server Switching Rule configuration by it's ID from the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Switching Rule ID
- @param backend Backend name
- @param optional nil or *DeleteServerSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*BackendOptionsApiService) DeleteStickRule ¶
func (a *BackendOptionsApiService) DeleteStickRule(ctx _context.Context, id int32, backend string, localVarOptionals *DeleteStickRuleOpts) (*_nethttp.Response, error)
DeleteStickRule Delete a Stick Rule Deletes a Stick Rule configuration by it's ID from the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Stick Rule ID
- @param backend Backend name
- @param optional nil or *DeleteStickRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*BackendOptionsApiService) DeleteTCPRequestRule ¶
func (a *BackendOptionsApiService) DeleteTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteTCPRequestRuleOpts) (*_nethttp.Response, error)
DeleteTCPRequestRule Delete a TCP Request Rule Deletes a TCP Request Rule configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteTCPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*BackendOptionsApiService) DeleteTCPResponseRule ¶
func (a *BackendOptionsApiService) DeleteTCPResponseRule(ctx _context.Context, id int32, backend string, localVarOptionals *DeleteTCPResponseRuleOpts) (*_nethttp.Response, error)
DeleteTCPResponseRule Delete a TCP Response Rule Deletes a TCP Response Rule configuration by it's ID from the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Response Rule ID
- @param backend Parent backend name
- @param optional nil or *DeleteTCPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*BackendOptionsApiService) GetAcl ¶
func (a *BackendOptionsApiService) GetAcl(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetAclOpts) (InlineResponse20031, *_nethttp.Response, error)
GetAcl Return one ACL line Returns one ACL line configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ACL line ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetAclOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20031
func (*BackendOptionsApiService) GetAcls ¶
func (a *BackendOptionsApiService) GetAcls(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetAclsOpts) (InlineResponse20030, *_nethttp.Response, error)
GetAcls Return an array of all ACL lines Returns all ACL lines that are configured in specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetAclsOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20030
func (*BackendOptionsApiService) GetFilter ¶
func (a *BackendOptionsApiService) GetFilter(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetFilterOpts) (InlineResponse20025, *_nethttp.Response, error)
GetFilter Return one Filter Returns one Filter configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Filter ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetFilterOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20025
func (*BackendOptionsApiService) GetFilters ¶
func (a *BackendOptionsApiService) GetFilters(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetFiltersOpts) (InlineResponse20024, *_nethttp.Response, error)
GetFilters Return an array of all Filters Returns all Filters that are configured in specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetFiltersOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20024
func (*BackendOptionsApiService) GetHTTPRequestRule ¶
func (a *BackendOptionsApiService) GetHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetHTTPRequestRuleOpts) (InlineResponse20013, *_nethttp.Response, error)
GetHTTPRequestRule Return one HTTP Request Rule Returns one HTTP Request Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetHTTPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20013
func (*BackendOptionsApiService) GetHTTPRequestRules ¶
func (a *BackendOptionsApiService) GetHTTPRequestRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetHTTPRequestRulesOpts) (InlineResponse20012, *_nethttp.Response, error)
GetHTTPRequestRules Return an array of all HTTP Request Rules Returns all HTTP Request Rules that are configured in specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetHTTPRequestRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20012
func (*BackendOptionsApiService) GetHTTPResponseRule ¶
func (a *BackendOptionsApiService) GetHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetHTTPResponseRuleOpts) (InlineResponse20015, *_nethttp.Response, error)
GetHTTPResponseRule Return one HTTP Response Rule Returns one HTTP Response Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Response Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetHTTPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20015
func (*BackendOptionsApiService) GetHTTPResponseRules ¶
func (a *BackendOptionsApiService) GetHTTPResponseRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetHTTPResponseRulesOpts) (InlineResponse20014, *_nethttp.Response, error)
GetHTTPResponseRules Return an array of all HTTP Response Rules Returns all HTTP Response Rules that are configured in specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetHTTPResponseRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20014
func (*BackendOptionsApiService) GetLogTarget ¶
func (a *BackendOptionsApiService) GetLogTarget(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetLogTargetOpts) (InlineResponse20029, *_nethttp.Response, error)
GetLogTarget Return one Log Target Returns one Log Target configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Log Target ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetLogTargetOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20029
func (*BackendOptionsApiService) GetLogTargets ¶
func (a *BackendOptionsApiService) GetLogTargets(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetLogTargetsOpts) (InlineResponse20028, *_nethttp.Response, error)
GetLogTargets Return an array of all Log Targets Returns all Log Targets that are configured in specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetLogTargetsOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20028
func (*BackendOptionsApiService) GetServer ¶
func (a *BackendOptionsApiService) GetServer(ctx _context.Context, name string, backend string, localVarOptionals *GetServerOpts) (InlineResponse20011, *_nethttp.Response, error)
GetServer Return one server Returns one server configuration by it's name in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Server name
- @param backend Parent backend name
- @param optional nil or *GetServerOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20011
func (*BackendOptionsApiService) GetServerSwitchingRule ¶
func (a *BackendOptionsApiService) GetServerSwitchingRule(ctx _context.Context, id int32, backend string, localVarOptionals *GetServerSwitchingRuleOpts) (InlineResponse20023, *_nethttp.Response, error)
GetServerSwitchingRule Return one Server Switching Rule Returns one Server Switching Rule configuration by it's ID in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Switching Rule ID
- @param backend Backend name
- @param optional nil or *GetServerSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20023
func (*BackendOptionsApiService) GetServerSwitchingRules ¶
func (a *BackendOptionsApiService) GetServerSwitchingRules(ctx _context.Context, backend string, localVarOptionals *GetServerSwitchingRulesOpts) (InlineResponse20022, *_nethttp.Response, error)
GetServerSwitchingRules Return an array of all Server Switching Rules Returns all Backend Switching Rules that are configured in specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Backend name
- @param optional nil or *GetServerSwitchingRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20022
func (*BackendOptionsApiService) GetServers ¶
func (a *BackendOptionsApiService) GetServers(ctx _context.Context, backend string, localVarOptionals *GetServersOpts) (InlineResponse20010, *_nethttp.Response, error)
GetServers Return an array of servers Returns an array of all servers that are configured in specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Parent backend name
- @param optional nil or *GetServersOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20010
func (*BackendOptionsApiService) GetStickRule ¶
func (a *BackendOptionsApiService) GetStickRule(ctx _context.Context, id int32, backend string, localVarOptionals *GetStickRuleOpts) (InlineResponse20027, *_nethttp.Response, error)
GetStickRule Return one Stick Rule Returns one Stick Rule configuration by it's ID in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Stick Rule ID
- @param backend Backend name
- @param optional nil or *GetStickRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20027
func (*BackendOptionsApiService) GetStickRules ¶
func (a *BackendOptionsApiService) GetStickRules(ctx _context.Context, backend string, localVarOptionals *GetStickRulesOpts) (InlineResponse20026, *_nethttp.Response, error)
GetStickRules Return an array of all Stick Rules Returns all Stick Rules that are configured in specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Backend name
- @param optional nil or *GetStickRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20026
func (*BackendOptionsApiService) GetTCPRequestRule ¶
func (a *BackendOptionsApiService) GetTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetTCPRequestRuleOpts) (InlineResponse20017, *_nethttp.Response, error)
GetTCPRequestRule Return one TCP Request Rule Returns one TCP Request Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetTCPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20017
func (*BackendOptionsApiService) GetTCPRequestRules ¶
func (a *BackendOptionsApiService) GetTCPRequestRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetTCPRequestRulesOpts) (InlineResponse20016, *_nethttp.Response, error)
GetTCPRequestRules Return an array of all TCP Request Rules Returns all TCP Request Rules that are configured in specified parent and parent type.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetTCPRequestRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20016
func (*BackendOptionsApiService) GetTCPResponseRule ¶
func (a *BackendOptionsApiService) GetTCPResponseRule(ctx _context.Context, id int32, backend string, localVarOptionals *GetTCPResponseRuleOpts) (InlineResponse20019, *_nethttp.Response, error)
GetTCPResponseRule Return one TCP Response Rule Returns one TCP Response Rule configuration by it's ID in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Response Rule ID
- @param backend Parent backend name
- @param optional nil or *GetTCPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20019
func (*BackendOptionsApiService) GetTCPResponseRules ¶
func (a *BackendOptionsApiService) GetTCPResponseRules(ctx _context.Context, backend string, localVarOptionals *GetTCPResponseRulesOpts) (InlineResponse20018, *_nethttp.Response, error)
GetTCPResponseRules Return an array of all TCP Response Rules Returns all TCP Response Rules that are configured in specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Parent backend name
- @param optional nil or *GetTCPResponseRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20018
func (*BackendOptionsApiService) ReplaceAcl ¶
func (a *BackendOptionsApiService) ReplaceAcl(ctx _context.Context, id int32, parentName string, parentType string, acl Acl, localVarOptionals *ReplaceAclOpts) (Acl, *_nethttp.Response, error)
ReplaceAcl Replace a ACL line Replaces a ACL line configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ACL line ID
- @param parentName Parent name
- @param parentType Parent type
- @param acl
- @param optional nil or *ReplaceAclOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Acl
func (*BackendOptionsApiService) ReplaceFilter ¶
func (a *BackendOptionsApiService) ReplaceFilter(ctx _context.Context, id int32, parentName string, parentType string, filter Filter, localVarOptionals *ReplaceFilterOpts) (Filter, *_nethttp.Response, error)
ReplaceFilter Replace a Filter Replaces a Filter configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Filter ID
- @param parentName Parent name
- @param parentType Parent type
- @param filter
- @param optional nil or *ReplaceFilterOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Filter
func (*BackendOptionsApiService) ReplaceHTTPRequestRule ¶
func (a *BackendOptionsApiService) ReplaceHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, httpRequestRule HttpRequestRule, localVarOptionals *ReplaceHTTPRequestRuleOpts) (HttpRequestRule, *_nethttp.Response, error)
ReplaceHTTPRequestRule Replace a HTTP Request Rule Replaces a HTTP Request Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param httpRequestRule
- @param optional nil or *ReplaceHTTPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return HttpRequestRule
func (*BackendOptionsApiService) ReplaceHTTPResponseRule ¶
func (a *BackendOptionsApiService) ReplaceHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, httpResponseRule HttpResponseRule, localVarOptionals *ReplaceHTTPResponseRuleOpts) (HttpResponseRule, *_nethttp.Response, error)
ReplaceHTTPResponseRule Replace a HTTP Response Rule Replaces a HTTP Response Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Response Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param httpResponseRule
- @param optional nil or *ReplaceHTTPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return HttpResponseRule
func (*BackendOptionsApiService) ReplaceLogTarget ¶
func (a *BackendOptionsApiService) ReplaceLogTarget(ctx _context.Context, id int32, parentName string, parentType string, logTarget LogTarget, localVarOptionals *ReplaceLogTargetOpts) (LogTarget, *_nethttp.Response, error)
ReplaceLogTarget Replace a Log Target Replaces a Log Target configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Log Target ID
- @param parentName Parent name
- @param parentType Parent type
- @param logTarget
- @param optional nil or *ReplaceLogTargetOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return LogTarget
func (*BackendOptionsApiService) ReplaceServer ¶
func (a *BackendOptionsApiService) ReplaceServer(ctx _context.Context, name string, backend string, server Server, localVarOptionals *ReplaceServerOpts) (Server, *_nethttp.Response, error)
ReplaceServer Replace a server Replaces a server configuration by it's name in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Server name
- @param backend Parent backend name
- @param server
- @param optional nil or *ReplaceServerOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Server
func (*BackendOptionsApiService) ReplaceServerSwitchingRule ¶
func (a *BackendOptionsApiService) ReplaceServerSwitchingRule(ctx _context.Context, id int32, backend string, serverSwitchingRule ServerSwitchingRule, localVarOptionals *ReplaceServerSwitchingRuleOpts) (ServerSwitchingRule, *_nethttp.Response, error)
ReplaceServerSwitchingRule Replace a Server Switching Rule Replaces a Server Switching Rule configuration by it's ID in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Switching Rule ID
- @param backend Backend name
- @param serverSwitchingRule
- @param optional nil or *ReplaceServerSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return ServerSwitchingRule
func (*BackendOptionsApiService) ReplaceStickRule ¶
func (a *BackendOptionsApiService) ReplaceStickRule(ctx _context.Context, id int32, backend string, stickRule StickRule, localVarOptionals *ReplaceStickRuleOpts) (StickRule, *_nethttp.Response, error)
ReplaceStickRule Replace a Stick Rule Replaces a Stick Rule configuration by it's ID in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Stick Rule ID
- @param backend Backend name
- @param stickRule
- @param optional nil or *ReplaceStickRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return StickRule
func (*BackendOptionsApiService) ReplaceTCPRequestRule ¶
func (a *BackendOptionsApiService) ReplaceTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, tcpRequestRule TcpRequestRule, localVarOptionals *ReplaceTCPRequestRuleOpts) (TcpRequestRule, *_nethttp.Response, error)
ReplaceTCPRequestRule Replace a TCP Request Rule Replaces a TCP Request Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param tcpRequestRule
- @param optional nil or *ReplaceTCPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return TcpRequestRule
func (*BackendOptionsApiService) ReplaceTCPResponseRule ¶
func (a *BackendOptionsApiService) ReplaceTCPResponseRule(ctx _context.Context, id int32, backend string, tcpResponseRule TcpResponseRule, localVarOptionals *ReplaceTCPResponseRuleOpts) (TcpResponseRule, *_nethttp.Response, error)
ReplaceTCPResponseRule Replace a TCP Response Rule Replaces a TCP Response Rule configuration by it's ID in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Response Rule ID
- @param backend Parent backend name
- @param tcpResponseRule
- @param optional nil or *ReplaceTCPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return TcpResponseRule
type BackendStickTable ¶
type BackendStickTable struct { Expire *int32 `json:"expire,omitempty"` Keylen *int32 `json:"keylen,omitempty"` Nopurge bool `json:"nopurge,omitempty"` Peers string `json:"peers,omitempty"` Size *int32 `json:"size,omitempty"` Store string `json:"store,omitempty"` Type string `json:"type,omitempty"` }
BackendStickTable struct for BackendStickTable
type BackendSwitchingRule ¶
type BackendSwitchingRule struct { Cond string `json:"cond,omitempty"` CondTest string `json:"cond_test,omitempty"` Id *int32 `json:"id"` Name string `json:"name"` }
BackendSwitchingRule HAProxy backend switching rule configuration (corresponds to use_backend directive)
type BackendSwitchingRuleApiService ¶
type BackendSwitchingRuleApiService service
BackendSwitchingRuleApiService BackendSwitchingRuleApi service
func (*BackendSwitchingRuleApiService) CreateBackendSwitchingRule ¶
func (a *BackendSwitchingRuleApiService) CreateBackendSwitchingRule(ctx _context.Context, frontend string, backendSwitchingRule BackendSwitchingRule, localVarOptionals *CreateBackendSwitchingRuleOpts) (BackendSwitchingRule, *_nethttp.Response, error)
CreateBackendSwitchingRule Add a new Backend Switching Rule Adds a new Backend Switching Rule of the specified type in the specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param frontend Frontend name
- @param backendSwitchingRule
- @param optional nil or *CreateBackendSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return BackendSwitchingRule
func (*BackendSwitchingRuleApiService) DeleteBackendSwitchingRule ¶
func (a *BackendSwitchingRuleApiService) DeleteBackendSwitchingRule(ctx _context.Context, id int32, frontend string, localVarOptionals *DeleteBackendSwitchingRuleOpts) (*_nethttp.Response, error)
DeleteBackendSwitchingRule Delete a Backend Switching Rule Deletes a Backend Switching Rule configuration by it's ID from the specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Switching Rule ID
- @param frontend Frontend name
- @param optional nil or *DeleteBackendSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*BackendSwitchingRuleApiService) GetBackendSwitchingRule ¶
func (a *BackendSwitchingRuleApiService) GetBackendSwitchingRule(ctx _context.Context, id int32, frontend string, localVarOptionals *GetBackendSwitchingRuleOpts) (InlineResponse20021, *_nethttp.Response, error)
GetBackendSwitchingRule Return one Backend Switching Rule Returns one Backend Switching Rule configuration by it's ID in the specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Switching Rule ID
- @param frontend Frontend name
- @param optional nil or *GetBackendSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20021
func (*BackendSwitchingRuleApiService) GetBackendSwitchingRules ¶
func (a *BackendSwitchingRuleApiService) GetBackendSwitchingRules(ctx _context.Context, frontend string, localVarOptionals *GetBackendSwitchingRulesOpts) (InlineResponse20020, *_nethttp.Response, error)
GetBackendSwitchingRules Return an array of all Backend Switching Rules Returns all Backend Switching Rules that are configured in specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param frontend Frontend name
- @param optional nil or *GetBackendSwitchingRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20020
func (*BackendSwitchingRuleApiService) ReplaceBackendSwitchingRule ¶
func (a *BackendSwitchingRuleApiService) ReplaceBackendSwitchingRule(ctx _context.Context, id int32, frontend string, backendSwitchingRule BackendSwitchingRule, localVarOptionals *ReplaceBackendSwitchingRuleOpts) (BackendSwitchingRule, *_nethttp.Response, error)
ReplaceBackendSwitchingRule Replace a Backend Switching Rule Replaces a Backend Switching Rule configuration by it's ID in the specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Switching Rule ID
- @param frontend Frontend name
- @param backendSwitchingRule
- @param optional nil or *ReplaceBackendSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return BackendSwitchingRule
type Balance ¶
type Balance struct { Algorithm string `json:"algorithm,omitempty"` Arguments []string `json:"arguments,omitempty"` }
Balance struct for Balance
type BasicAuth ¶
type BasicAuth struct { UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` }
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type Bind ¶
type Bind struct { AcceptProxy bool `json:"accept_proxy,omitempty"` Address string `json:"address,omitempty"` Alpn string `json:"alpn,omitempty"` Name string `json:"name"` Port *int32 `json:"port,omitempty"` Process string `json:"process,omitempty"` Ssl bool `json:"ssl,omitempty"` SslCafile string `json:"ssl_cafile,omitempty"` SslCertificate string `json:"ssl_certificate,omitempty"` TcpUserTimeout *int32 `json:"tcp_user_timeout,omitempty"` Transparent bool `json:"transparent,omitempty"` V4v6 bool `json:"v4v6,omitempty"` Verify string `json:"verify,omitempty"` }
Bind HAProxy frontend bind configuration
type BindApiService ¶
type BindApiService service
BindApiService BindApi service
func (*BindApiService) CreateBind ¶
func (a *BindApiService) CreateBind(ctx _context.Context, frontend string, bind Bind, localVarOptionals *CreateBindOpts) (Bind, *_nethttp.Response, error)
CreateBind Add a new bind Adds a new bind in the specified frontend in the configuration file.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param frontend Parent frontend name
- @param bind
- @param optional nil or *CreateBindOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Bind
func (*BindApiService) DeleteBind ¶
func (a *BindApiService) DeleteBind(ctx _context.Context, name string, frontend string, localVarOptionals *DeleteBindOpts) (*_nethttp.Response, error)
DeleteBind Delete a bind Deletes a bind configuration by it's name in the specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Bind name
- @param frontend Parent frontend name
- @param optional nil or *DeleteBindOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*BindApiService) GetBind ¶
func (a *BindApiService) GetBind(ctx _context.Context, name string, frontend string, localVarOptionals *GetBindOpts) (InlineResponse2009, *_nethttp.Response, error)
GetBind Return one bind Returns one bind configuration by it's name in the specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Bind name
- @param frontend Parent frontend name
- @param optional nil or *GetBindOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse2009
func (*BindApiService) GetBinds ¶
func (a *BindApiService) GetBinds(ctx _context.Context, frontend string, localVarOptionals *GetBindsOpts) (InlineResponse2008, *_nethttp.Response, error)
GetBinds Return an array of binds Returns an array of all binds that are configured in specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param frontend Parent frontend name
- @param optional nil or *GetBindsOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse2008
func (*BindApiService) ReplaceBind ¶
func (a *BindApiService) ReplaceBind(ctx _context.Context, name string, frontend string, bind Bind, localVarOptionals *ReplaceBindOpts) (Bind, *_nethttp.Response, error)
ReplaceBind Replace a bind Replaces a bind configuration by it's name in the specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Bind name
- @param frontend Parent frontend name
- @param bind
- @param optional nil or *ReplaceBindOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Bind
type CommitTransactionOpts ¶
CommitTransactionOpts Optional parameters for the method 'CommitTransaction'
type Configuration ¶
type Configuration struct { BasePath string `json:"basePath,omitempty"` Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` Debug bool `json:"debug,omitempty"` HTTPClient *http.Client }
Configuration stores the configuration of the API client
func NewConfiguration ¶
func NewConfiguration() *Configuration
NewConfiguration returns a new Configuration object
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
AddDefaultHeader adds a new HTTP header to the default header in the request
type ConfigurationApiService ¶
type ConfigurationApiService service
ConfigurationApiService ConfigurationApi service
func (*ConfigurationApiService) GetHAProxyConfiguration ¶
func (a *ConfigurationApiService) GetHAProxyConfiguration(ctx _context.Context, localVarOptionals *GetHAProxyConfigurationOpts) (InlineResponse20032, *_nethttp.Response, error)
GetHAProxyConfiguration Return HAProxy configuration Returns HAProxy configuration file in plain text
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *GetHAProxyConfigurationOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
@return InlineResponse20032
func (*ConfigurationApiService) PostHAProxyConfiguration ¶
func (a *ConfigurationApiService) PostHAProxyConfiguration(ctx _context.Context, body string, localVarOptionals *PostHAProxyConfigurationOpts) (string, *_nethttp.Response, error)
PostHAProxyConfiguration Push new haproxy configuration Push a new haproxy configuration file in plain text
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body
- @param optional nil or *PostHAProxyConfigurationOpts - Optional Parameters:
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return string
type CreateAclOpts ¶
type CreateAclOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
CreateAclOpts Optional parameters for the method 'CreateAcl'
type CreateBackendOpts ¶
type CreateBackendOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
CreateBackendOpts Optional parameters for the method 'CreateBackend'
type CreateBackendSwitchingRuleOpts ¶
type CreateBackendSwitchingRuleOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
CreateBackendSwitchingRuleOpts Optional parameters for the method 'CreateBackendSwitchingRule'
type CreateBindOpts ¶
type CreateBindOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
CreateBindOpts Optional parameters for the method 'CreateBind'
type CreateFilterOpts ¶
type CreateFilterOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
CreateFilterOpts Optional parameters for the method 'CreateFilter'
type CreateFrontendOpts ¶
type CreateFrontendOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
CreateFrontendOpts Optional parameters for the method 'CreateFrontend'
type CreateHTTPRequestRuleOpts ¶
type CreateHTTPRequestRuleOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
CreateHTTPRequestRuleOpts Optional parameters for the method 'CreateHTTPRequestRule'
type CreateHTTPResponseRuleOpts ¶
type CreateHTTPResponseRuleOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
CreateHTTPResponseRuleOpts Optional parameters for the method 'CreateHTTPResponseRule'
type CreateLogTargetOpts ¶
type CreateLogTargetOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
CreateLogTargetOpts Optional parameters for the method 'CreateLogTarget'
type CreateServerOpts ¶
type CreateServerOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
CreateServerOpts Optional parameters for the method 'CreateServer'
type CreateServerSwitchingRuleOpts ¶
type CreateServerSwitchingRuleOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
CreateServerSwitchingRuleOpts Optional parameters for the method 'CreateServerSwitchingRule'
type CreateSiteOpts ¶
type CreateSiteOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
CreateSiteOpts Optional parameters for the method 'CreateSite'
type CreateStickRuleOpts ¶
type CreateStickRuleOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
CreateStickRuleOpts Optional parameters for the method 'CreateStickRule'
type CreateTCPRequestRuleOpts ¶
type CreateTCPRequestRuleOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
CreateTCPRequestRuleOpts Optional parameters for the method 'CreateTCPRequestRule'
type CreateTCPResponseRuleOpts ¶
type CreateTCPResponseRuleOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
CreateTCPResponseRuleOpts Optional parameters for the method 'CreateTCPResponseRule'
type DefaultServer ¶
type DefaultServer struct { Fall *int32 `json:"fall,omitempty"` Inter *int32 `json:"inter,omitempty"` Port *int32 `json:"port,omitempty"` Rise *int32 `json:"rise,omitempty"` }
DefaultServer struct for DefaultServer
type Defaults ¶
type Defaults struct { AdvCheck string `json:"adv_check,omitempty"` Balance Balance `json:"balance,omitempty"` CheckTimeout *int32 `json:"check_timeout,omitempty"` Clflog bool `json:"clflog,omitempty"` ClientTimeout *int32 `json:"client_timeout,omitempty"` Clitcpka string `json:"clitcpka,omitempty"` ConnectTimeout *int32 `json:"connect_timeout,omitempty"` Contstats string `json:"contstats,omitempty"` Cookie string `json:"cookie,omitempty"` DefaultBackend string `json:"default_backend,omitempty"` DefaultServer DefaultServer `json:"default_server,omitempty"` Dontlognull string `json:"dontlognull,omitempty"` ErrorFiles []Errorfile `json:"error_files,omitempty"` ExternalCheck string `json:"external_check,omitempty"` ExternalCheckCommand string `json:"external_check_command,omitempty"` ExternalCheckPath string `json:"external_check_path,omitempty"` Forwardfor Forwardfor `json:"forwardfor,omitempty"` HttpUseHtx string `json:"http-use-htx,omitempty"` HttpConnectionMode string `json:"http_connection_mode,omitempty"` HttpKeepAliveTimeout *int32 `json:"http_keep_alive_timeout,omitempty"` HttpPretendKeepalive string `json:"http_pretend_keepalive,omitempty"` HttpRequestTimeout *int32 `json:"http_request_timeout,omitempty"` Httpchk Httpchk `json:"httpchk,omitempty"` Httplog bool `json:"httplog,omitempty"` LogFormat string `json:"log_format,omitempty"` LogFormatSd string `json:"log_format_sd,omitempty"` LogSeparateErrors string `json:"log_separate_errors,omitempty"` LogTag string `json:"log_tag,omitempty"` Maxconn *int32 `json:"maxconn,omitempty"` Mode string `json:"mode,omitempty"` QueueTimeout *int32 `json:"queue_timeout,omitempty"` Redispatch Redispatch `json:"redispatch,omitempty"` Retries *int32 `json:"retries,omitempty"` ServerTimeout *int32 `json:"server_timeout,omitempty"` Tcplog bool `json:"tcplog,omitempty"` }
Defaults HAProxy defaults configuration
type DefaultsApiService ¶
type DefaultsApiService service
DefaultsApiService DefaultsApi service
func (*DefaultsApiService) GetDefaults ¶
func (a *DefaultsApiService) GetDefaults(ctx _context.Context, localVarOptionals *GetDefaultsOpts) (InlineResponse2003, *_nethttp.Response, error)
GetDefaults Return defaults part of configuration Returns defaults part of configuration.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *GetDefaultsOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse2003
func (*DefaultsApiService) ReplaceDefaults ¶
func (a *DefaultsApiService) ReplaceDefaults(ctx _context.Context, defaults Defaults, localVarOptionals *ReplaceDefaultsOpts) (Defaults, *_nethttp.Response, error)
ReplaceDefaults Replace defaults Replace defaults part of config
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param defaults
- @param optional nil or *ReplaceDefaultsOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Defaults
type DeleteAclOpts ¶
type DeleteAclOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
DeleteAclOpts Optional parameters for the method 'DeleteAcl'
type DeleteBackendOpts ¶
type DeleteBackendOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
DeleteBackendOpts Optional parameters for the method 'DeleteBackend'
type DeleteBackendSwitchingRuleOpts ¶
type DeleteBackendSwitchingRuleOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
DeleteBackendSwitchingRuleOpts Optional parameters for the method 'DeleteBackendSwitchingRule'
type DeleteBindOpts ¶
type DeleteBindOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
DeleteBindOpts Optional parameters for the method 'DeleteBind'
type DeleteFilterOpts ¶
type DeleteFilterOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
DeleteFilterOpts Optional parameters for the method 'DeleteFilter'
type DeleteFrontendOpts ¶
type DeleteFrontendOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
DeleteFrontendOpts Optional parameters for the method 'DeleteFrontend'
type DeleteHTTPRequestRuleOpts ¶
type DeleteHTTPRequestRuleOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
DeleteHTTPRequestRuleOpts Optional parameters for the method 'DeleteHTTPRequestRule'
type DeleteHTTPResponseRuleOpts ¶
type DeleteHTTPResponseRuleOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
DeleteHTTPResponseRuleOpts Optional parameters for the method 'DeleteHTTPResponseRule'
type DeleteLogTargetOpts ¶
type DeleteLogTargetOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
DeleteLogTargetOpts Optional parameters for the method 'DeleteLogTarget'
type DeleteServerOpts ¶
type DeleteServerOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
DeleteServerOpts Optional parameters for the method 'DeleteServer'
type DeleteServerSwitchingRuleOpts ¶
type DeleteServerSwitchingRuleOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
DeleteServerSwitchingRuleOpts Optional parameters for the method 'DeleteServerSwitchingRule'
type DeleteSiteOpts ¶
type DeleteSiteOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
DeleteSiteOpts Optional parameters for the method 'DeleteSite'
type DeleteStickRuleOpts ¶
type DeleteStickRuleOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
DeleteStickRuleOpts Optional parameters for the method 'DeleteStickRule'
type DeleteTCPRequestRuleOpts ¶
type DeleteTCPRequestRuleOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
DeleteTCPRequestRuleOpts Optional parameters for the method 'DeleteTCPRequestRule'
type DeleteTCPResponseRuleOpts ¶
type DeleteTCPResponseRuleOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
DeleteTCPResponseRuleOpts Optional parameters for the method 'DeleteTCPResponseRule'
type DiscoveryApiService ¶
type DiscoveryApiService service
DiscoveryApiService DiscoveryApi service
func (*DiscoveryApiService) GetAPIEndpoints ¶
func (a *DiscoveryApiService) GetAPIEndpoints(ctx _context.Context) ([]Endpoint, *_nethttp.Response, error)
GetAPIEndpoints Return list of root endpoints Returns a list of root endpoints.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []Endpoint
func (*DiscoveryApiService) GetConfigurationEndpoints ¶
func (a *DiscoveryApiService) GetConfigurationEndpoints(ctx _context.Context) ([]Endpoint, *_nethttp.Response, error)
GetConfigurationEndpoints Return list of HAProxy advanced configuration endpoints Returns a list of endpoints to be used for advanced configuration of HAProxy objects.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []Endpoint
func (*DiscoveryApiService) GetHaproxyEndpoints ¶
func (a *DiscoveryApiService) GetHaproxyEndpoints(ctx _context.Context) ([]Endpoint, *_nethttp.Response, error)
GetHaproxyEndpoints Return list of HAProxy related endpoints Returns a list of HAProxy related endpoints.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []Endpoint
func (*DiscoveryApiService) GetServicesEndpoints ¶
func (a *DiscoveryApiService) GetServicesEndpoints(ctx _context.Context) ([]Endpoint, *_nethttp.Response, error)
GetServicesEndpoints Return list of service endpoints Returns a list of API managed services endpoints.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []Endpoint
func (*DiscoveryApiService) GetStatsEndpoints ¶
func (a *DiscoveryApiService) GetStatsEndpoints(ctx _context.Context) ([]Endpoint, *_nethttp.Response, error)
GetStatsEndpoints Return list of HAProxy stats endpoints Returns a list of HAProxy stats endpoints.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []Endpoint
type Endpoint ¶
type Endpoint struct { // Endpoint description Description string `json:"description,omitempty"` // Endpoint title Title string `json:"title,omitempty"` // Path to the endpoint Url string `json:"url,omitempty"` }
Endpoint Endpoint definition
type Filter ¶
type Filter struct { CacheName string `json:"cache_name,omitempty"` Id *int32 `json:"id"` SpoeConfig string `json:"spoe_config,omitempty"` SpoeEngine string `json:"spoe_engine,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 string `json:"type"` }
Filter HAProxy filters
type FilterApiService ¶
type FilterApiService service
FilterApiService FilterApi service
func (*FilterApiService) CreateFilter ¶
func (a *FilterApiService) CreateFilter(ctx _context.Context, parentName string, parentType string, filter Filter, localVarOptionals *CreateFilterOpts) (Filter, *_nethttp.Response, error)
CreateFilter Add a new Filter Adds a new Filter of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param filter
- @param optional nil or *CreateFilterOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Filter
func (*FilterApiService) DeleteFilter ¶
func (a *FilterApiService) DeleteFilter(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteFilterOpts) (*_nethttp.Response, error)
DeleteFilter Delete a Filter Deletes a Filter configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Filter ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteFilterOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*FilterApiService) GetFilter ¶
func (a *FilterApiService) GetFilter(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetFilterOpts) (InlineResponse20025, *_nethttp.Response, error)
GetFilter Return one Filter Returns one Filter configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Filter ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetFilterOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20025
func (*FilterApiService) GetFilters ¶
func (a *FilterApiService) GetFilters(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetFiltersOpts) (InlineResponse20024, *_nethttp.Response, error)
GetFilters Return an array of all Filters Returns all Filters that are configured in specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetFiltersOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20024
func (*FilterApiService) ReplaceFilter ¶
func (a *FilterApiService) ReplaceFilter(ctx _context.Context, id int32, parentName string, parentType string, filter Filter, localVarOptionals *ReplaceFilterOpts) (Filter, *_nethttp.Response, error)
ReplaceFilter Replace a Filter Replaces a Filter configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Filter ID
- @param parentName Parent name
- @param parentType Parent type
- @param filter
- @param optional nil or *ReplaceFilterOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Filter
type Forwardfor ¶
type Forwardfor struct { Enabled string `json:"enabled"` Except string `json:"except,omitempty"` Header string `json:"header,omitempty"` Ifnone bool `json:"ifnone,omitempty"` }
Forwardfor struct for Forwardfor
type Frontend ¶
type Frontend struct { Clflog bool `json:"clflog,omitempty"` ClientTimeout *int32 `json:"client_timeout,omitempty"` Clitcpka string `json:"clitcpka,omitempty"` Contstats string `json:"contstats,omitempty"` DefaultBackend string `json:"default_backend,omitempty"` Dontlognull string `json:"dontlognull,omitempty"` Forwardfor *Forwardfor `json:"forwardfor,omitempty"` HttpUseHtx string `json:"http-use-htx,omitempty"` HttpConnectionMode string `json:"http_connection_mode,omitempty"` HttpKeepAliveTimeout *int32 `json:"http_keep_alive_timeout,omitempty"` HttpRequestTimeout *int32 `json:"http_request_timeout,omitempty"` Httplog bool `json:"httplog,omitempty"` LogFormat string `json:"log_format,omitempty"` LogFormatSd string `json:"log_format_sd,omitempty"` LogSeparateErrors string `json:"log_separate_errors,omitempty"` LogTag string `json:"log_tag,omitempty"` Maxconn *int32 `json:"maxconn,omitempty"` Mode string `json:"mode,omitempty"` Name string `json:"name"` Tcplog bool `json:"tcplog,omitempty"` }
Frontend HAProxy frontend configuration
type FrontendApiService ¶
type FrontendApiService service
FrontendApiService FrontendApi service
func (*FrontendApiService) CreateFrontend ¶
func (a *FrontendApiService) CreateFrontend(ctx _context.Context, frontend Frontend, localVarOptionals *CreateFrontendOpts) (Frontend, *_nethttp.Response, error)
CreateFrontend Add a frontend Adds a new frontend to the configuration file.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param frontend
- @param optional nil or *CreateFrontendOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Frontend
func (*FrontendApiService) DeleteFrontend ¶
func (a *FrontendApiService) DeleteFrontend(ctx _context.Context, name string, localVarOptionals *DeleteFrontendOpts) (*_nethttp.Response, error)
DeleteFrontend Delete a frontend Deletes a frontend from the configuration by it's name.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Frontend name
- @param optional nil or *DeleteFrontendOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*FrontendApiService) GetFrontend ¶
func (a *FrontendApiService) GetFrontend(ctx _context.Context, name string, localVarOptionals *GetFrontendOpts) (InlineResponse2005, *_nethttp.Response, error)
GetFrontend Return a frontend Returns one frontend configuration by it's name.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Frontend name
- @param optional nil or *GetFrontendOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse2005
func (*FrontendApiService) GetFrontends ¶
func (a *FrontendApiService) GetFrontends(ctx _context.Context, localVarOptionals *GetFrontendsOpts) (InlineResponse2004, *_nethttp.Response, error)
GetFrontends Return an array of frontends Returns an array of all configured frontends.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *GetFrontendsOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse2004
func (*FrontendApiService) ReplaceFrontend ¶
func (a *FrontendApiService) ReplaceFrontend(ctx _context.Context, name string, frontend Frontend, localVarOptionals *ReplaceFrontendOpts) (Frontend, *_nethttp.Response, error)
ReplaceFrontend Replace a frontend Replaces a frontend configuration by it's name.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Frontend name
- @param frontend
- @param optional nil or *ReplaceFrontendOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Frontend
type FrontendOptionsApiService ¶
type FrontendOptionsApiService service
FrontendOptionsApiService FrontendOptionsApi service
func (*FrontendOptionsApiService) CreateAcl ¶
func (a *FrontendOptionsApiService) CreateAcl(ctx _context.Context, parentName string, parentType string, acl Acl, localVarOptionals *CreateAclOpts) (Acl, *_nethttp.Response, error)
CreateAcl Add a new ACL line Adds a new ACL line of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param acl
- @param optional nil or *CreateAclOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Acl
func (*FrontendOptionsApiService) CreateBackendSwitchingRule ¶
func (a *FrontendOptionsApiService) CreateBackendSwitchingRule(ctx _context.Context, frontend string, backendSwitchingRule BackendSwitchingRule, localVarOptionals *CreateBackendSwitchingRuleOpts) (BackendSwitchingRule, *_nethttp.Response, error)
CreateBackendSwitchingRule Add a new Backend Switching Rule Adds a new Backend Switching Rule of the specified type in the specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param frontend Frontend name
- @param backendSwitchingRule
- @param optional nil or *CreateBackendSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return BackendSwitchingRule
func (*FrontendOptionsApiService) CreateBind ¶
func (a *FrontendOptionsApiService) CreateBind(ctx _context.Context, frontend string, bind Bind, localVarOptionals *CreateBindOpts) (Bind, *_nethttp.Response, error)
CreateBind Add a new bind Adds a new bind in the specified frontend in the configuration file.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param frontend Parent frontend name
- @param bind
- @param optional nil or *CreateBindOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Bind
func (*FrontendOptionsApiService) CreateFilter ¶
func (a *FrontendOptionsApiService) CreateFilter(ctx _context.Context, parentName string, parentType string, filter Filter, localVarOptionals *CreateFilterOpts) (Filter, *_nethttp.Response, error)
CreateFilter Add a new Filter Adds a new Filter of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param filter
- @param optional nil or *CreateFilterOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Filter
func (*FrontendOptionsApiService) CreateHTTPRequestRule ¶
func (a *FrontendOptionsApiService) CreateHTTPRequestRule(ctx _context.Context, parentName string, parentType string, httpRequestRule HttpRequestRule, localVarOptionals *CreateHTTPRequestRuleOpts) (HttpRequestRule, *_nethttp.Response, error)
CreateHTTPRequestRule Add a new HTTP Request Rule Adds a new HTTP Request Rule of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param httpRequestRule
- @param optional nil or *CreateHTTPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return HttpRequestRule
func (*FrontendOptionsApiService) CreateHTTPResponseRule ¶
func (a *FrontendOptionsApiService) CreateHTTPResponseRule(ctx _context.Context, parentName string, parentType string, httpResponseRule HttpResponseRule, localVarOptionals *CreateHTTPResponseRuleOpts) (HttpResponseRule, *_nethttp.Response, error)
CreateHTTPResponseRule Add a new HTTP Response Rule Adds a new HTTP Response Rule of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param httpResponseRule
- @param optional nil or *CreateHTTPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return HttpResponseRule
func (*FrontendOptionsApiService) CreateLogTarget ¶
func (a *FrontendOptionsApiService) CreateLogTarget(ctx _context.Context, parentName string, parentType string, logTarget LogTarget, localVarOptionals *CreateLogTargetOpts) (LogTarget, *_nethttp.Response, error)
CreateLogTarget Add a new Log Target Adds a new Log Target of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param logTarget
- @param optional nil or *CreateLogTargetOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return LogTarget
func (*FrontendOptionsApiService) CreateTCPRequestRule ¶
func (a *FrontendOptionsApiService) CreateTCPRequestRule(ctx _context.Context, parentName string, parentType string, tcpRequestRule TcpRequestRule, localVarOptionals *CreateTCPRequestRuleOpts) (TcpRequestRule, *_nethttp.Response, error)
CreateTCPRequestRule Add a new TCP Request Rule Adds a new TCP Request Rule of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param tcpRequestRule
- @param optional nil or *CreateTCPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return TcpRequestRule
func (*FrontendOptionsApiService) CreateTCPResponseRule ¶
func (a *FrontendOptionsApiService) CreateTCPResponseRule(ctx _context.Context, backend string, tcpResponseRule TcpResponseRule, localVarOptionals *CreateTCPResponseRuleOpts) (TcpResponseRule, *_nethttp.Response, error)
CreateTCPResponseRule Add a new TCP Response Rule Adds a new TCP Response Rule of the specified type in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Parent backend name
- @param tcpResponseRule
- @param optional nil or *CreateTCPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return TcpResponseRule
func (*FrontendOptionsApiService) DeleteAcl ¶
func (a *FrontendOptionsApiService) DeleteAcl(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteAclOpts) (*_nethttp.Response, error)
DeleteAcl Delete a ACL line Deletes a ACL line configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ACL line ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteAclOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*FrontendOptionsApiService) DeleteBackendSwitchingRule ¶
func (a *FrontendOptionsApiService) DeleteBackendSwitchingRule(ctx _context.Context, id int32, frontend string, localVarOptionals *DeleteBackendSwitchingRuleOpts) (*_nethttp.Response, error)
DeleteBackendSwitchingRule Delete a Backend Switching Rule Deletes a Backend Switching Rule configuration by it's ID from the specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Switching Rule ID
- @param frontend Frontend name
- @param optional nil or *DeleteBackendSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*FrontendOptionsApiService) DeleteBind ¶
func (a *FrontendOptionsApiService) DeleteBind(ctx _context.Context, name string, frontend string, localVarOptionals *DeleteBindOpts) (*_nethttp.Response, error)
DeleteBind Delete a bind Deletes a bind configuration by it's name in the specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Bind name
- @param frontend Parent frontend name
- @param optional nil or *DeleteBindOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*FrontendOptionsApiService) DeleteFilter ¶
func (a *FrontendOptionsApiService) DeleteFilter(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteFilterOpts) (*_nethttp.Response, error)
DeleteFilter Delete a Filter Deletes a Filter configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Filter ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteFilterOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*FrontendOptionsApiService) DeleteHTTPRequestRule ¶
func (a *FrontendOptionsApiService) DeleteHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteHTTPRequestRuleOpts) (*_nethttp.Response, error)
DeleteHTTPRequestRule Delete a HTTP Request Rule Deletes a HTTP Request Rule configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteHTTPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*FrontendOptionsApiService) DeleteHTTPResponseRule ¶
func (a *FrontendOptionsApiService) DeleteHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteHTTPResponseRuleOpts) (*_nethttp.Response, error)
DeleteHTTPResponseRule Delete a HTTP Response Rule Deletes a HTTP Response Rule configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Response Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteHTTPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*FrontendOptionsApiService) DeleteLogTarget ¶
func (a *FrontendOptionsApiService) DeleteLogTarget(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteLogTargetOpts) (*_nethttp.Response, error)
DeleteLogTarget Delete a Log Target Deletes a Log Target configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Log Target ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteLogTargetOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*FrontendOptionsApiService) DeleteTCPRequestRule ¶
func (a *FrontendOptionsApiService) DeleteTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteTCPRequestRuleOpts) (*_nethttp.Response, error)
DeleteTCPRequestRule Delete a TCP Request Rule Deletes a TCP Request Rule configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteTCPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*FrontendOptionsApiService) DeleteTCPResponseRule ¶
func (a *FrontendOptionsApiService) DeleteTCPResponseRule(ctx _context.Context, id int32, backend string, localVarOptionals *DeleteTCPResponseRuleOpts) (*_nethttp.Response, error)
DeleteTCPResponseRule Delete a TCP Response Rule Deletes a TCP Response Rule configuration by it's ID from the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Response Rule ID
- @param backend Parent backend name
- @param optional nil or *DeleteTCPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*FrontendOptionsApiService) GetAcl ¶
func (a *FrontendOptionsApiService) GetAcl(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetAclOpts) (InlineResponse20031, *_nethttp.Response, error)
GetAcl Return one ACL line Returns one ACL line configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ACL line ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetAclOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20031
func (*FrontendOptionsApiService) GetAcls ¶
func (a *FrontendOptionsApiService) GetAcls(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetAclsOpts) (InlineResponse20030, *_nethttp.Response, error)
GetAcls Return an array of all ACL lines Returns all ACL lines that are configured in specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetAclsOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20030
func (*FrontendOptionsApiService) GetBackendSwitchingRule ¶
func (a *FrontendOptionsApiService) GetBackendSwitchingRule(ctx _context.Context, id int32, frontend string, localVarOptionals *GetBackendSwitchingRuleOpts) (InlineResponse20021, *_nethttp.Response, error)
GetBackendSwitchingRule Return one Backend Switching Rule Returns one Backend Switching Rule configuration by it's ID in the specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Switching Rule ID
- @param frontend Frontend name
- @param optional nil or *GetBackendSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20021
func (*FrontendOptionsApiService) GetBackendSwitchingRules ¶
func (a *FrontendOptionsApiService) GetBackendSwitchingRules(ctx _context.Context, frontend string, localVarOptionals *GetBackendSwitchingRulesOpts) (InlineResponse20020, *_nethttp.Response, error)
GetBackendSwitchingRules Return an array of all Backend Switching Rules Returns all Backend Switching Rules that are configured in specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param frontend Frontend name
- @param optional nil or *GetBackendSwitchingRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20020
func (*FrontendOptionsApiService) GetBind ¶
func (a *FrontendOptionsApiService) GetBind(ctx _context.Context, name string, frontend string, localVarOptionals *GetBindOpts) (InlineResponse2009, *_nethttp.Response, error)
GetBind Return one bind Returns one bind configuration by it's name in the specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Bind name
- @param frontend Parent frontend name
- @param optional nil or *GetBindOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse2009
func (*FrontendOptionsApiService) GetBinds ¶
func (a *FrontendOptionsApiService) GetBinds(ctx _context.Context, frontend string, localVarOptionals *GetBindsOpts) (InlineResponse2008, *_nethttp.Response, error)
GetBinds Return an array of binds Returns an array of all binds that are configured in specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param frontend Parent frontend name
- @param optional nil or *GetBindsOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse2008
func (*FrontendOptionsApiService) GetFilter ¶
func (a *FrontendOptionsApiService) GetFilter(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetFilterOpts) (InlineResponse20025, *_nethttp.Response, error)
GetFilter Return one Filter Returns one Filter configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Filter ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetFilterOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20025
func (*FrontendOptionsApiService) GetFilters ¶
func (a *FrontendOptionsApiService) GetFilters(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetFiltersOpts) (InlineResponse20024, *_nethttp.Response, error)
GetFilters Return an array of all Filters Returns all Filters that are configured in specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetFiltersOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20024
func (*FrontendOptionsApiService) GetHTTPRequestRule ¶
func (a *FrontendOptionsApiService) GetHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetHTTPRequestRuleOpts) (InlineResponse20013, *_nethttp.Response, error)
GetHTTPRequestRule Return one HTTP Request Rule Returns one HTTP Request Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetHTTPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20013
func (*FrontendOptionsApiService) GetHTTPRequestRules ¶
func (a *FrontendOptionsApiService) GetHTTPRequestRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetHTTPRequestRulesOpts) (InlineResponse20012, *_nethttp.Response, error)
GetHTTPRequestRules Return an array of all HTTP Request Rules Returns all HTTP Request Rules that are configured in specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetHTTPRequestRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20012
func (*FrontendOptionsApiService) GetHTTPResponseRule ¶
func (a *FrontendOptionsApiService) GetHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetHTTPResponseRuleOpts) (InlineResponse20015, *_nethttp.Response, error)
GetHTTPResponseRule Return one HTTP Response Rule Returns one HTTP Response Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Response Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetHTTPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20015
func (*FrontendOptionsApiService) GetHTTPResponseRules ¶
func (a *FrontendOptionsApiService) GetHTTPResponseRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetHTTPResponseRulesOpts) (InlineResponse20014, *_nethttp.Response, error)
GetHTTPResponseRules Return an array of all HTTP Response Rules Returns all HTTP Response Rules that are configured in specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetHTTPResponseRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20014
func (*FrontendOptionsApiService) GetLogTarget ¶
func (a *FrontendOptionsApiService) GetLogTarget(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetLogTargetOpts) (InlineResponse20029, *_nethttp.Response, error)
GetLogTarget Return one Log Target Returns one Log Target configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Log Target ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetLogTargetOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20029
func (*FrontendOptionsApiService) GetLogTargets ¶
func (a *FrontendOptionsApiService) GetLogTargets(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetLogTargetsOpts) (InlineResponse20028, *_nethttp.Response, error)
GetLogTargets Return an array of all Log Targets Returns all Log Targets that are configured in specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetLogTargetsOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20028
func (*FrontendOptionsApiService) GetTCPRequestRule ¶
func (a *FrontendOptionsApiService) GetTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetTCPRequestRuleOpts) (InlineResponse20017, *_nethttp.Response, error)
GetTCPRequestRule Return one TCP Request Rule Returns one TCP Request Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetTCPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20017
func (*FrontendOptionsApiService) GetTCPRequestRules ¶
func (a *FrontendOptionsApiService) GetTCPRequestRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetTCPRequestRulesOpts) (InlineResponse20016, *_nethttp.Response, error)
GetTCPRequestRules Return an array of all TCP Request Rules Returns all TCP Request Rules that are configured in specified parent and parent type.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetTCPRequestRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20016
func (*FrontendOptionsApiService) GetTCPResponseRule ¶
func (a *FrontendOptionsApiService) GetTCPResponseRule(ctx _context.Context, id int32, backend string, localVarOptionals *GetTCPResponseRuleOpts) (InlineResponse20019, *_nethttp.Response, error)
GetTCPResponseRule Return one TCP Response Rule Returns one TCP Response Rule configuration by it's ID in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Response Rule ID
- @param backend Parent backend name
- @param optional nil or *GetTCPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20019
func (*FrontendOptionsApiService) GetTCPResponseRules ¶
func (a *FrontendOptionsApiService) GetTCPResponseRules(ctx _context.Context, backend string, localVarOptionals *GetTCPResponseRulesOpts) (InlineResponse20018, *_nethttp.Response, error)
GetTCPResponseRules Return an array of all TCP Response Rules Returns all TCP Response Rules that are configured in specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Parent backend name
- @param optional nil or *GetTCPResponseRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20018
func (*FrontendOptionsApiService) ReplaceAcl ¶
func (a *FrontendOptionsApiService) ReplaceAcl(ctx _context.Context, id int32, parentName string, parentType string, acl Acl, localVarOptionals *ReplaceAclOpts) (Acl, *_nethttp.Response, error)
ReplaceAcl Replace a ACL line Replaces a ACL line configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ACL line ID
- @param parentName Parent name
- @param parentType Parent type
- @param acl
- @param optional nil or *ReplaceAclOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Acl
func (*FrontendOptionsApiService) ReplaceBackendSwitchingRule ¶
func (a *FrontendOptionsApiService) ReplaceBackendSwitchingRule(ctx _context.Context, id int32, frontend string, backendSwitchingRule BackendSwitchingRule, localVarOptionals *ReplaceBackendSwitchingRuleOpts) (BackendSwitchingRule, *_nethttp.Response, error)
ReplaceBackendSwitchingRule Replace a Backend Switching Rule Replaces a Backend Switching Rule configuration by it's ID in the specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Switching Rule ID
- @param frontend Frontend name
- @param backendSwitchingRule
- @param optional nil or *ReplaceBackendSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return BackendSwitchingRule
func (*FrontendOptionsApiService) ReplaceBind ¶
func (a *FrontendOptionsApiService) ReplaceBind(ctx _context.Context, name string, frontend string, bind Bind, localVarOptionals *ReplaceBindOpts) (Bind, *_nethttp.Response, error)
ReplaceBind Replace a bind Replaces a bind configuration by it's name in the specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Bind name
- @param frontend Parent frontend name
- @param bind
- @param optional nil or *ReplaceBindOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Bind
func (*FrontendOptionsApiService) ReplaceFilter ¶
func (a *FrontendOptionsApiService) ReplaceFilter(ctx _context.Context, id int32, parentName string, parentType string, filter Filter, localVarOptionals *ReplaceFilterOpts) (Filter, *_nethttp.Response, error)
ReplaceFilter Replace a Filter Replaces a Filter configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Filter ID
- @param parentName Parent name
- @param parentType Parent type
- @param filter
- @param optional nil or *ReplaceFilterOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Filter
func (*FrontendOptionsApiService) ReplaceHTTPRequestRule ¶
func (a *FrontendOptionsApiService) ReplaceHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, httpRequestRule HttpRequestRule, localVarOptionals *ReplaceHTTPRequestRuleOpts) (HttpRequestRule, *_nethttp.Response, error)
ReplaceHTTPRequestRule Replace a HTTP Request Rule Replaces a HTTP Request Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param httpRequestRule
- @param optional nil or *ReplaceHTTPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return HttpRequestRule
func (*FrontendOptionsApiService) ReplaceHTTPResponseRule ¶
func (a *FrontendOptionsApiService) ReplaceHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, httpResponseRule HttpResponseRule, localVarOptionals *ReplaceHTTPResponseRuleOpts) (HttpResponseRule, *_nethttp.Response, error)
ReplaceHTTPResponseRule Replace a HTTP Response Rule Replaces a HTTP Response Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Response Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param httpResponseRule
- @param optional nil or *ReplaceHTTPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return HttpResponseRule
func (*FrontendOptionsApiService) ReplaceLogTarget ¶
func (a *FrontendOptionsApiService) ReplaceLogTarget(ctx _context.Context, id int32, parentName string, parentType string, logTarget LogTarget, localVarOptionals *ReplaceLogTargetOpts) (LogTarget, *_nethttp.Response, error)
ReplaceLogTarget Replace a Log Target Replaces a Log Target configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Log Target ID
- @param parentName Parent name
- @param parentType Parent type
- @param logTarget
- @param optional nil or *ReplaceLogTargetOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return LogTarget
func (*FrontendOptionsApiService) ReplaceTCPRequestRule ¶
func (a *FrontendOptionsApiService) ReplaceTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, tcpRequestRule TcpRequestRule, localVarOptionals *ReplaceTCPRequestRuleOpts) (TcpRequestRule, *_nethttp.Response, error)
ReplaceTCPRequestRule Replace a TCP Request Rule Replaces a TCP Request Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param tcpRequestRule
- @param optional nil or *ReplaceTCPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return TcpRequestRule
func (*FrontendOptionsApiService) ReplaceTCPResponseRule ¶
func (a *FrontendOptionsApiService) ReplaceTCPResponseRule(ctx _context.Context, id int32, backend string, tcpResponseRule TcpResponseRule, localVarOptionals *ReplaceTCPResponseRuleOpts) (TcpResponseRule, *_nethttp.Response, error)
ReplaceTCPResponseRule Replace a TCP Response Rule Replaces a TCP Response Rule configuration by it's ID in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Response Rule ID
- @param backend Parent backend name
- @param tcpResponseRule
- @param optional nil or *ReplaceTCPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return TcpResponseRule
type GenericOpenAPIError ¶
type GenericOpenAPIError struct {
// contains filtered or unexported fields
}
GenericOpenAPIError Provides access to the body, error and model on returned errors.
func (GenericOpenAPIError) Body ¶
func (e GenericOpenAPIError) Body() []byte
Body returns the raw bytes of the response
func (GenericOpenAPIError) Error ¶
func (e GenericOpenAPIError) Error() string
Error returns non-empty string if there was an error.
func (GenericOpenAPIError) Model ¶
func (e GenericOpenAPIError) Model() interface{}
Model returns the unpacked model of the error
type GetAclOpts ¶
GetAclOpts Optional parameters for the method 'GetAcl'
type GetAclsOpts ¶
GetAclsOpts Optional parameters for the method 'GetAcls'
type GetBackendOpts ¶
GetBackendOpts Optional parameters for the method 'GetBackend'
type GetBackendSwitchingRuleOpts ¶
GetBackendSwitchingRuleOpts Optional parameters for the method 'GetBackendSwitchingRule'
type GetBackendSwitchingRulesOpts ¶
GetBackendSwitchingRulesOpts Optional parameters for the method 'GetBackendSwitchingRules'
type GetBackendsOpts ¶
GetBackendsOpts Optional parameters for the method 'GetBackends'
type GetBindOpts ¶
GetBindOpts Optional parameters for the method 'GetBind'
type GetBindsOpts ¶
GetBindsOpts Optional parameters for the method 'GetBinds'
type GetDefaultsOpts ¶
GetDefaultsOpts Optional parameters for the method 'GetDefaults'
type GetFilterOpts ¶
GetFilterOpts Optional parameters for the method 'GetFilter'
type GetFiltersOpts ¶
GetFiltersOpts Optional parameters for the method 'GetFilters'
type GetFrontendOpts ¶
GetFrontendOpts Optional parameters for the method 'GetFrontend'
type GetFrontendsOpts ¶
GetFrontendsOpts Optional parameters for the method 'GetFrontends'
type GetGlobalOpts ¶
GetGlobalOpts Optional parameters for the method 'GetGlobal'
type GetHAProxyConfigurationOpts ¶
GetHAProxyConfigurationOpts Optional parameters for the method 'GetHAProxyConfiguration'
type GetHTTPRequestRuleOpts ¶
GetHTTPRequestRuleOpts Optional parameters for the method 'GetHTTPRequestRule'
type GetHTTPRequestRulesOpts ¶
GetHTTPRequestRulesOpts Optional parameters for the method 'GetHTTPRequestRules'
type GetHTTPResponseRuleOpts ¶
GetHTTPResponseRuleOpts Optional parameters for the method 'GetHTTPResponseRule'
type GetHTTPResponseRulesOpts ¶
GetHTTPResponseRulesOpts Optional parameters for the method 'GetHTTPResponseRules'
type GetLogTargetOpts ¶
GetLogTargetOpts Optional parameters for the method 'GetLogTarget'
type GetLogTargetsOpts ¶
GetLogTargetsOpts Optional parameters for the method 'GetLogTargets'
type GetServerOpts ¶
GetServerOpts Optional parameters for the method 'GetServer'
type GetServerSwitchingRuleOpts ¶
GetServerSwitchingRuleOpts Optional parameters for the method 'GetServerSwitchingRule'
type GetServerSwitchingRulesOpts ¶
GetServerSwitchingRulesOpts Optional parameters for the method 'GetServerSwitchingRules'
type GetServersOpts ¶
GetServersOpts Optional parameters for the method 'GetServers'
type GetSiteOpts ¶
GetSiteOpts Optional parameters for the method 'GetSite'
type GetSitesOpts ¶
GetSitesOpts Optional parameters for the method 'GetSites'
type GetStatsOpts ¶
GetStatsOpts Optional parameters for the method 'GetStats'
type GetStickRuleOpts ¶
GetStickRuleOpts Optional parameters for the method 'GetStickRule'
type GetStickRulesOpts ¶
GetStickRulesOpts Optional parameters for the method 'GetStickRules'
type GetTCPRequestRuleOpts ¶
GetTCPRequestRuleOpts Optional parameters for the method 'GetTCPRequestRule'
type GetTCPRequestRulesOpts ¶
GetTCPRequestRulesOpts Optional parameters for the method 'GetTCPRequestRules'
type GetTCPResponseRuleOpts ¶
GetTCPResponseRuleOpts Optional parameters for the method 'GetTCPResponseRule'
type GetTCPResponseRulesOpts ¶
GetTCPResponseRulesOpts Optional parameters for the method 'GetTCPResponseRules'
type GetTransactionsOpts ¶
GetTransactionsOpts Optional parameters for the method 'GetTransactions'
type Global ¶
type Global struct { CpuMaps []GlobalCpuMaps `json:"cpu_maps,omitempty"` Daemon string `json:"daemon,omitempty"` ExternalCheck bool `json:"external_check,omitempty"` MasterWorker bool `json:"master-worker,omitempty"` Maxconn int32 `json:"maxconn,omitempty"` Nbproc int32 `json:"nbproc,omitempty"` Nbthread int32 `json:"nbthread,omitempty"` Pidfile string `json:"pidfile,omitempty"` RuntimeApis []GlobalRuntimeApis `json:"runtime_apis,omitempty"` SslDefaultBindCiphers string `json:"ssl_default_bind_ciphers,omitempty"` SslDefaultBindOptions string `json:"ssl_default_bind_options,omitempty"` StatsTimeout *int32 `json:"stats_timeout,omitempty"` TuneSslDefaultDhParam int32 `json:"tune_ssl_default_dh_param,omitempty"` }
Global HAProxy global configuration
type GlobalApiService ¶
type GlobalApiService service
GlobalApiService GlobalApi service
func (*GlobalApiService) GetGlobal ¶
func (a *GlobalApiService) GetGlobal(ctx _context.Context, localVarOptionals *GetGlobalOpts) (InlineResponse2002, *_nethttp.Response, error)
GetGlobal Return a global part of configuration Returns global part of configuration.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *GetGlobalOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse2002
func (*GlobalApiService) ReplaceGlobal ¶
func (a *GlobalApiService) ReplaceGlobal(ctx _context.Context, global Global, localVarOptionals *ReplaceGlobalOpts) (Global, *_nethttp.Response, error)
ReplaceGlobal Replace global Replace global part of config
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param global
- @param optional nil or *ReplaceGlobalOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Global
type GlobalCpuMaps ¶
GlobalCpuMaps struct for GlobalCpuMaps
type GlobalRuntimeApis ¶
type GlobalRuntimeApis struct { Address string `json:"address"` ExposeFdListeners bool `json:"exposeFdListeners,omitempty"` Level string `json:"level,omitempty"` Mode string `json:"mode,omitempty"` Process string `json:"process,omitempty"` }
GlobalRuntimeApis struct for GlobalRuntimeApis
type HAProxyConfigurationManagementApiService ¶
type HAProxyConfigurationManagementApiService service
HAProxyConfigurationManagementApiService HAProxyConfigurationManagementApi service
func (*HAProxyConfigurationManagementApiService) CreateAcl ¶
func (a *HAProxyConfigurationManagementApiService) CreateAcl(ctx _context.Context, parentName string, parentType string, acl Acl, localVarOptionals *CreateAclOpts) (Acl, *_nethttp.Response, error)
CreateAcl Add a new ACL line Adds a new ACL line of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param acl
- @param optional nil or *CreateAclOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Acl
func (*HAProxyConfigurationManagementApiService) CreateBackend ¶
func (a *HAProxyConfigurationManagementApiService) CreateBackend(ctx _context.Context, backend Backend, localVarOptionals *CreateBackendOpts) (Backend, *_nethttp.Response, error)
CreateBackend Add a backend Adds a new backend to the configuration file.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend
- @param optional nil or *CreateBackendOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Backend
func (*HAProxyConfigurationManagementApiService) CreateBackendSwitchingRule ¶
func (a *HAProxyConfigurationManagementApiService) CreateBackendSwitchingRule(ctx _context.Context, frontend string, backendSwitchingRule BackendSwitchingRule, localVarOptionals *CreateBackendSwitchingRuleOpts) (BackendSwitchingRule, *_nethttp.Response, error)
CreateBackendSwitchingRule Add a new Backend Switching Rule Adds a new Backend Switching Rule of the specified type in the specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param frontend Frontend name
- @param backendSwitchingRule
- @param optional nil or *CreateBackendSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return BackendSwitchingRule
func (*HAProxyConfigurationManagementApiService) CreateBind ¶
func (a *HAProxyConfigurationManagementApiService) CreateBind(ctx _context.Context, frontend string, bind Bind, localVarOptionals *CreateBindOpts) (Bind, *_nethttp.Response, error)
CreateBind Add a new bind Adds a new bind in the specified frontend in the configuration file.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param frontend Parent frontend name
- @param bind
- @param optional nil or *CreateBindOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Bind
func (*HAProxyConfigurationManagementApiService) CreateFilter ¶
func (a *HAProxyConfigurationManagementApiService) CreateFilter(ctx _context.Context, parentName string, parentType string, filter Filter, localVarOptionals *CreateFilterOpts) (Filter, *_nethttp.Response, error)
CreateFilter Add a new Filter Adds a new Filter of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param filter
- @param optional nil or *CreateFilterOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Filter
func (*HAProxyConfigurationManagementApiService) CreateFrontend ¶
func (a *HAProxyConfigurationManagementApiService) CreateFrontend(ctx _context.Context, frontend Frontend, localVarOptionals *CreateFrontendOpts) (Frontend, *_nethttp.Response, error)
CreateFrontend Add a frontend Adds a new frontend to the configuration file.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param frontend
- @param optional nil or *CreateFrontendOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Frontend
func (*HAProxyConfigurationManagementApiService) CreateHTTPRequestRule ¶
func (a *HAProxyConfigurationManagementApiService) CreateHTTPRequestRule(ctx _context.Context, parentName string, parentType string, httpRequestRule HttpRequestRule, localVarOptionals *CreateHTTPRequestRuleOpts) (HttpRequestRule, *_nethttp.Response, error)
CreateHTTPRequestRule Add a new HTTP Request Rule Adds a new HTTP Request Rule of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param httpRequestRule
- @param optional nil or *CreateHTTPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return HttpRequestRule
func (*HAProxyConfigurationManagementApiService) CreateHTTPResponseRule ¶
func (a *HAProxyConfigurationManagementApiService) CreateHTTPResponseRule(ctx _context.Context, parentName string, parentType string, httpResponseRule HttpResponseRule, localVarOptionals *CreateHTTPResponseRuleOpts) (HttpResponseRule, *_nethttp.Response, error)
CreateHTTPResponseRule Add a new HTTP Response Rule Adds a new HTTP Response Rule of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param httpResponseRule
- @param optional nil or *CreateHTTPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return HttpResponseRule
func (*HAProxyConfigurationManagementApiService) CreateLogTarget ¶
func (a *HAProxyConfigurationManagementApiService) CreateLogTarget(ctx _context.Context, parentName string, parentType string, logTarget LogTarget, localVarOptionals *CreateLogTargetOpts) (LogTarget, *_nethttp.Response, error)
CreateLogTarget Add a new Log Target Adds a new Log Target of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param logTarget
- @param optional nil or *CreateLogTargetOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return LogTarget
func (*HAProxyConfigurationManagementApiService) CreateServer ¶
func (a *HAProxyConfigurationManagementApiService) CreateServer(ctx _context.Context, backend string, server Server, localVarOptionals *CreateServerOpts) (Server, *_nethttp.Response, error)
CreateServer Add a new server Adds a new server in the specified backend in the configuration file.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Parent backend name
- @param server
- @param optional nil or *CreateServerOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Server
func (*HAProxyConfigurationManagementApiService) CreateServerSwitchingRule ¶
func (a *HAProxyConfigurationManagementApiService) CreateServerSwitchingRule(ctx _context.Context, backend string, serverSwitchingRule ServerSwitchingRule, localVarOptionals *CreateServerSwitchingRuleOpts) (ServerSwitchingRule, *_nethttp.Response, error)
CreateServerSwitchingRule Add a new Server Switching Rule Adds a new Server Switching Rule of the specified type in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Backend name
- @param serverSwitchingRule
- @param optional nil or *CreateServerSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return ServerSwitchingRule
func (*HAProxyConfigurationManagementApiService) CreateStickRule ¶
func (a *HAProxyConfigurationManagementApiService) CreateStickRule(ctx _context.Context, backend string, stickRule StickRule, localVarOptionals *CreateStickRuleOpts) (StickRule, *_nethttp.Response, error)
CreateStickRule Add a new Stick Rule Adds a new Stick Rule of the specified type in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Backend name
- @param stickRule
- @param optional nil or *CreateStickRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return StickRule
func (*HAProxyConfigurationManagementApiService) CreateTCPRequestRule ¶
func (a *HAProxyConfigurationManagementApiService) CreateTCPRequestRule(ctx _context.Context, parentName string, parentType string, tcpRequestRule TcpRequestRule, localVarOptionals *CreateTCPRequestRuleOpts) (TcpRequestRule, *_nethttp.Response, error)
CreateTCPRequestRule Add a new TCP Request Rule Adds a new TCP Request Rule of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param tcpRequestRule
- @param optional nil or *CreateTCPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return TcpRequestRule
func (*HAProxyConfigurationManagementApiService) CreateTCPResponseRule ¶
func (a *HAProxyConfigurationManagementApiService) CreateTCPResponseRule(ctx _context.Context, backend string, tcpResponseRule TcpResponseRule, localVarOptionals *CreateTCPResponseRuleOpts) (TcpResponseRule, *_nethttp.Response, error)
CreateTCPResponseRule Add a new TCP Response Rule Adds a new TCP Response Rule of the specified type in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Parent backend name
- @param tcpResponseRule
- @param optional nil or *CreateTCPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return TcpResponseRule
func (*HAProxyConfigurationManagementApiService) DeleteAcl ¶
func (a *HAProxyConfigurationManagementApiService) DeleteAcl(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteAclOpts) (*_nethttp.Response, error)
DeleteAcl Delete a ACL line Deletes a ACL line configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ACL line ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteAclOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*HAProxyConfigurationManagementApiService) DeleteBackend ¶
func (a *HAProxyConfigurationManagementApiService) DeleteBackend(ctx _context.Context, name string, localVarOptionals *DeleteBackendOpts) (*_nethttp.Response, error)
DeleteBackend Delete a backend Deletes a frontend from the configuration by it's name.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Backend name
- @param optional nil or *DeleteBackendOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*HAProxyConfigurationManagementApiService) DeleteBackendSwitchingRule ¶
func (a *HAProxyConfigurationManagementApiService) DeleteBackendSwitchingRule(ctx _context.Context, id int32, frontend string, localVarOptionals *DeleteBackendSwitchingRuleOpts) (*_nethttp.Response, error)
DeleteBackendSwitchingRule Delete a Backend Switching Rule Deletes a Backend Switching Rule configuration by it's ID from the specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Switching Rule ID
- @param frontend Frontend name
- @param optional nil or *DeleteBackendSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*HAProxyConfigurationManagementApiService) DeleteBind ¶
func (a *HAProxyConfigurationManagementApiService) DeleteBind(ctx _context.Context, name string, frontend string, localVarOptionals *DeleteBindOpts) (*_nethttp.Response, error)
DeleteBind Delete a bind Deletes a bind configuration by it's name in the specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Bind name
- @param frontend Parent frontend name
- @param optional nil or *DeleteBindOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*HAProxyConfigurationManagementApiService) DeleteFilter ¶
func (a *HAProxyConfigurationManagementApiService) DeleteFilter(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteFilterOpts) (*_nethttp.Response, error)
DeleteFilter Delete a Filter Deletes a Filter configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Filter ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteFilterOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*HAProxyConfigurationManagementApiService) DeleteFrontend ¶
func (a *HAProxyConfigurationManagementApiService) DeleteFrontend(ctx _context.Context, name string, localVarOptionals *DeleteFrontendOpts) (*_nethttp.Response, error)
DeleteFrontend Delete a frontend Deletes a frontend from the configuration by it's name.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Frontend name
- @param optional nil or *DeleteFrontendOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*HAProxyConfigurationManagementApiService) DeleteHTTPRequestRule ¶
func (a *HAProxyConfigurationManagementApiService) DeleteHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteHTTPRequestRuleOpts) (*_nethttp.Response, error)
DeleteHTTPRequestRule Delete a HTTP Request Rule Deletes a HTTP Request Rule configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteHTTPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*HAProxyConfigurationManagementApiService) DeleteHTTPResponseRule ¶
func (a *HAProxyConfigurationManagementApiService) DeleteHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteHTTPResponseRuleOpts) (*_nethttp.Response, error)
DeleteHTTPResponseRule Delete a HTTP Response Rule Deletes a HTTP Response Rule configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Response Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteHTTPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*HAProxyConfigurationManagementApiService) DeleteLogTarget ¶
func (a *HAProxyConfigurationManagementApiService) DeleteLogTarget(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteLogTargetOpts) (*_nethttp.Response, error)
DeleteLogTarget Delete a Log Target Deletes a Log Target configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Log Target ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteLogTargetOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*HAProxyConfigurationManagementApiService) DeleteServer ¶
func (a *HAProxyConfigurationManagementApiService) DeleteServer(ctx _context.Context, name string, backend string, localVarOptionals *DeleteServerOpts) (*_nethttp.Response, error)
DeleteServer Delete a server Deletes a server configuration by it's name in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Server name
- @param backend Parent backend name
- @param optional nil or *DeleteServerOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*HAProxyConfigurationManagementApiService) DeleteServerSwitchingRule ¶
func (a *HAProxyConfigurationManagementApiService) DeleteServerSwitchingRule(ctx _context.Context, id int32, backend string, localVarOptionals *DeleteServerSwitchingRuleOpts) (*_nethttp.Response, error)
DeleteServerSwitchingRule Delete a Server Switching Rule Deletes a Server Switching Rule configuration by it's ID from the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Switching Rule ID
- @param backend Backend name
- @param optional nil or *DeleteServerSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*HAProxyConfigurationManagementApiService) DeleteStickRule ¶
func (a *HAProxyConfigurationManagementApiService) DeleteStickRule(ctx _context.Context, id int32, backend string, localVarOptionals *DeleteStickRuleOpts) (*_nethttp.Response, error)
DeleteStickRule Delete a Stick Rule Deletes a Stick Rule configuration by it's ID from the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Stick Rule ID
- @param backend Backend name
- @param optional nil or *DeleteStickRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*HAProxyConfigurationManagementApiService) DeleteTCPRequestRule ¶
func (a *HAProxyConfigurationManagementApiService) DeleteTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteTCPRequestRuleOpts) (*_nethttp.Response, error)
DeleteTCPRequestRule Delete a TCP Request Rule Deletes a TCP Request Rule configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteTCPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*HAProxyConfigurationManagementApiService) DeleteTCPResponseRule ¶
func (a *HAProxyConfigurationManagementApiService) DeleteTCPResponseRule(ctx _context.Context, id int32, backend string, localVarOptionals *DeleteTCPResponseRuleOpts) (*_nethttp.Response, error)
DeleteTCPResponseRule Delete a TCP Response Rule Deletes a TCP Response Rule configuration by it's ID from the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Response Rule ID
- @param backend Parent backend name
- @param optional nil or *DeleteTCPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*HAProxyConfigurationManagementApiService) GetAcl ¶
func (a *HAProxyConfigurationManagementApiService) GetAcl(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetAclOpts) (InlineResponse20031, *_nethttp.Response, error)
GetAcl Return one ACL line Returns one ACL line configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ACL line ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetAclOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20031
func (*HAProxyConfigurationManagementApiService) GetAcls ¶
func (a *HAProxyConfigurationManagementApiService) GetAcls(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetAclsOpts) (InlineResponse20030, *_nethttp.Response, error)
GetAcls Return an array of all ACL lines Returns all ACL lines that are configured in specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetAclsOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20030
func (*HAProxyConfigurationManagementApiService) GetBackend ¶
func (a *HAProxyConfigurationManagementApiService) GetBackend(ctx _context.Context, name string, localVarOptionals *GetBackendOpts) (InlineResponse2007, *_nethttp.Response, error)
GetBackend Return a backend Returns one backend configuration by it's name.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Backend name
- @param optional nil or *GetBackendOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse2007
func (*HAProxyConfigurationManagementApiService) GetBackendSwitchingRule ¶
func (a *HAProxyConfigurationManagementApiService) GetBackendSwitchingRule(ctx _context.Context, id int32, frontend string, localVarOptionals *GetBackendSwitchingRuleOpts) (InlineResponse20021, *_nethttp.Response, error)
GetBackendSwitchingRule Return one Backend Switching Rule Returns one Backend Switching Rule configuration by it's ID in the specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Switching Rule ID
- @param frontend Frontend name
- @param optional nil or *GetBackendSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20021
func (*HAProxyConfigurationManagementApiService) GetBackendSwitchingRules ¶
func (a *HAProxyConfigurationManagementApiService) GetBackendSwitchingRules(ctx _context.Context, frontend string, localVarOptionals *GetBackendSwitchingRulesOpts) (InlineResponse20020, *_nethttp.Response, error)
GetBackendSwitchingRules Return an array of all Backend Switching Rules Returns all Backend Switching Rules that are configured in specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param frontend Frontend name
- @param optional nil or *GetBackendSwitchingRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20020
func (*HAProxyConfigurationManagementApiService) GetBackends ¶
func (a *HAProxyConfigurationManagementApiService) GetBackends(ctx _context.Context, localVarOptionals *GetBackendsOpts) (InlineResponse2006, *_nethttp.Response, error)
GetBackends Return an array of backends Returns an array of all configured backends.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *GetBackendsOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse2006
func (*HAProxyConfigurationManagementApiService) GetBind ¶
func (a *HAProxyConfigurationManagementApiService) GetBind(ctx _context.Context, name string, frontend string, localVarOptionals *GetBindOpts) (InlineResponse2009, *_nethttp.Response, error)
GetBind Return one bind Returns one bind configuration by it's name in the specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Bind name
- @param frontend Parent frontend name
- @param optional nil or *GetBindOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse2009
func (*HAProxyConfigurationManagementApiService) GetBinds ¶
func (a *HAProxyConfigurationManagementApiService) GetBinds(ctx _context.Context, frontend string, localVarOptionals *GetBindsOpts) (InlineResponse2008, *_nethttp.Response, error)
GetBinds Return an array of binds Returns an array of all binds that are configured in specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param frontend Parent frontend name
- @param optional nil or *GetBindsOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse2008
func (*HAProxyConfigurationManagementApiService) GetDefaults ¶
func (a *HAProxyConfigurationManagementApiService) GetDefaults(ctx _context.Context, localVarOptionals *GetDefaultsOpts) (InlineResponse2003, *_nethttp.Response, error)
GetDefaults Return defaults part of configuration Returns defaults part of configuration.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *GetDefaultsOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse2003
func (*HAProxyConfigurationManagementApiService) GetFilter ¶
func (a *HAProxyConfigurationManagementApiService) GetFilter(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetFilterOpts) (InlineResponse20025, *_nethttp.Response, error)
GetFilter Return one Filter Returns one Filter configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Filter ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetFilterOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20025
func (*HAProxyConfigurationManagementApiService) GetFilters ¶
func (a *HAProxyConfigurationManagementApiService) GetFilters(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetFiltersOpts) (InlineResponse20024, *_nethttp.Response, error)
GetFilters Return an array of all Filters Returns all Filters that are configured in specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetFiltersOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20024
func (*HAProxyConfigurationManagementApiService) GetFrontend ¶
func (a *HAProxyConfigurationManagementApiService) GetFrontend(ctx _context.Context, name string, localVarOptionals *GetFrontendOpts) (InlineResponse2005, *_nethttp.Response, error)
GetFrontend Return a frontend Returns one frontend configuration by it's name.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Frontend name
- @param optional nil or *GetFrontendOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse2005
func (*HAProxyConfigurationManagementApiService) GetFrontends ¶
func (a *HAProxyConfigurationManagementApiService) GetFrontends(ctx _context.Context, localVarOptionals *GetFrontendsOpts) (InlineResponse2004, *_nethttp.Response, error)
GetFrontends Return an array of frontends Returns an array of all configured frontends.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *GetFrontendsOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse2004
func (*HAProxyConfigurationManagementApiService) GetGlobal ¶
func (a *HAProxyConfigurationManagementApiService) GetGlobal(ctx _context.Context, localVarOptionals *GetGlobalOpts) (InlineResponse2002, *_nethttp.Response, error)
GetGlobal Return a global part of configuration Returns global part of configuration.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *GetGlobalOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse2002
func (*HAProxyConfigurationManagementApiService) GetHAProxyConfiguration ¶
func (a *HAProxyConfigurationManagementApiService) GetHAProxyConfiguration(ctx _context.Context, localVarOptionals *GetHAProxyConfigurationOpts) (InlineResponse20032, *_nethttp.Response, error)
GetHAProxyConfiguration Return HAProxy configuration Returns HAProxy configuration file in plain text
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *GetHAProxyConfigurationOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
@return InlineResponse20032
func (*HAProxyConfigurationManagementApiService) GetHTTPRequestRule ¶
func (a *HAProxyConfigurationManagementApiService) GetHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetHTTPRequestRuleOpts) (InlineResponse20013, *_nethttp.Response, error)
GetHTTPRequestRule Return one HTTP Request Rule Returns one HTTP Request Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetHTTPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20013
func (*HAProxyConfigurationManagementApiService) GetHTTPRequestRules ¶
func (a *HAProxyConfigurationManagementApiService) GetHTTPRequestRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetHTTPRequestRulesOpts) (InlineResponse20012, *_nethttp.Response, error)
GetHTTPRequestRules Return an array of all HTTP Request Rules Returns all HTTP Request Rules that are configured in specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetHTTPRequestRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20012
func (*HAProxyConfigurationManagementApiService) GetHTTPResponseRule ¶
func (a *HAProxyConfigurationManagementApiService) GetHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetHTTPResponseRuleOpts) (InlineResponse20015, *_nethttp.Response, error)
GetHTTPResponseRule Return one HTTP Response Rule Returns one HTTP Response Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Response Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetHTTPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20015
func (*HAProxyConfigurationManagementApiService) GetHTTPResponseRules ¶
func (a *HAProxyConfigurationManagementApiService) GetHTTPResponseRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetHTTPResponseRulesOpts) (InlineResponse20014, *_nethttp.Response, error)
GetHTTPResponseRules Return an array of all HTTP Response Rules Returns all HTTP Response Rules that are configured in specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetHTTPResponseRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20014
func (*HAProxyConfigurationManagementApiService) GetLogTarget ¶
func (a *HAProxyConfigurationManagementApiService) GetLogTarget(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetLogTargetOpts) (InlineResponse20029, *_nethttp.Response, error)
GetLogTarget Return one Log Target Returns one Log Target configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Log Target ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetLogTargetOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20029
func (*HAProxyConfigurationManagementApiService) GetLogTargets ¶
func (a *HAProxyConfigurationManagementApiService) GetLogTargets(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetLogTargetsOpts) (InlineResponse20028, *_nethttp.Response, error)
GetLogTargets Return an array of all Log Targets Returns all Log Targets that are configured in specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetLogTargetsOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20028
func (*HAProxyConfigurationManagementApiService) GetServer ¶
func (a *HAProxyConfigurationManagementApiService) GetServer(ctx _context.Context, name string, backend string, localVarOptionals *GetServerOpts) (InlineResponse20011, *_nethttp.Response, error)
GetServer Return one server Returns one server configuration by it's name in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Server name
- @param backend Parent backend name
- @param optional nil or *GetServerOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20011
func (*HAProxyConfigurationManagementApiService) GetServerSwitchingRule ¶
func (a *HAProxyConfigurationManagementApiService) GetServerSwitchingRule(ctx _context.Context, id int32, backend string, localVarOptionals *GetServerSwitchingRuleOpts) (InlineResponse20023, *_nethttp.Response, error)
GetServerSwitchingRule Return one Server Switching Rule Returns one Server Switching Rule configuration by it's ID in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Switching Rule ID
- @param backend Backend name
- @param optional nil or *GetServerSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20023
func (*HAProxyConfigurationManagementApiService) GetServerSwitchingRules ¶
func (a *HAProxyConfigurationManagementApiService) GetServerSwitchingRules(ctx _context.Context, backend string, localVarOptionals *GetServerSwitchingRulesOpts) (InlineResponse20022, *_nethttp.Response, error)
GetServerSwitchingRules Return an array of all Server Switching Rules Returns all Backend Switching Rules that are configured in specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Backend name
- @param optional nil or *GetServerSwitchingRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20022
func (*HAProxyConfigurationManagementApiService) GetServers ¶
func (a *HAProxyConfigurationManagementApiService) GetServers(ctx _context.Context, backend string, localVarOptionals *GetServersOpts) (InlineResponse20010, *_nethttp.Response, error)
GetServers Return an array of servers Returns an array of all servers that are configured in specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Parent backend name
- @param optional nil or *GetServersOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20010
func (*HAProxyConfigurationManagementApiService) GetStickRule ¶
func (a *HAProxyConfigurationManagementApiService) GetStickRule(ctx _context.Context, id int32, backend string, localVarOptionals *GetStickRuleOpts) (InlineResponse20027, *_nethttp.Response, error)
GetStickRule Return one Stick Rule Returns one Stick Rule configuration by it's ID in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Stick Rule ID
- @param backend Backend name
- @param optional nil or *GetStickRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20027
func (*HAProxyConfigurationManagementApiService) GetStickRules ¶
func (a *HAProxyConfigurationManagementApiService) GetStickRules(ctx _context.Context, backend string, localVarOptionals *GetStickRulesOpts) (InlineResponse20026, *_nethttp.Response, error)
GetStickRules Return an array of all Stick Rules Returns all Stick Rules that are configured in specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Backend name
- @param optional nil or *GetStickRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20026
func (*HAProxyConfigurationManagementApiService) GetTCPRequestRule ¶
func (a *HAProxyConfigurationManagementApiService) GetTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetTCPRequestRuleOpts) (InlineResponse20017, *_nethttp.Response, error)
GetTCPRequestRule Return one TCP Request Rule Returns one TCP Request Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetTCPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20017
func (*HAProxyConfigurationManagementApiService) GetTCPRequestRules ¶
func (a *HAProxyConfigurationManagementApiService) GetTCPRequestRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetTCPRequestRulesOpts) (InlineResponse20016, *_nethttp.Response, error)
GetTCPRequestRules Return an array of all TCP Request Rules Returns all TCP Request Rules that are configured in specified parent and parent type.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetTCPRequestRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20016
func (*HAProxyConfigurationManagementApiService) GetTCPResponseRule ¶
func (a *HAProxyConfigurationManagementApiService) GetTCPResponseRule(ctx _context.Context, id int32, backend string, localVarOptionals *GetTCPResponseRuleOpts) (InlineResponse20019, *_nethttp.Response, error)
GetTCPResponseRule Return one TCP Response Rule Returns one TCP Response Rule configuration by it's ID in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Response Rule ID
- @param backend Parent backend name
- @param optional nil or *GetTCPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20019
func (*HAProxyConfigurationManagementApiService) GetTCPResponseRules ¶
func (a *HAProxyConfigurationManagementApiService) GetTCPResponseRules(ctx _context.Context, backend string, localVarOptionals *GetTCPResponseRulesOpts) (InlineResponse20018, *_nethttp.Response, error)
GetTCPResponseRules Return an array of all TCP Response Rules Returns all TCP Response Rules that are configured in specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Parent backend name
- @param optional nil or *GetTCPResponseRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20018
func (*HAProxyConfigurationManagementApiService) PostHAProxyConfiguration ¶
func (a *HAProxyConfigurationManagementApiService) PostHAProxyConfiguration(ctx _context.Context, body string, localVarOptionals *PostHAProxyConfigurationOpts) (string, *_nethttp.Response, error)
PostHAProxyConfiguration Push new haproxy configuration Push a new haproxy configuration file in plain text
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param body
- @param optional nil or *PostHAProxyConfigurationOpts - Optional Parameters:
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return string
func (*HAProxyConfigurationManagementApiService) ReplaceAcl ¶
func (a *HAProxyConfigurationManagementApiService) ReplaceAcl(ctx _context.Context, id int32, parentName string, parentType string, acl Acl, localVarOptionals *ReplaceAclOpts) (Acl, *_nethttp.Response, error)
ReplaceAcl Replace a ACL line Replaces a ACL line configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id ACL line ID
- @param parentName Parent name
- @param parentType Parent type
- @param acl
- @param optional nil or *ReplaceAclOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Acl
func (*HAProxyConfigurationManagementApiService) ReplaceBackend ¶
func (a *HAProxyConfigurationManagementApiService) ReplaceBackend(ctx _context.Context, name string, backend Backend, localVarOptionals *ReplaceBackendOpts) (Backend, *_nethttp.Response, error)
ReplaceBackend Replace a backend Replaces a backend configuration by it's name.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Backend name
- @param backend
- @param optional nil or *ReplaceBackendOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Backend
func (*HAProxyConfigurationManagementApiService) ReplaceBackendSwitchingRule ¶
func (a *HAProxyConfigurationManagementApiService) ReplaceBackendSwitchingRule(ctx _context.Context, id int32, frontend string, backendSwitchingRule BackendSwitchingRule, localVarOptionals *ReplaceBackendSwitchingRuleOpts) (BackendSwitchingRule, *_nethttp.Response, error)
ReplaceBackendSwitchingRule Replace a Backend Switching Rule Replaces a Backend Switching Rule configuration by it's ID in the specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Switching Rule ID
- @param frontend Frontend name
- @param backendSwitchingRule
- @param optional nil or *ReplaceBackendSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return BackendSwitchingRule
func (*HAProxyConfigurationManagementApiService) ReplaceBind ¶
func (a *HAProxyConfigurationManagementApiService) ReplaceBind(ctx _context.Context, name string, frontend string, bind Bind, localVarOptionals *ReplaceBindOpts) (Bind, *_nethttp.Response, error)
ReplaceBind Replace a bind Replaces a bind configuration by it's name in the specified frontend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Bind name
- @param frontend Parent frontend name
- @param bind
- @param optional nil or *ReplaceBindOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Bind
func (*HAProxyConfigurationManagementApiService) ReplaceDefaults ¶
func (a *HAProxyConfigurationManagementApiService) ReplaceDefaults(ctx _context.Context, defaults Defaults, localVarOptionals *ReplaceDefaultsOpts) (Defaults, *_nethttp.Response, error)
ReplaceDefaults Replace defaults Replace defaults part of config
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param defaults
- @param optional nil or *ReplaceDefaultsOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Defaults
func (*HAProxyConfigurationManagementApiService) ReplaceFilter ¶
func (a *HAProxyConfigurationManagementApiService) ReplaceFilter(ctx _context.Context, id int32, parentName string, parentType string, filter Filter, localVarOptionals *ReplaceFilterOpts) (Filter, *_nethttp.Response, error)
ReplaceFilter Replace a Filter Replaces a Filter configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Filter ID
- @param parentName Parent name
- @param parentType Parent type
- @param filter
- @param optional nil or *ReplaceFilterOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Filter
func (*HAProxyConfigurationManagementApiService) ReplaceFrontend ¶
func (a *HAProxyConfigurationManagementApiService) ReplaceFrontend(ctx _context.Context, name string, frontend Frontend, localVarOptionals *ReplaceFrontendOpts) (Frontend, *_nethttp.Response, error)
ReplaceFrontend Replace a frontend Replaces a frontend configuration by it's name.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Frontend name
- @param frontend
- @param optional nil or *ReplaceFrontendOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Frontend
func (*HAProxyConfigurationManagementApiService) ReplaceGlobal ¶
func (a *HAProxyConfigurationManagementApiService) ReplaceGlobal(ctx _context.Context, global Global, localVarOptionals *ReplaceGlobalOpts) (Global, *_nethttp.Response, error)
ReplaceGlobal Replace global Replace global part of config
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param global
- @param optional nil or *ReplaceGlobalOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Global
func (*HAProxyConfigurationManagementApiService) ReplaceHTTPRequestRule ¶
func (a *HAProxyConfigurationManagementApiService) ReplaceHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, httpRequestRule HttpRequestRule, localVarOptionals *ReplaceHTTPRequestRuleOpts) (HttpRequestRule, *_nethttp.Response, error)
ReplaceHTTPRequestRule Replace a HTTP Request Rule Replaces a HTTP Request Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param httpRequestRule
- @param optional nil or *ReplaceHTTPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return HttpRequestRule
func (*HAProxyConfigurationManagementApiService) ReplaceHTTPResponseRule ¶
func (a *HAProxyConfigurationManagementApiService) ReplaceHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, httpResponseRule HttpResponseRule, localVarOptionals *ReplaceHTTPResponseRuleOpts) (HttpResponseRule, *_nethttp.Response, error)
ReplaceHTTPResponseRule Replace a HTTP Response Rule Replaces a HTTP Response Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Response Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param httpResponseRule
- @param optional nil or *ReplaceHTTPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return HttpResponseRule
func (*HAProxyConfigurationManagementApiService) ReplaceLogTarget ¶
func (a *HAProxyConfigurationManagementApiService) ReplaceLogTarget(ctx _context.Context, id int32, parentName string, parentType string, logTarget LogTarget, localVarOptionals *ReplaceLogTargetOpts) (LogTarget, *_nethttp.Response, error)
ReplaceLogTarget Replace a Log Target Replaces a Log Target configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Log Target ID
- @param parentName Parent name
- @param parentType Parent type
- @param logTarget
- @param optional nil or *ReplaceLogTargetOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return LogTarget
func (*HAProxyConfigurationManagementApiService) ReplaceServer ¶
func (a *HAProxyConfigurationManagementApiService) ReplaceServer(ctx _context.Context, name string, backend string, server Server, localVarOptionals *ReplaceServerOpts) (Server, *_nethttp.Response, error)
ReplaceServer Replace a server Replaces a server configuration by it's name in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Server name
- @param backend Parent backend name
- @param server
- @param optional nil or *ReplaceServerOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Server
func (*HAProxyConfigurationManagementApiService) ReplaceServerSwitchingRule ¶
func (a *HAProxyConfigurationManagementApiService) ReplaceServerSwitchingRule(ctx _context.Context, id int32, backend string, serverSwitchingRule ServerSwitchingRule, localVarOptionals *ReplaceServerSwitchingRuleOpts) (ServerSwitchingRule, *_nethttp.Response, error)
ReplaceServerSwitchingRule Replace a Server Switching Rule Replaces a Server Switching Rule configuration by it's ID in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Switching Rule ID
- @param backend Backend name
- @param serverSwitchingRule
- @param optional nil or *ReplaceServerSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return ServerSwitchingRule
func (*HAProxyConfigurationManagementApiService) ReplaceStickRule ¶
func (a *HAProxyConfigurationManagementApiService) ReplaceStickRule(ctx _context.Context, id int32, backend string, stickRule StickRule, localVarOptionals *ReplaceStickRuleOpts) (StickRule, *_nethttp.Response, error)
ReplaceStickRule Replace a Stick Rule Replaces a Stick Rule configuration by it's ID in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Stick Rule ID
- @param backend Backend name
- @param stickRule
- @param optional nil or *ReplaceStickRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return StickRule
func (*HAProxyConfigurationManagementApiService) ReplaceTCPRequestRule ¶
func (a *HAProxyConfigurationManagementApiService) ReplaceTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, tcpRequestRule TcpRequestRule, localVarOptionals *ReplaceTCPRequestRuleOpts) (TcpRequestRule, *_nethttp.Response, error)
ReplaceTCPRequestRule Replace a TCP Request Rule Replaces a TCP Request Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param tcpRequestRule
- @param optional nil or *ReplaceTCPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return TcpRequestRule
func (*HAProxyConfigurationManagementApiService) ReplaceTCPResponseRule ¶
func (a *HAProxyConfigurationManagementApiService) ReplaceTCPResponseRule(ctx _context.Context, id int32, backend string, tcpResponseRule TcpResponseRule, localVarOptionals *ReplaceTCPResponseRuleOpts) (TcpResponseRule, *_nethttp.Response, error)
ReplaceTCPResponseRule Replace a TCP Response Rule Replaces a TCP Response Rule configuration by it's ID in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Response Rule ID
- @param backend Parent backend name
- @param tcpResponseRule
- @param optional nil or *ReplaceTCPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return TcpResponseRule
type HTTPRequestRuleApiService ¶
type HTTPRequestRuleApiService service
HTTPRequestRuleApiService HTTPRequestRuleApi service
func (*HTTPRequestRuleApiService) CreateHTTPRequestRule ¶
func (a *HTTPRequestRuleApiService) CreateHTTPRequestRule(ctx _context.Context, parentName string, parentType string, httpRequestRule HttpRequestRule, localVarOptionals *CreateHTTPRequestRuleOpts) (HttpRequestRule, *_nethttp.Response, error)
CreateHTTPRequestRule Add a new HTTP Request Rule Adds a new HTTP Request Rule of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param httpRequestRule
- @param optional nil or *CreateHTTPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return HttpRequestRule
func (*HTTPRequestRuleApiService) DeleteHTTPRequestRule ¶
func (a *HTTPRequestRuleApiService) DeleteHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteHTTPRequestRuleOpts) (*_nethttp.Response, error)
DeleteHTTPRequestRule Delete a HTTP Request Rule Deletes a HTTP Request Rule configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteHTTPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*HTTPRequestRuleApiService) GetHTTPRequestRule ¶
func (a *HTTPRequestRuleApiService) GetHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetHTTPRequestRuleOpts) (InlineResponse20013, *_nethttp.Response, error)
GetHTTPRequestRule Return one HTTP Request Rule Returns one HTTP Request Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetHTTPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20013
func (*HTTPRequestRuleApiService) GetHTTPRequestRules ¶
func (a *HTTPRequestRuleApiService) GetHTTPRequestRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetHTTPRequestRulesOpts) (InlineResponse20012, *_nethttp.Response, error)
GetHTTPRequestRules Return an array of all HTTP Request Rules Returns all HTTP Request Rules that are configured in specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetHTTPRequestRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20012
func (*HTTPRequestRuleApiService) ReplaceHTTPRequestRule ¶
func (a *HTTPRequestRuleApiService) ReplaceHTTPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, httpRequestRule HttpRequestRule, localVarOptionals *ReplaceHTTPRequestRuleOpts) (HttpRequestRule, *_nethttp.Response, error)
ReplaceHTTPRequestRule Replace a HTTP Request Rule Replaces a HTTP Request Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param httpRequestRule
- @param optional nil or *ReplaceHTTPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return HttpRequestRule
type HTTPResponseRuleApiService ¶
type HTTPResponseRuleApiService service
HTTPResponseRuleApiService HTTPResponseRuleApi service
func (*HTTPResponseRuleApiService) CreateHTTPResponseRule ¶
func (a *HTTPResponseRuleApiService) CreateHTTPResponseRule(ctx _context.Context, parentName string, parentType string, httpResponseRule HttpResponseRule, localVarOptionals *CreateHTTPResponseRuleOpts) (HttpResponseRule, *_nethttp.Response, error)
CreateHTTPResponseRule Add a new HTTP Response Rule Adds a new HTTP Response Rule of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param httpResponseRule
- @param optional nil or *CreateHTTPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return HttpResponseRule
func (*HTTPResponseRuleApiService) DeleteHTTPResponseRule ¶
func (a *HTTPResponseRuleApiService) DeleteHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteHTTPResponseRuleOpts) (*_nethttp.Response, error)
DeleteHTTPResponseRule Delete a HTTP Response Rule Deletes a HTTP Response Rule configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Response Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteHTTPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*HTTPResponseRuleApiService) GetHTTPResponseRule ¶
func (a *HTTPResponseRuleApiService) GetHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetHTTPResponseRuleOpts) (InlineResponse20015, *_nethttp.Response, error)
GetHTTPResponseRule Return one HTTP Response Rule Returns one HTTP Response Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Response Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetHTTPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20015
func (*HTTPResponseRuleApiService) GetHTTPResponseRules ¶
func (a *HTTPResponseRuleApiService) GetHTTPResponseRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetHTTPResponseRulesOpts) (InlineResponse20014, *_nethttp.Response, error)
GetHTTPResponseRules Return an array of all HTTP Response Rules Returns all HTTP Response Rules that are configured in specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetHTTPResponseRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20014
func (*HTTPResponseRuleApiService) ReplaceHTTPResponseRule ¶
func (a *HTTPResponseRuleApiService) ReplaceHTTPResponseRule(ctx _context.Context, id int32, parentName string, parentType string, httpResponseRule HttpResponseRule, localVarOptionals *ReplaceHTTPResponseRuleOpts) (HttpResponseRule, *_nethttp.Response, error)
ReplaceHTTPResponseRule Replace a HTTP Response Rule Replaces a HTTP Response Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id HTTP Response Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param httpResponseRule
- @param optional nil or *ReplaceHTTPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return HttpResponseRule
type HttpRequestRule ¶
type HttpRequestRule struct { AclFile string `json:"acl_file,omitempty"` AclKeyfmt string `json:"acl_keyfmt,omitempty"` AuthRealm string `json:"auth_realm,omitempty"` Cond string `json:"cond,omitempty"` CondTest string `json:"cond_test,omitempty"` DenyStatus int32 `json:"deny_status,omitempty"` HdrFormat string `json:"hdr_format,omitempty"` HdrMatch string `json:"hdr_match,omitempty"` HdrName string `json:"hdr_name,omitempty"` Id *int32 `json:"id"` LogLevel string `json:"log_level,omitempty"` QueryFmt string `json:"query-fmt,omitempty"` RedirCode int32 `json:"redir_code,omitempty"` RedirOption string `json:"redir_option,omitempty"` RedirType string `json:"redir_type,omitempty"` RedirValue string `json:"redir_value,omitempty"` SpoeEngine string `json:"spoe_engine,omitempty"` SpoeGroup string `json:"spoe_group,omitempty"` Type string `json:"type"` UriFmt string `json:"uri-fmt,omitempty"` VarExpr string `json:"var_expr,omitempty"` VarName string `json:"var_name,omitempty"` VarScope string `json:"var_scope,omitempty"` }
HttpRequestRule HAProxy HTTP request rule configuration (corresponds to http-request directives)
type HttpResponseRule ¶
type HttpResponseRule struct { AclFile string `json:"acl_file,omitempty"` AclKeyfmt string `json:"acl_keyfmt,omitempty"` Cond string `json:"cond,omitempty"` CondTest string `json:"cond_test,omitempty"` HdrFormat string `json:"hdr_format,omitempty"` HdrMatch string `json:"hdr_match,omitempty"` HdrName string `json:"hdr_name,omitempty"` Id *int32 `json:"id"` LogLevel string `json:"log_level,omitempty"` RedirCode int32 `json:"redir_code,omitempty"` RedirOption string `json:"redir_option,omitempty"` RedirType string `json:"redir_type,omitempty"` RedirValue string `json:"redir_value,omitempty"` SpoeEngine string `json:"spoe_engine,omitempty"` SpoeGroup string `json:"spoe_group,omitempty"` Status int32 `json:"status,omitempty"` StatusReason string `json:"status_reason,omitempty"` Type string `json:"type"` VarExpr string `json:"var_expr,omitempty"` VarName string `json:"var_name,omitempty"` VarScope string `json:"var_scope,omitempty"` }
HttpResponseRule HAProxy HTTP response rule configuration (corresponds to http-response directives)
type Httpchk ¶
type Httpchk struct { Method string `json:"method,omitempty"` Uri string `json:"uri,omitempty"` Version string `json:"version,omitempty"` }
Httpchk struct for Httpchk
type Info ¶
type Info struct { Api InfoApi `json:"api,omitempty"` System InfoSystem `json:"system,omitempty"` }
Info General API, OS and hardware information
type InfoApi ¶
type InfoApi struct { // HAProxy Dataplane API build date BuildDate time.Time `json:"build_date,omitempty"` // HAProxy Dataplane API version string Version string `json:"version,omitempty"` }
InfoApi struct for InfoApi
type InfoSystem ¶
type InfoSystem struct { CpuInfo InfoSystemCpuInfo `json:"cpu_info,omitempty"` // Hostname where the HAProxy is running Hostname string `json:"hostname,omitempty"` MemInfo InfoSystemMemInfo `json:"mem_info,omitempty"` // OS string OsString string `json:"os_string,omitempty"` // Current time in milliseconds since Epoch. Time int32 `json:"time,omitempty"` // System uptime Uptime *int32 `json:"uptime,omitempty"` }
InfoSystem struct for InfoSystem
type InfoSystemCpuInfo ¶
type InfoSystemCpuInfo struct { Model string `json:"model,omitempty"` // Number of logical CPUs NumCpus int32 `json:"num_cpus,omitempty"` }
InfoSystemCpuInfo struct for InfoSystemCpuInfo
type InfoSystemMemInfo ¶
type InfoSystemMemInfo struct { DataplaneapiMemory int32 `json:"dataplaneapi_memory,omitempty"` FreeMemory int32 `json:"free_memory,omitempty"` TotalMemory int32 `json:"total_memory,omitempty"` }
InfoSystemMemInfo struct for InfoSystemMemInfo
type InformationApiService ¶
type InformationApiService service
InformationApiService InformationApi service
func (*InformationApiService) GetHaproxyProcessInfo ¶
func (a *InformationApiService) GetHaproxyProcessInfo(ctx _context.Context) (ProcessInfo, *_nethttp.Response, error)
GetHaproxyProcessInfo Return HAProxy process information Return HAProxy process information
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ProcessInfo
type InlineResponse200 ¶
type InlineResponse200 struct { Version int32 `json:"_version,omitempty"` // Sites array. Sites are considered as one service and all farms connected to that service. Farms are connected to service using use-backend and default_backend directives. Sites let you configure simple HAProxy configurations, for more advanced options use /haproxy/configuration endpoints. Data []Site `json:"data"` }
InlineResponse200 struct for InlineResponse200
type InlineResponse2001 ¶
type InlineResponse2001 struct { Version int32 `json:"_version,omitempty"` Data Site `json:"data,omitempty"` }
InlineResponse2001 struct for InlineResponse2001
type InlineResponse20010 ¶
type InlineResponse20010 struct { Version int32 `json:"_version,omitempty"` // HAProxy backend servers array Data []Server `json:"data"` }
InlineResponse20010 struct for InlineResponse20010
type InlineResponse20011 ¶
type InlineResponse20011 struct { Version int32 `json:"_version,omitempty"` Data Server `json:"data,omitempty"` }
InlineResponse20011 struct for InlineResponse20011
type InlineResponse20012 ¶
type InlineResponse20012 struct { Version int32 `json:"_version,omitempty"` // HAProxy HTTP request rules array (corresponds to http-request directives) Data []HttpRequestRule `json:"data"` }
InlineResponse20012 struct for InlineResponse20012
type InlineResponse20013 ¶
type InlineResponse20013 struct { Version int32 `json:"_version,omitempty"` Data HttpRequestRule `json:"data,omitempty"` }
InlineResponse20013 struct for InlineResponse20013
type InlineResponse20014 ¶
type InlineResponse20014 struct { Version int32 `json:"_version,omitempty"` // HAProxy HTTP response rules array (corresponds to http-response directives) Data []HttpResponseRule `json:"data"` }
InlineResponse20014 struct for InlineResponse20014
type InlineResponse20015 ¶
type InlineResponse20015 struct { Version int32 `json:"_version,omitempty"` Data HttpResponseRule `json:"data,omitempty"` }
InlineResponse20015 struct for InlineResponse20015
type InlineResponse20016 ¶
type InlineResponse20016 struct { Version int32 `json:"_version,omitempty"` // HAProxy TCP request rules array (corresponds to tcp-request directive) Data []TcpRequestRule `json:"data"` }
InlineResponse20016 struct for InlineResponse20016
type InlineResponse20017 ¶
type InlineResponse20017 struct { Version int32 `json:"_version,omitempty"` Data TcpRequestRule `json:"data,omitempty"` }
InlineResponse20017 struct for InlineResponse20017
type InlineResponse20018 ¶
type InlineResponse20018 struct { Version int32 `json:"_version,omitempty"` // HAProxy TCP response rules array (corresponds to tcp-response directive) Data []TcpResponseRule `json:"data"` }
InlineResponse20018 struct for InlineResponse20018
type InlineResponse20019 ¶
type InlineResponse20019 struct { Version int32 `json:"_version,omitempty"` Data TcpResponseRule `json:"data,omitempty"` }
InlineResponse20019 struct for InlineResponse20019
type InlineResponse2002 ¶
type InlineResponse2002 struct { Version int32 `json:"_version,omitempty"` Data Global `json:"data,omitempty"` }
InlineResponse2002 struct for InlineResponse2002
type InlineResponse20020 ¶
type InlineResponse20020 struct { Version int32 `json:"_version,omitempty"` // HAProxy backend switching rules array (corresponds to use_backend directives) Data []BackendSwitchingRule `json:"data"` }
InlineResponse20020 struct for InlineResponse20020
type InlineResponse20021 ¶
type InlineResponse20021 struct { Version int32 `json:"_version,omitempty"` Data BackendSwitchingRule `json:"data,omitempty"` }
InlineResponse20021 struct for InlineResponse20021
type InlineResponse20022 ¶
type InlineResponse20022 struct { Version int32 `json:"_version,omitempty"` // HAProxy backend server switching rules array (corresponds to use-server directives) Data []ServerSwitchingRule `json:"data"` }
InlineResponse20022 struct for InlineResponse20022
type InlineResponse20023 ¶
type InlineResponse20023 struct { Version int32 `json:"_version,omitempty"` Data ServerSwitchingRule `json:"data,omitempty"` }
InlineResponse20023 struct for InlineResponse20023
type InlineResponse20024 ¶
type InlineResponse20024 struct { Version int32 `json:"_version,omitempty"` // HAProxy filters array (corresponds to filter directive) Data []Filter `json:"data"` }
InlineResponse20024 struct for InlineResponse20024
type InlineResponse20025 ¶
type InlineResponse20025 struct { Version int32 `json:"_version,omitempty"` Data Filter `json:"data,omitempty"` }
InlineResponse20025 struct for InlineResponse20025
type InlineResponse20026 ¶
type InlineResponse20026 struct { Version int32 `json:"_version,omitempty"` // HAProxy backend stick rules array (corresponds to stick store-request, stick match, stick on, stick store-response) Data []StickRule `json:"data"` }
InlineResponse20026 struct for InlineResponse20026
type InlineResponse20027 ¶
type InlineResponse20027 struct { Version int32 `json:"_version,omitempty"` Data StickRule `json:"data,omitempty"` }
InlineResponse20027 struct for InlineResponse20027
type InlineResponse20028 ¶
type InlineResponse20028 struct { Version int32 `json:"_version,omitempty"` // HAProxy log target array (corresponds to log directives) Data []LogTarget `json:"data"` }
InlineResponse20028 struct for InlineResponse20028
type InlineResponse20029 ¶
type InlineResponse20029 struct { Version int32 `json:"_version,omitempty"` Data LogTarget `json:"data,omitempty"` }
InlineResponse20029 struct for InlineResponse20029
type InlineResponse2003 ¶
type InlineResponse2003 struct { Version int32 `json:"_version,omitempty"` Data Defaults `json:"data,omitempty"` }
InlineResponse2003 struct for InlineResponse2003
type InlineResponse20030 ¶
type InlineResponse20030 struct { Version int32 `json:"_version,omitempty"` // HAProxy ACL lines array (corresponds to acl directives) Data []Acl `json:"data"` }
InlineResponse20030 struct for InlineResponse20030
type InlineResponse20031 ¶
type InlineResponse20031 struct { Version int32 `json:"_version,omitempty"` Data Acl `json:"data,omitempty"` }
InlineResponse20031 struct for InlineResponse20031
type InlineResponse20032 ¶
type InlineResponse20032 struct { Version int32 `json:"_version,omitempty"` Data string `json:"data"` }
InlineResponse20032 struct for InlineResponse20032
type InlineResponse2004 ¶
type InlineResponse2004 struct { Version int32 `json:"_version,omitempty"` // HAProxy frontends array Data []Frontend `json:"data"` }
InlineResponse2004 struct for InlineResponse2004
type InlineResponse2005 ¶
type InlineResponse2005 struct { Version int32 `json:"_version,omitempty"` Data Frontend `json:"data,omitempty"` }
InlineResponse2005 struct for InlineResponse2005
type InlineResponse2006 ¶
type InlineResponse2006 struct { Version int32 `json:"_version,omitempty"` // HAProxy backends array Data []Backend `json:"data"` }
InlineResponse2006 struct for InlineResponse2006
type InlineResponse2007 ¶
type InlineResponse2007 struct { Version int32 `json:"_version,omitempty"` Data Backend `json:"data,omitempty"` }
InlineResponse2007 struct for InlineResponse2007
type InlineResponse2008 ¶
type InlineResponse2008 struct { Version int32 `json:"_version,omitempty"` // HAProxy frontend binds array (corresponds to bind directives) Data []Bind `json:"data"` }
InlineResponse2008 struct for InlineResponse2008
type InlineResponse2009 ¶
type InlineResponse2009 struct { Version int32 `json:"_version,omitempty"` Data Bind `json:"data,omitempty"` }
InlineResponse2009 struct for InlineResponse2009
type LogTarget ¶
type LogTarget struct { Address string `json:"address,omitempty"` Facility string `json:"facility,omitempty"` Format string `json:"format,omitempty"` Global bool `json:"global,omitempty"` Id *int32 `json:"id"` Length int32 `json:"length,omitempty"` Level string `json:"level,omitempty"` Minlevel string `json:"minlevel,omitempty"` Nolog bool `json:"nolog,omitempty"` }
LogTarget Per-instance logging of events and traffic.
type LogTargetApiService ¶
type LogTargetApiService service
LogTargetApiService LogTargetApi service
func (*LogTargetApiService) CreateLogTarget ¶
func (a *LogTargetApiService) CreateLogTarget(ctx _context.Context, parentName string, parentType string, logTarget LogTarget, localVarOptionals *CreateLogTargetOpts) (LogTarget, *_nethttp.Response, error)
CreateLogTarget Add a new Log Target Adds a new Log Target of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param logTarget
- @param optional nil or *CreateLogTargetOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return LogTarget
func (*LogTargetApiService) DeleteLogTarget ¶
func (a *LogTargetApiService) DeleteLogTarget(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteLogTargetOpts) (*_nethttp.Response, error)
DeleteLogTarget Delete a Log Target Deletes a Log Target configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Log Target ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteLogTargetOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*LogTargetApiService) GetLogTarget ¶
func (a *LogTargetApiService) GetLogTarget(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetLogTargetOpts) (InlineResponse20029, *_nethttp.Response, error)
GetLogTarget Return one Log Target Returns one Log Target configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Log Target ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetLogTargetOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20029
func (*LogTargetApiService) GetLogTargets ¶
func (a *LogTargetApiService) GetLogTargets(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetLogTargetsOpts) (InlineResponse20028, *_nethttp.Response, error)
GetLogTargets Return an array of all Log Targets Returns all Log Targets that are configured in specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetLogTargetsOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20028
func (*LogTargetApiService) ReplaceLogTarget ¶
func (a *LogTargetApiService) ReplaceLogTarget(ctx _context.Context, id int32, parentName string, parentType string, logTarget LogTarget, localVarOptionals *ReplaceLogTargetOpts) (LogTarget, *_nethttp.Response, error)
ReplaceLogTarget Replace a Log Target Replaces a Log Target configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Log Target ID
- @param parentName Parent name
- @param parentType Parent type
- @param logTarget
- @param optional nil or *ReplaceLogTargetOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return LogTarget
type ModelError ¶
ModelError API Error
type NativeStat ¶
type NativeStat struct { BackendName string `json:"backend_name,omitempty"` Name string `json:"name,omitempty"` Stats NativeStatStats `json:"stats,omitempty"` Type string `json:"type,omitempty"` }
NativeStat Current stats for one object.
type NativeStatStats ¶
type NativeStatStats struct { Act *int32 `json:"act,omitempty"` Addr string `json:"addr,omitempty"` AgentCode *int32 `json:"agent_code,omitempty"` AgentDesc string `json:"agent_desc,omitempty"` AgentDuration *int32 `json:"agent_duration,omitempty"` AgentFall *int32 `json:"agent_fall,omitempty"` AgentHealth *int32 `json:"agent_health,omitempty"` AgentRise *int32 `json:"agent_rise,omitempty"` AgentStatus string `json:"agent_status,omitempty"` Algo string `json:"algo,omitempty"` Bck *int32 `json:"bck,omitempty"` Bin *int32 `json:"bin,omitempty"` Bout *int32 `json:"bout,omitempty"` CheckCode *int32 `json:"check_code,omitempty"` CheckDesc string `json:"check_desc,omitempty"` CheckDuration *int32 `json:"check_duration,omitempty"` CheckFall *int32 `json:"check_fall,omitempty"` CheckHealth *int32 `json:"check_health,omitempty"` CheckRise *int32 `json:"check_rise,omitempty"` CheckStatus string `json:"check_status,omitempty"` Chkdown *int32 `json:"chkdown,omitempty"` Chkfail *int32 `json:"chkfail,omitempty"` CliAbrt *int32 `json:"cli_abrt,omitempty"` CompByp *int32 `json:"comp_byp,omitempty"` CompIn *int32 `json:"comp_in,omitempty"` CompOut *int32 `json:"comp_out,omitempty"` CompRsp *int32 `json:"comp_rsp,omitempty"` ConnRate *int32 `json:"conn_rate,omitempty"` ConnRateMax *int32 `json:"conn_rate_max,omitempty"` ConnTot *int32 `json:"conn_tot,omitempty"` Cookie string `json:"cookie,omitempty"` Ctime *int32 `json:"ctime,omitempty"` Dcon *int32 `json:"dcon,omitempty"` Downtime *int32 `json:"downtime,omitempty"` Dreq *int32 `json:"dreq,omitempty"` Dresp *int32 `json:"dresp,omitempty"` Dses *int32 `json:"dses,omitempty"` Econ *int32 `json:"econ,omitempty"` Ereq *int32 `json:"ereq,omitempty"` Eresp *int32 `json:"eresp,omitempty"` Hanafail string `json:"hanafail,omitempty"` Hrsp1xx *int32 `json:"hrsp_1xx,omitempty"` Hrsp2xx *int32 `json:"hrsp_2xx,omitempty"` Hrsp3xx *int32 `json:"hrsp_3xx,omitempty"` Hrsp4xx *int32 `json:"hrsp_4xx,omitempty"` Hrsp5xx *int32 `json:"hrsp_5xx,omitempty"` HrspOther *int32 `json:"hrsp_other,omitempty"` Iid *int32 `json:"iid,omitempty"` Intercepted *int32 `json:"intercepted,omitempty"` Lastchg *int32 `json:"lastchg,omitempty"` Lastsess *int32 `json:"lastsess,omitempty"` Lbtot *int32 `json:"lbtot,omitempty"` Mode string `json:"mode,omitempty"` Pid *int32 `json:"pid,omitempty"` Qcur *int32 `json:"qcur,omitempty"` Qlimit *int32 `json:"qlimit,omitempty"` Qmax *int32 `json:"qmax,omitempty"` Qtime *int32 `json:"qtime,omitempty"` Rate *int32 `json:"rate,omitempty"` RateLim *int32 `json:"rate_lim,omitempty"` RateMax *int32 `json:"rate_max,omitempty"` ReqRate *int32 `json:"req_rate,omitempty"` ReqRateMax *int32 `json:"req_rate_max,omitempty"` ReqTot *int32 `json:"req_tot,omitempty"` Rtime *int32 `json:"rtime,omitempty"` Scur *int32 `json:"scur,omitempty"` Sid *int32 `json:"sid,omitempty"` Slim *int32 `json:"slim,omitempty"` Smax *int32 `json:"smax,omitempty"` SrvAbrt *int32 `json:"srv_abrt,omitempty"` Status string `json:"status,omitempty"` Stot *int32 `json:"stot,omitempty"` Throttle *int32 `json:"throttle,omitempty"` Tracked *int32 `json:"tracked,omitempty"` Ttime *int32 `json:"ttime,omitempty"` Weight *int32 `json:"weight,omitempty"` Wredis *int32 `json:"wredis,omitempty"` Wretr *int32 `json:"wretr,omitempty"` }
NativeStatStats struct for NativeStatStats
type PostHAProxyConfigurationOpts ¶
PostHAProxyConfigurationOpts Optional parameters for the method 'PostHAProxyConfiguration'
type ProcessInfo ¶
type ProcessInfo struct {
Haproxy ProcessInfoHaproxy `json:"haproxy,omitempty"`
}
ProcessInfo General HAProxy process information
type ProcessInfoHaproxy ¶
type ProcessInfoHaproxy struct { // Process id of the replying worker process Pid *int32 `json:"pid,omitempty"` // Number of spawned processes Processes *int32 `json:"processes,omitempty"` // HAProxy version release date ReleaseDate string `json:"release_date,omitempty"` // HAProxy uptime in s Uptime *int32 `json:"uptime,omitempty"` // HAProxy version string Version string `json:"version,omitempty"` }
ProcessInfoHaproxy struct for ProcessInfoHaproxy
type Redispatch ¶
type Redispatch struct { Enabled string `json:"enabled"` Interval int32 `json:"interval,omitempty"` }
Redispatch struct for Redispatch
type Reload ¶
type Reload struct { Id string `json:"id,omitempty"` ReloadTimestamp int32 `json:"reload_timestamp,omitempty"` Response string `json:"response,omitempty"` Status string `json:"status,omitempty"` }
Reload HAProxy reload
type ReloadsApiService ¶
type ReloadsApiService service
ReloadsApiService ReloadsApi service
func (*ReloadsApiService) GetReload ¶
func (a *ReloadsApiService) GetReload(ctx _context.Context, id string) (Reload, *_nethttp.Response, error)
GetReload Return one HAProxy reload status Returns one HAProxy reload status.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Reload id
@return Reload
func (*ReloadsApiService) GetReloads ¶
GetReloads Return list of HAProxy Reloads. Returns a list of HAProxy reloads.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return []Reload
type ReplaceAclOpts ¶
type ReplaceAclOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
ReplaceAclOpts Optional parameters for the method 'ReplaceAcl'
type ReplaceBackendOpts ¶
type ReplaceBackendOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
ReplaceBackendOpts Optional parameters for the method 'ReplaceBackend'
type ReplaceBackendSwitchingRuleOpts ¶
type ReplaceBackendSwitchingRuleOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
ReplaceBackendSwitchingRuleOpts Optional parameters for the method 'ReplaceBackendSwitchingRule'
type ReplaceBindOpts ¶
type ReplaceBindOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
ReplaceBindOpts Optional parameters for the method 'ReplaceBind'
type ReplaceDefaultsOpts ¶
type ReplaceDefaultsOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
ReplaceDefaultsOpts Optional parameters for the method 'ReplaceDefaults'
type ReplaceFilterOpts ¶
type ReplaceFilterOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
ReplaceFilterOpts Optional parameters for the method 'ReplaceFilter'
type ReplaceFrontendOpts ¶
type ReplaceFrontendOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
ReplaceFrontendOpts Optional parameters for the method 'ReplaceFrontend'
type ReplaceGlobalOpts ¶
type ReplaceGlobalOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
ReplaceGlobalOpts Optional parameters for the method 'ReplaceGlobal'
type ReplaceHTTPRequestRuleOpts ¶
type ReplaceHTTPRequestRuleOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
ReplaceHTTPRequestRuleOpts Optional parameters for the method 'ReplaceHTTPRequestRule'
type ReplaceHTTPResponseRuleOpts ¶
type ReplaceHTTPResponseRuleOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
ReplaceHTTPResponseRuleOpts Optional parameters for the method 'ReplaceHTTPResponseRule'
type ReplaceLogTargetOpts ¶
type ReplaceLogTargetOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
ReplaceLogTargetOpts Optional parameters for the method 'ReplaceLogTarget'
type ReplaceServerOpts ¶
type ReplaceServerOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
ReplaceServerOpts Optional parameters for the method 'ReplaceServer'
type ReplaceServerSwitchingRuleOpts ¶
type ReplaceServerSwitchingRuleOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
ReplaceServerSwitchingRuleOpts Optional parameters for the method 'ReplaceServerSwitchingRule'
type ReplaceSiteOpts ¶
type ReplaceSiteOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
ReplaceSiteOpts Optional parameters for the method 'ReplaceSite'
type ReplaceStickRuleOpts ¶
type ReplaceStickRuleOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
ReplaceStickRuleOpts Optional parameters for the method 'ReplaceStickRule'
type ReplaceTCPRequestRuleOpts ¶
type ReplaceTCPRequestRuleOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
ReplaceTCPRequestRuleOpts Optional parameters for the method 'ReplaceTCPRequestRule'
type ReplaceTCPResponseRuleOpts ¶
type ReplaceTCPResponseRuleOpts struct { TransactionId optional.String Version optional.Int32 ForceReload optional.Bool }
ReplaceTCPResponseRuleOpts Optional parameters for the method 'ReplaceTCPResponseRule'
type Server ¶
type Server struct { Address string `json:"address,omitempty"` Backup string `json:"backup,omitempty"` Check string `json:"check,omitempty"` Cookie string `json:"cookie,omitempty"` Inter *int32 `json:"inter,omitempty"` Maintenance string `json:"maintenance,omitempty"` Maxconn *int32 `json:"maxconn,omitempty"` Name string `json:"name"` OnError string `json:"on-error,omitempty"` OnMarkedDown string `json:"on-marked-down,omitempty"` OnMarkedUp string `json:"on-marked-up,omitempty"` Port *int32 `json:"port,omitempty"` Ssl string `json:"ssl,omitempty"` SslCafile string `json:"ssl_cafile,omitempty"` SslCertificate string `json:"ssl_certificate,omitempty"` TlsTickets string `json:"tls_tickets,omitempty"` Verify string `json:"verify,omitempty"` Weight *int32 `json:"weight,omitempty"` }
Server HAProxy backend server configuration
type ServerApiService ¶
type ServerApiService service
ServerApiService ServerApi service
func (*ServerApiService) CreateServer ¶
func (a *ServerApiService) CreateServer(ctx _context.Context, backend string, server Server, localVarOptionals *CreateServerOpts) (Server, *_nethttp.Response, error)
CreateServer Add a new server Adds a new server in the specified backend in the configuration file.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Parent backend name
- @param server
- @param optional nil or *CreateServerOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Server
func (*ServerApiService) DeleteServer ¶
func (a *ServerApiService) DeleteServer(ctx _context.Context, name string, backend string, localVarOptionals *DeleteServerOpts) (*_nethttp.Response, error)
DeleteServer Delete a server Deletes a server configuration by it's name in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Server name
- @param backend Parent backend name
- @param optional nil or *DeleteServerOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*ServerApiService) GetServer ¶
func (a *ServerApiService) GetServer(ctx _context.Context, name string, backend string, localVarOptionals *GetServerOpts) (InlineResponse20011, *_nethttp.Response, error)
GetServer Return one server Returns one server configuration by it's name in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Server name
- @param backend Parent backend name
- @param optional nil or *GetServerOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20011
func (*ServerApiService) GetServers ¶
func (a *ServerApiService) GetServers(ctx _context.Context, backend string, localVarOptionals *GetServersOpts) (InlineResponse20010, *_nethttp.Response, error)
GetServers Return an array of servers Returns an array of all servers that are configured in specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Parent backend name
- @param optional nil or *GetServersOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20010
func (*ServerApiService) ReplaceServer ¶
func (a *ServerApiService) ReplaceServer(ctx _context.Context, name string, backend string, server Server, localVarOptionals *ReplaceServerOpts) (Server, *_nethttp.Response, error)
ReplaceServer Replace a server Replaces a server configuration by it's name in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Server name
- @param backend Parent backend name
- @param server
- @param optional nil or *ReplaceServerOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Server
type ServerSwitchingRule ¶
type ServerSwitchingRule struct { Cond string `json:"cond,omitempty"` CondTest string `json:"cond_test,omitempty"` Id *int32 `json:"id"` TargetServer string `json:"target_server"` }
ServerSwitchingRule HAProxy server switching rule configuration (corresponds to use-server directive)
type ServerSwitchingRuleApiService ¶
type ServerSwitchingRuleApiService service
ServerSwitchingRuleApiService ServerSwitchingRuleApi service
func (*ServerSwitchingRuleApiService) CreateServerSwitchingRule ¶
func (a *ServerSwitchingRuleApiService) CreateServerSwitchingRule(ctx _context.Context, backend string, serverSwitchingRule ServerSwitchingRule, localVarOptionals *CreateServerSwitchingRuleOpts) (ServerSwitchingRule, *_nethttp.Response, error)
CreateServerSwitchingRule Add a new Server Switching Rule Adds a new Server Switching Rule of the specified type in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Backend name
- @param serverSwitchingRule
- @param optional nil or *CreateServerSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return ServerSwitchingRule
func (*ServerSwitchingRuleApiService) DeleteServerSwitchingRule ¶
func (a *ServerSwitchingRuleApiService) DeleteServerSwitchingRule(ctx _context.Context, id int32, backend string, localVarOptionals *DeleteServerSwitchingRuleOpts) (*_nethttp.Response, error)
DeleteServerSwitchingRule Delete a Server Switching Rule Deletes a Server Switching Rule configuration by it's ID from the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Switching Rule ID
- @param backend Backend name
- @param optional nil or *DeleteServerSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*ServerSwitchingRuleApiService) GetServerSwitchingRule ¶
func (a *ServerSwitchingRuleApiService) GetServerSwitchingRule(ctx _context.Context, id int32, backend string, localVarOptionals *GetServerSwitchingRuleOpts) (InlineResponse20023, *_nethttp.Response, error)
GetServerSwitchingRule Return one Server Switching Rule Returns one Server Switching Rule configuration by it's ID in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Switching Rule ID
- @param backend Backend name
- @param optional nil or *GetServerSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20023
func (*ServerSwitchingRuleApiService) GetServerSwitchingRules ¶
func (a *ServerSwitchingRuleApiService) GetServerSwitchingRules(ctx _context.Context, backend string, localVarOptionals *GetServerSwitchingRulesOpts) (InlineResponse20022, *_nethttp.Response, error)
GetServerSwitchingRules Return an array of all Server Switching Rules Returns all Backend Switching Rules that are configured in specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Backend name
- @param optional nil or *GetServerSwitchingRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20022
func (*ServerSwitchingRuleApiService) ReplaceServerSwitchingRule ¶
func (a *ServerSwitchingRuleApiService) ReplaceServerSwitchingRule(ctx _context.Context, id int32, backend string, serverSwitchingRule ServerSwitchingRule, localVarOptionals *ReplaceServerSwitchingRuleOpts) (ServerSwitchingRule, *_nethttp.Response, error)
ReplaceServerSwitchingRule Replace a Server Switching Rule Replaces a Server Switching Rule configuration by it's ID in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Switching Rule ID
- @param backend Backend name
- @param serverSwitchingRule
- @param optional nil or *ReplaceServerSwitchingRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return ServerSwitchingRule
type Site ¶
type Site struct { Farms []SiteFarms `json:"farms,omitempty"` Name string `json:"name"` Service SiteService `json:"service,omitempty"` }
Site Site configuration. Sites are considered as one service and all farms connected to that service. Farms are connected to service using use-backend and default_backend directives. Sites let you configure simple HAProxy configurations, for more advanced options use /haproxy/configuration endpoints.
type SiteFarms ¶
type SiteFarms struct { Balance Balance `json:"balance,omitempty"` Cond string `json:"cond,omitempty"` CondTest string `json:"cond_test,omitempty"` Forwardfor Forwardfor `json:"forwardfor,omitempty"` Mode string `json:"mode,omitempty"` Name string `json:"name"` Servers []Server `json:"servers,omitempty"` UseAs string `json:"use_as"` }
SiteFarms struct for SiteFarms
type SiteService ¶
type SiteService struct { HttpConnectionMode string `json:"http_connection_mode,omitempty"` Listeners []Bind `json:"listeners,omitempty"` Maxconn *int32 `json:"maxconn,omitempty"` Mode string `json:"mode,omitempty"` }
SiteService struct for SiteService
type SitesApiService ¶
type SitesApiService service
SitesApiService SitesApi service
func (*SitesApiService) CreateSite ¶
func (a *SitesApiService) CreateSite(ctx _context.Context, site Site, localVarOptionals *CreateSiteOpts) (Site, *_nethttp.Response, error)
CreateSite Add a site Adds a new site to the configuration file.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param site
- @param optional nil or *CreateSiteOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Site
func (*SitesApiService) DeleteSite ¶
func (a *SitesApiService) DeleteSite(ctx _context.Context, name string, localVarOptionals *DeleteSiteOpts) (*_nethttp.Response, error)
DeleteSite Delete a site Deletes a site from the configuration by it's name.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Site frontend name
- @param optional nil or *DeleteSiteOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*SitesApiService) GetSite ¶
func (a *SitesApiService) GetSite(ctx _context.Context, name string, localVarOptionals *GetSiteOpts) (InlineResponse2001, *_nethttp.Response, error)
GetSite Return a site Returns one site configuration by it's name.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Site frontend name
- @param optional nil or *GetSiteOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse2001
func (*SitesApiService) GetSites ¶
func (a *SitesApiService) GetSites(ctx _context.Context, localVarOptionals *GetSitesOpts) (InlineResponse200, *_nethttp.Response, error)
GetSites Return an array of sites Returns an array of all configured sites.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *GetSitesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse200
func (*SitesApiService) ReplaceSite ¶
func (a *SitesApiService) ReplaceSite(ctx _context.Context, name string, site Site, localVarOptionals *ReplaceSiteOpts) (Site, *_nethttp.Response, error)
ReplaceSite Replace a site Replaces a site configuration by it's name.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param name Site frontend name
- @param site
- @param optional nil or *ReplaceSiteOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return Site
type SpecificationApiService ¶
type SpecificationApiService service
SpecificationApiService SpecificationApi service
func (*SpecificationApiService) GetSpecification ¶
func (a *SpecificationApiService) GetSpecification(ctx _context.Context) (map[string]interface{}, *_nethttp.Response, error)
GetSpecification Data Plane API Specification Return Data Plane API OpenAPI specification
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return map[string]interface{}
type StatsApiService ¶
type StatsApiService service
StatsApiService StatsApi service
func (*StatsApiService) GetStats ¶
func (a *StatsApiService) GetStats(ctx _context.Context, localVarOptionals *GetStatsOpts) ([]map[string]interface{}, *_nethttp.Response, error)
GetStats Gets stats Getting stats from the HAProxy.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *GetStatsOpts - Optional Parameters:
- @param "Type_" (optional.String) - Object type to get stats for (one of frontend, backend, server)
- @param "Name" (optional.String) - Object name to get stats for
- @param "Parent" (optional.String) - Object parent name to get stats for, in case the object is a server
@return []map[string]interface{}
type StickRule ¶
type StickRule struct { Cond string `json:"cond,omitempty"` CondTest string `json:"cond_test,omitempty"` Id *int32 `json:"id"` Pattern string `json:"pattern"` Table string `json:"table,omitempty"` Type string `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 StickRuleApiService ¶
type StickRuleApiService service
StickRuleApiService StickRuleApi service
func (*StickRuleApiService) CreateStickRule ¶
func (a *StickRuleApiService) CreateStickRule(ctx _context.Context, backend string, stickRule StickRule, localVarOptionals *CreateStickRuleOpts) (StickRule, *_nethttp.Response, error)
CreateStickRule Add a new Stick Rule Adds a new Stick Rule of the specified type in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Backend name
- @param stickRule
- @param optional nil or *CreateStickRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return StickRule
func (*StickRuleApiService) DeleteStickRule ¶
func (a *StickRuleApiService) DeleteStickRule(ctx _context.Context, id int32, backend string, localVarOptionals *DeleteStickRuleOpts) (*_nethttp.Response, error)
DeleteStickRule Delete a Stick Rule Deletes a Stick Rule configuration by it's ID from the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Stick Rule ID
- @param backend Backend name
- @param optional nil or *DeleteStickRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*StickRuleApiService) GetStickRule ¶
func (a *StickRuleApiService) GetStickRule(ctx _context.Context, id int32, backend string, localVarOptionals *GetStickRuleOpts) (InlineResponse20027, *_nethttp.Response, error)
GetStickRule Return one Stick Rule Returns one Stick Rule configuration by it's ID in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Stick Rule ID
- @param backend Backend name
- @param optional nil or *GetStickRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20027
func (*StickRuleApiService) GetStickRules ¶
func (a *StickRuleApiService) GetStickRules(ctx _context.Context, backend string, localVarOptionals *GetStickRulesOpts) (InlineResponse20026, *_nethttp.Response, error)
GetStickRules Return an array of all Stick Rules Returns all Stick Rules that are configured in specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Backend name
- @param optional nil or *GetStickRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20026
func (*StickRuleApiService) ReplaceStickRule ¶
func (a *StickRuleApiService) ReplaceStickRule(ctx _context.Context, id int32, backend string, stickRule StickRule, localVarOptionals *ReplaceStickRuleOpts) (StickRule, *_nethttp.Response, error)
ReplaceStickRule Replace a Stick Rule Replaces a Stick Rule configuration by it's ID in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Stick Rule ID
- @param backend Backend name
- @param stickRule
- @param optional nil or *ReplaceStickRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return StickRule
type TCPRequestRuleApiService ¶
type TCPRequestRuleApiService service
TCPRequestRuleApiService TCPRequestRuleApi service
func (*TCPRequestRuleApiService) CreateTCPRequestRule ¶
func (a *TCPRequestRuleApiService) CreateTCPRequestRule(ctx _context.Context, parentName string, parentType string, tcpRequestRule TcpRequestRule, localVarOptionals *CreateTCPRequestRuleOpts) (TcpRequestRule, *_nethttp.Response, error)
CreateTCPRequestRule Add a new TCP Request Rule Adds a new TCP Request Rule of the specified type in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param tcpRequestRule
- @param optional nil or *CreateTCPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return TcpRequestRule
func (*TCPRequestRuleApiService) DeleteTCPRequestRule ¶
func (a *TCPRequestRuleApiService) DeleteTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *DeleteTCPRequestRuleOpts) (*_nethttp.Response, error)
DeleteTCPRequestRule Delete a TCP Request Rule Deletes a TCP Request Rule configuration by it's ID from the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *DeleteTCPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*TCPRequestRuleApiService) GetTCPRequestRule ¶
func (a *TCPRequestRuleApiService) GetTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, localVarOptionals *GetTCPRequestRuleOpts) (InlineResponse20017, *_nethttp.Response, error)
GetTCPRequestRule Return one TCP Request Rule Returns one TCP Request Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetTCPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20017
func (*TCPRequestRuleApiService) GetTCPRequestRules ¶
func (a *TCPRequestRuleApiService) GetTCPRequestRules(ctx _context.Context, parentName string, parentType string, localVarOptionals *GetTCPRequestRulesOpts) (InlineResponse20016, *_nethttp.Response, error)
GetTCPRequestRules Return an array of all TCP Request Rules Returns all TCP Request Rules that are configured in specified parent and parent type.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param parentName Parent name
- @param parentType Parent type
- @param optional nil or *GetTCPRequestRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20016
func (*TCPRequestRuleApiService) ReplaceTCPRequestRule ¶
func (a *TCPRequestRuleApiService) ReplaceTCPRequestRule(ctx _context.Context, id int32, parentName string, parentType string, tcpRequestRule TcpRequestRule, localVarOptionals *ReplaceTCPRequestRuleOpts) (TcpRequestRule, *_nethttp.Response, error)
ReplaceTCPRequestRule Replace a TCP Request Rule Replaces a TCP Request Rule configuration by it's ID in the specified parent.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Request Rule ID
- @param parentName Parent name
- @param parentType Parent type
- @param tcpRequestRule
- @param optional nil or *ReplaceTCPRequestRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return TcpRequestRule
type TCPResponseRuleApiService ¶
type TCPResponseRuleApiService service
TCPResponseRuleApiService TCPResponseRuleApi service
func (*TCPResponseRuleApiService) CreateTCPResponseRule ¶
func (a *TCPResponseRuleApiService) CreateTCPResponseRule(ctx _context.Context, backend string, tcpResponseRule TcpResponseRule, localVarOptionals *CreateTCPResponseRuleOpts) (TcpResponseRule, *_nethttp.Response, error)
CreateTCPResponseRule Add a new TCP Response Rule Adds a new TCP Response Rule of the specified type in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Parent backend name
- @param tcpResponseRule
- @param optional nil or *CreateTCPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return TcpResponseRule
func (*TCPResponseRuleApiService) DeleteTCPResponseRule ¶
func (a *TCPResponseRuleApiService) DeleteTCPResponseRule(ctx _context.Context, id int32, backend string, localVarOptionals *DeleteTCPResponseRuleOpts) (*_nethttp.Response, error)
DeleteTCPResponseRule Delete a TCP Response Rule Deletes a TCP Response Rule configuration by it's ID from the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Response Rule ID
- @param backend Parent backend name
- @param optional nil or *DeleteTCPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
func (*TCPResponseRuleApiService) GetTCPResponseRule ¶
func (a *TCPResponseRuleApiService) GetTCPResponseRule(ctx _context.Context, id int32, backend string, localVarOptionals *GetTCPResponseRuleOpts) (InlineResponse20019, *_nethttp.Response, error)
GetTCPResponseRule Return one TCP Response Rule Returns one TCP Response Rule configuration by it's ID in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Response Rule ID
- @param backend Parent backend name
- @param optional nil or *GetTCPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20019
func (*TCPResponseRuleApiService) GetTCPResponseRules ¶
func (a *TCPResponseRuleApiService) GetTCPResponseRules(ctx _context.Context, backend string, localVarOptionals *GetTCPResponseRulesOpts) (InlineResponse20018, *_nethttp.Response, error)
GetTCPResponseRules Return an array of all TCP Response Rules Returns all TCP Response Rules that are configured in specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param backend Parent backend name
- @param optional nil or *GetTCPResponseRulesOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
@return InlineResponse20018
func (*TCPResponseRuleApiService) ReplaceTCPResponseRule ¶
func (a *TCPResponseRuleApiService) ReplaceTCPResponseRule(ctx _context.Context, id int32, backend string, tcpResponseRule TcpResponseRule, localVarOptionals *ReplaceTCPResponseRuleOpts) (TcpResponseRule, *_nethttp.Response, error)
ReplaceTCPResponseRule Replace a TCP Response Rule Replaces a TCP Response Rule configuration by it's ID in the specified backend.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id TCP Response Rule ID
- @param backend Parent backend name
- @param tcpResponseRule
- @param optional nil or *ReplaceTCPResponseRuleOpts - Optional Parameters:
- @param "TransactionId" (optional.String) - ID of the transaction where we want to add the operation. Cannot be used when version is specified.
- @param "Version" (optional.Int32) - Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
- @param "ForceReload" (optional.Bool) - 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.
@return TcpResponseRule
type TcpRequestRule ¶
type TcpRequestRule struct { Action string `json:"action,omitempty"` Cond string `json:"cond,omitempty"` CondTest string `json:"cond_test,omitempty"` Id *int32 `json:"id"` Timeout *int32 `json:"timeout,omitempty"` Type string `json:"type"` }
TcpRequestRule HAProxy TCP Request Rule configuration (corresponds to tcp-request)
type TcpResponseRule ¶
type TcpResponseRule struct { Action string `json:"action,omitempty"` Cond string `json:"cond,omitempty"` CondTest string `json:"cond_test,omitempty"` Id *int32 `json:"id"` Timeout *int32 `json:"timeout,omitempty"` Type string `json:"type"` }
TcpResponseRule HAProxy TCP Response Rule configuration (corresponds to tcp-response)
type Transaction ¶
type Transaction struct { Version int32 `json:"_version,omitempty"` Id string `json:"id,omitempty"` Status string `json:"status,omitempty"` }
Transaction HAProxy configuration transaction
type TransactionsApiService ¶
type TransactionsApiService service
TransactionsApiService TransactionsApi service
func (*TransactionsApiService) CommitTransaction ¶
func (a *TransactionsApiService) CommitTransaction(ctx _context.Context, id string, localVarOptionals *CommitTransactionOpts) (Transaction, *_nethttp.Response, error)
CommitTransaction Commit transaction Commit transaction, execute all operations in transaction and return msg
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Transaction id
- @param optional nil or *CommitTransactionOpts - Optional Parameters:
- @param "ForceReload" (optional.Bool) - 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.
@return Transaction
func (*TransactionsApiService) DeleteTransaction ¶
func (a *TransactionsApiService) DeleteTransaction(ctx _context.Context, id string) (*_nethttp.Response, error)
DeleteTransaction Delete a transaction Deletes a transaction.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Transaction id
func (*TransactionsApiService) GetTransaction ¶
func (a *TransactionsApiService) GetTransaction(ctx _context.Context, id string) (Transaction, *_nethttp.Response, error)
GetTransaction Return one HAProxy configuration transactions Returns one HAProxy configuration transactions.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id Transaction id
@return Transaction
func (*TransactionsApiService) GetTransactions ¶
func (a *TransactionsApiService) GetTransactions(ctx _context.Context, localVarOptionals *GetTransactionsOpts) ([]Transaction, *_nethttp.Response, error)
GetTransactions Return list of HAProxy configuration transactions. Returns a list of HAProxy configuration transactions. Transactions can be filtered by their status.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *GetTransactionsOpts - Optional Parameters:
- @param "Status" (optional.String) - Filter by transaction status
@return []Transaction
func (*TransactionsApiService) StartTransaction ¶
func (a *TransactionsApiService) StartTransaction(ctx _context.Context, version int32) (Transaction, *_nethttp.Response, error)
StartTransaction Start a new transaction Starts a new transaction and returns it's id
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param version Configuration version on which to work on
@return Transaction
Source Files ¶
- api_acl.go
- api_backend.go
- api_backend_options.go
- api_backend_switching_rule.go
- api_bind.go
- api_configuration.go
- api_defaults.go
- api_discovery.go
- api_filter.go
- api_frontend.go
- api_frontend_options.go
- api_global.go
- api_ha_proxy_configuration_management.go
- api_http_request_rule.go
- api_http_response_rule.go
- api_information.go
- api_log_target.go
- api_reloads.go
- api_server.go
- api_server_switching_rule.go
- api_sites.go
- api_specification.go
- api_stats.go
- api_stick_rule.go
- api_tcp_request_rule.go
- api_tcp_response_rule.go
- api_transactions.go
- client.go
- configuration.go
- model_acl.go
- model_backend.go
- model_backend_hash_type.go
- model_backend_stick_table.go
- model_backend_switching_rule.go
- model_balance.go
- model_bind.go
- model_default_server.go
- model_defaults.go
- model_endpoint.go
- model_error.go
- model_errorfile.go
- model_filter.go
- model_forwardfor.go
- model_frontend.go
- model_global.go
- model_global_cpu_maps.go
- model_global_runtime_apis.go
- model_http_request_rule.go
- model_http_response_rule.go
- model_httpchk.go
- model_info.go
- model_info_api.go
- model_info_system.go
- model_info_system_cpu_info.go
- model_info_system_mem_info.go
- model_inline_response_200.go
- model_inline_response_200_1.go
- model_inline_response_200_10.go
- model_inline_response_200_11.go
- model_inline_response_200_12.go
- model_inline_response_200_13.go
- model_inline_response_200_14.go
- model_inline_response_200_15.go
- model_inline_response_200_16.go
- model_inline_response_200_17.go
- model_inline_response_200_18.go
- model_inline_response_200_19.go
- model_inline_response_200_2.go
- model_inline_response_200_20.go
- model_inline_response_200_21.go
- model_inline_response_200_22.go
- model_inline_response_200_23.go
- model_inline_response_200_24.go
- model_inline_response_200_25.go
- model_inline_response_200_26.go
- model_inline_response_200_27.go
- model_inline_response_200_28.go
- model_inline_response_200_29.go
- model_inline_response_200_3.go
- model_inline_response_200_30.go
- model_inline_response_200_31.go
- model_inline_response_200_32.go
- model_inline_response_200_4.go
- model_inline_response_200_5.go
- model_inline_response_200_6.go
- model_inline_response_200_7.go
- model_inline_response_200_8.go
- model_inline_response_200_9.go
- model_log_target.go
- model_native_stat.go
- model_native_stat_stats.go
- model_process_info.go
- model_process_info_haproxy.go
- model_redispatch.go
- model_reload.go
- model_server.go
- model_server_switching_rule.go
- model_site.go
- model_site_farms.go
- model_site_service.go
- model_stick_rule.go
- model_tcp_request_rule.go
- model_tcp_response_rule.go
- model_transaction.go
- response.go