Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = CreateDefaultClient()
Functions ¶
func CreateDefaultClient ¶
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
Click to show internal directories.
Click to hide internal directories.