Documentation ¶
Index ¶
Constants ¶
const ( // DefaultHost is the default Host // found in Meta (info) section of spec file DefaultHost string = "localhost" // DefaultBasePath is the default BasePath // found in Meta (info) section of spec file DefaultBasePath string = "/v2" )
Variables ¶
var Default = NewHTTPClient(nil)
Default haproxy dataplane client HTTP client.
var DefaultSchemes = []string{"http"}
DefaultSchemes are the default schemes found in Meta (info) section of spec file
Functions ¶
This section is empty.
Types ¶
type HaproxyDataplaneClient ¶
type HaproxyDataplaneClient struct { ACL acl.ClientService ACLRuntime acl_runtime.ClientService Backend backend.ClientService BackendSwitchingRule backend_switching_rule.ClientService Bind bind.ClientService Cache cache.ClientService Cluster cluster.ClientService Configuration configuration.ClientService DeclareCapture declare_capture.ClientService Defaults defaults.ClientService DgramBind dgram_bind.ClientService Discovery discovery.ClientService FcgiApp f_c_g_i_app.ClientService Filter filter.ClientService Frontend frontend.ClientService Global global.ClientService Group group.ClientService Health health.ClientService HTTPAfterResponseRule http_after_response_rule.ClientService HTTPCheck http_check.ClientService HTTPErrorRule http_error_rule.ClientService HTTPErrors http_errors.ClientService HTTPRequestRule http_request_rule.ClientService HTTPResponseRule http_response_rule.ClientService Information information.ClientService LogForward log_forward.ClientService LogTarget log_target.ClientService MailerEntry mailer_entry.ClientService Mailers mailers.ClientService Maps maps.ClientService Nameserver nameserver.ClientService Peer peer.ClientService PeerEntry peer_entry.ClientService ProcessManager process_manager.ClientService Reloads reloads.ClientService Resolver resolver.ClientService Ring ring.ClientService Server serverops.ClientService ServerSwitchingRule server_switching_rule.ClientService ServerTemplate server_template.ClientService ServiceDiscovery service_discovery.ClientService Sites sites.ClientService Specification specification.ClientService SpecificationOpenapiv3 specification_openapiv3.ClientService Spoe spoe.ClientService SpoeTransactions spoe_transactions.ClientService Stats stats.ClientService StickRule stick_rule.ClientService StickTable stick_table.ClientService Storage storage.ClientService TCPCheck tcp_check.ClientService TCPRequestRule tcp_request_rule.ClientService TCPResponseRule tcp_response_rule.ClientService Transactions transactions.ClientService User user.ClientService Userlist userlist.ClientService Transport runtime.ClientTransport }
HaproxyDataplaneClient is a client for haproxy dataplane client
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *HaproxyDataplaneClient
New creates a new haproxy dataplane client client
func NewHTTPClient ¶
func NewHTTPClient(formats strfmt.Registry) *HaproxyDataplaneClient
NewHTTPClient creates a new haproxy dataplane client HTTP client.
func NewHTTPClientWithConfig ¶
func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *HaproxyDataplaneClient
NewHTTPClientWithConfig creates a new haproxy dataplane client HTTP client, using a customizable transport config.
func (*HaproxyDataplaneClient) SetTransport ¶
func (c *HaproxyDataplaneClient) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client and all its subresources
type TransportConfig ¶
TransportConfig contains the transport related info, found in the meta section of the spec file.
func DefaultTransportConfig ¶
func DefaultTransportConfig() *TransportConfig
DefaultTransportConfig creates a TransportConfig with the default settings taken from the meta section of the spec file.
func (*TransportConfig) WithBasePath ¶
func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig
WithBasePath overrides the default basePath, provided by the meta section of the spec file.
func (*TransportConfig) WithHost ¶
func (cfg *TransportConfig) WithHost(host string) *TransportConfig
WithHost overrides the default host, provided by the meta section of the spec file.
func (*TransportConfig) WithSchemes ¶
func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig
WithSchemes overrides the default schemes, provided by the meta section of the spec file.