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
Defaults defaults.ClientService
Discovery discovery.ClientService
Filter filter.ClientService
Frontend frontend.ClientService
Global global.ClientService
HTTPCheck http_check.ClientService
HTTPRequestRule http_request_rule.ClientService
HTTPResponseRule http_response_rule.ClientService
Information information.ClientService
LogTarget log_target.ClientService
Maps maps.ClientService
Nameserver nameserver.ClientService
Peer peer.ClientService
PeerEntry peer_entry.ClientService
Reloads reloads.ClientService
Resolver resolver.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
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.