Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = CreateDefaultClientInsecureSkipVerify()
Functions ¶
Types ¶
type HTTPClient ¶
type HTTPClient interface {
Post(endpoint string, payload []byte) (*http.Response, error)
PostCustomized(endpoint string, payload []byte, f func(*http.Request)) (*http.Response, error)
Put(endpoint string, payload []byte) (*http.Response, error)
PutCustomized(endpoint string, payload []byte, f func(*http.Request)) (*http.Response, error)
Get(endpoint string) (*http.Response, error)
GetCustomized(endpoint string, f func(*http.Request)) (*http.Response, error)
Delete(endpoint string) (*http.Response, error)
}
func NewHTTPClient ¶
func NewHTTPClient(client Client, logger boshlog.Logger) HTTPClient
func NewHTTPClientOpts ¶
func NewHTTPClientOpts(client Client, logger boshlog.Logger, opts Opts) HTTPClient
Click to show internal directories.
Click to hide internal directories.