Documentation ¶
Index ¶
- Variables
- func APIKeyAuth(name, in, value string) runtime.ClientAuthInfoWriter
- func BasicAuth(username, password string) runtime.ClientAuthInfoWriter
- func BearerToken(token string) runtime.ClientAuthInfoWriter
- func TLSClient(opts TLSClientOptions) (*http.Client, error)
- func TLSClientAuth(opts TLSClientOptions) (*tls.Config, error)
- func TLSTransport(opts TLSClientOptions) (http.RoundTripper, error)
- type Runtime
- type TLSClientOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTimeout = 30 * time.Second
DefaultTimeout the default request timeout
View Source
var PassThroughAuth runtime.ClientAuthInfoWriter
PassThroughAuth never manipulates the request
Functions ¶
func APIKeyAuth ¶
func APIKeyAuth(name, in, value string) runtime.ClientAuthInfoWriter
APIKeyAuth provides an API key auth info writer
func BasicAuth ¶
func BasicAuth(username, password string) runtime.ClientAuthInfoWriter
BasicAuth provides a basic auth info writer
func BearerToken ¶
func BearerToken(token string) runtime.ClientAuthInfoWriter
BearerToken provides a header based oauth2 bearer access token auth info writer
func TLSClient ¶
func TLSClient(opts TLSClientOptions) (*http.Client, error)
TLSClient creates a http.Client for mutual auth
func TLSClientAuth ¶
func TLSClientAuth(opts TLSClientOptions) (*tls.Config, error)
TLSClientAuth creates a tls.Config for mutual auth
func TLSTransport ¶
func TLSTransport(opts TLSClientOptions) (http.RoundTripper, error)
TLSTransport creates a http client transport suitable for mutual tls auth
Types ¶
type Runtime ¶
type Runtime struct { DefaultMediaType string DefaultAuthentication runtime.ClientAuthInfoWriter Consumers map[string]runtime.Consumer Producers map[string]runtime.Producer Transport http.RoundTripper Jar http.CookieJar //Spec *spec.Document Host string BasePath string Formats strfmt.Registry Debug bool Context context.Context // contains filtered or unexported fields }
Runtime represents an API client that uses the transport to make http requests based on a swagger specification.
func NewWithClient ¶
NewWithClient allows you to create a new transport with a configured http.Client
Click to show internal directories.
Click to hide internal directories.