Documentation ¶
Overview ¶
Package client contains a client to send http requests to a swagger API. This implementation is untyped
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIKeyAuth ¶
func APIKeyAuth(name, in, value string) client.AuthInfoWriter
APIKeyAuth provides an API key auth info writer
func BasicAuth ¶
func BasicAuth(username, password string) client.AuthInfoWriter
BasicAuth provides a basic auth info writer
func BearerToken ¶
func BearerToken(token string) client.AuthInfoWriter
BearerToken provides a header based oauth2 bearer access token auth info writer
Types ¶
type APIError ¶
APIError wraps an error model and captures the status code
func NewAPIError ¶
NewAPIError creates a new API error
type Runtime ¶
type Runtime struct { DefaultMediaType string DefaultAuthentication client.AuthInfoWriter Consumers map[string]httpkit.Consumer Producers map[string]httpkit.Producer Transport http.RoundTripper Spec *spec.Document Host string BasePath string Formats strfmt.Registry Debug bool // contains filtered or unexported fields }
Runtime represents an API client that uses the transport to make http requests based on a swagger specification.
Click to show internal directories.
Click to hide internal directories.