Documentation ¶
Index ¶
- type Client
- func (_m *Client) AddRetryCondition(f http.RetryConditionFunc)
- func (_m *Client) Delete(ctx context.Context, request *http.Request) (*http.Response, error)
- func (_m *Client) EXPECT() *Client_Expecter
- func (_m *Client) Get(ctx context.Context, request *http.Request) (*http.Response, error)
- func (_m *Client) NewJsonRequest() *http.Request
- func (_m *Client) NewRequest() *http.Request
- func (_m *Client) NewXmlRequest() *http.Request
- func (_m *Client) Patch(ctx context.Context, request *http.Request) (*http.Response, error)
- func (_m *Client) Post(ctx context.Context, request *http.Request) (*http.Response, error)
- func (_m *Client) Put(ctx context.Context, request *http.Request) (*http.Response, error)
- func (_m *Client) SetCookie(c *nethttp.Cookie)
- func (_m *Client) SetCookies(cs []*nethttp.Cookie)
- func (_m *Client) SetProxyUrl(p string)
- func (_m *Client) SetRedirectValidator(allowRequest func(*nethttp.Request) bool)
- func (_m *Client) SetTimeout(timeout time.Duration)
- func (_m *Client) SetUserAgent(ua string)
- type Client_AddRetryCondition_Call
- func (_c *Client_AddRetryCondition_Call) Return() *Client_AddRetryCondition_Call
- func (_c *Client_AddRetryCondition_Call) Run(run func(f http.RetryConditionFunc)) *Client_AddRetryCondition_Call
- func (_c *Client_AddRetryCondition_Call) RunAndReturn(run func(http.RetryConditionFunc)) *Client_AddRetryCondition_Call
- type Client_Delete_Call
- func (_c *Client_Delete_Call) Return(_a0 *http.Response, _a1 error) *Client_Delete_Call
- func (_c *Client_Delete_Call) Run(run func(ctx context.Context, request *http.Request)) *Client_Delete_Call
- func (_c *Client_Delete_Call) RunAndReturn(run func(context.Context, *http.Request) (*http.Response, error)) *Client_Delete_Call
- type Client_Expecter
- func (_e *Client_Expecter) AddRetryCondition(f interface{}) *Client_AddRetryCondition_Call
- func (_e *Client_Expecter) Delete(ctx interface{}, request interface{}) *Client_Delete_Call
- func (_e *Client_Expecter) Get(ctx interface{}, request interface{}) *Client_Get_Call
- func (_e *Client_Expecter) NewJsonRequest() *Client_NewJsonRequest_Call
- func (_e *Client_Expecter) NewRequest() *Client_NewRequest_Call
- func (_e *Client_Expecter) NewXmlRequest() *Client_NewXmlRequest_Call
- func (_e *Client_Expecter) Patch(ctx interface{}, request interface{}) *Client_Patch_Call
- func (_e *Client_Expecter) Post(ctx interface{}, request interface{}) *Client_Post_Call
- func (_e *Client_Expecter) Put(ctx interface{}, request interface{}) *Client_Put_Call
- func (_e *Client_Expecter) SetCookie(c interface{}) *Client_SetCookie_Call
- func (_e *Client_Expecter) SetCookies(cs interface{}) *Client_SetCookies_Call
- func (_e *Client_Expecter) SetProxyUrl(p interface{}) *Client_SetProxyUrl_Call
- func (_e *Client_Expecter) SetRedirectValidator(allowRequest interface{}) *Client_SetRedirectValidator_Call
- func (_e *Client_Expecter) SetTimeout(timeout interface{}) *Client_SetTimeout_Call
- func (_e *Client_Expecter) SetUserAgent(ua interface{}) *Client_SetUserAgent_Call
- type Client_Get_Call
- func (_c *Client_Get_Call) Return(_a0 *http.Response, _a1 error) *Client_Get_Call
- func (_c *Client_Get_Call) Run(run func(ctx context.Context, request *http.Request)) *Client_Get_Call
- func (_c *Client_Get_Call) RunAndReturn(run func(context.Context, *http.Request) (*http.Response, error)) *Client_Get_Call
- type Client_NewJsonRequest_Call
- type Client_NewRequest_Call
- type Client_NewXmlRequest_Call
- type Client_Patch_Call
- func (_c *Client_Patch_Call) Return(_a0 *http.Response, _a1 error) *Client_Patch_Call
- func (_c *Client_Patch_Call) Run(run func(ctx context.Context, request *http.Request)) *Client_Patch_Call
- func (_c *Client_Patch_Call) RunAndReturn(run func(context.Context, *http.Request) (*http.Response, error)) *Client_Patch_Call
- type Client_Post_Call
- func (_c *Client_Post_Call) Return(_a0 *http.Response, _a1 error) *Client_Post_Call
- func (_c *Client_Post_Call) Run(run func(ctx context.Context, request *http.Request)) *Client_Post_Call
- func (_c *Client_Post_Call) RunAndReturn(run func(context.Context, *http.Request) (*http.Response, error)) *Client_Post_Call
- type Client_Put_Call
- func (_c *Client_Put_Call) Return(_a0 *http.Response, _a1 error) *Client_Put_Call
- func (_c *Client_Put_Call) Run(run func(ctx context.Context, request *http.Request)) *Client_Put_Call
- func (_c *Client_Put_Call) RunAndReturn(run func(context.Context, *http.Request) (*http.Response, error)) *Client_Put_Call
- type Client_SetCookie_Call
- type Client_SetCookies_Call
- type Client_SetProxyUrl_Call
- type Client_SetRedirectValidator_Call
- func (_c *Client_SetRedirectValidator_Call) Return() *Client_SetRedirectValidator_Call
- func (_c *Client_SetRedirectValidator_Call) Run(run func(allowRequest func(*nethttp.Request) bool)) *Client_SetRedirectValidator_Call
- func (_c *Client_SetRedirectValidator_Call) RunAndReturn(run func(func(*nethttp.Request) bool)) *Client_SetRedirectValidator_Call
- type Client_SetTimeout_Call
- type Client_SetUserAgent_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Client) AddRetryCondition ¶
func (_m *Client) AddRetryCondition(f http.RetryConditionFunc)
AddRetryCondition provides a mock function with given fields: f
func (*Client) EXPECT ¶
func (_m *Client) EXPECT() *Client_Expecter
func (*Client) NewJsonRequest ¶
NewJsonRequest provides a mock function with given fields:
func (*Client) NewRequest ¶
NewRequest provides a mock function with given fields:
func (*Client) NewXmlRequest ¶
NewXmlRequest provides a mock function with given fields:
func (*Client) SetCookies ¶
SetCookies provides a mock function with given fields: cs
func (*Client) SetProxyUrl ¶
SetProxyUrl provides a mock function with given fields: p
func (*Client) SetRedirectValidator ¶
SetRedirectValidator provides a mock function with given fields: allowRequest
func (*Client) SetTimeout ¶
SetTimeout provides a mock function with given fields: timeout
func (*Client) SetUserAgent ¶
SetUserAgent provides a mock function with given fields: ua
type Client_AddRetryCondition_Call ¶
Client_AddRetryCondition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddRetryCondition'
func (*Client_AddRetryCondition_Call) Return ¶
func (_c *Client_AddRetryCondition_Call) Return() *Client_AddRetryCondition_Call
func (*Client_AddRetryCondition_Call) Run ¶
func (_c *Client_AddRetryCondition_Call) Run(run func(f http.RetryConditionFunc)) *Client_AddRetryCondition_Call
func (*Client_AddRetryCondition_Call) RunAndReturn ¶
func (_c *Client_AddRetryCondition_Call) RunAndReturn(run func(http.RetryConditionFunc)) *Client_AddRetryCondition_Call
type Client_Delete_Call ¶
Client_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Client_Delete_Call) Return ¶
func (_c *Client_Delete_Call) Return(_a0 *http.Response, _a1 error) *Client_Delete_Call
func (*Client_Delete_Call) Run ¶
func (_c *Client_Delete_Call) Run(run func(ctx context.Context, request *http.Request)) *Client_Delete_Call
func (*Client_Delete_Call) RunAndReturn ¶
func (_c *Client_Delete_Call) RunAndReturn(run func(context.Context, *http.Request) (*http.Response, error)) *Client_Delete_Call
type Client_Expecter ¶
type Client_Expecter struct {
// contains filtered or unexported fields
}
func (*Client_Expecter) AddRetryCondition ¶
func (_e *Client_Expecter) AddRetryCondition(f interface{}) *Client_AddRetryCondition_Call
AddRetryCondition is a helper method to define mock.On call
- f http.RetryConditionFunc
func (*Client_Expecter) Delete ¶
func (_e *Client_Expecter) Delete(ctx interface{}, request interface{}) *Client_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- request *http.Request
func (*Client_Expecter) Get ¶
func (_e *Client_Expecter) Get(ctx interface{}, request interface{}) *Client_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- request *http.Request
func (*Client_Expecter) NewJsonRequest ¶
func (_e *Client_Expecter) NewJsonRequest() *Client_NewJsonRequest_Call
NewJsonRequest is a helper method to define mock.On call
func (*Client_Expecter) NewRequest ¶
func (_e *Client_Expecter) NewRequest() *Client_NewRequest_Call
NewRequest is a helper method to define mock.On call
func (*Client_Expecter) NewXmlRequest ¶
func (_e *Client_Expecter) NewXmlRequest() *Client_NewXmlRequest_Call
NewXmlRequest is a helper method to define mock.On call
func (*Client_Expecter) Patch ¶
func (_e *Client_Expecter) Patch(ctx interface{}, request interface{}) *Client_Patch_Call
Patch is a helper method to define mock.On call
- ctx context.Context
- request *http.Request
func (*Client_Expecter) Post ¶
func (_e *Client_Expecter) Post(ctx interface{}, request interface{}) *Client_Post_Call
Post is a helper method to define mock.On call
- ctx context.Context
- request *http.Request
func (*Client_Expecter) Put ¶
func (_e *Client_Expecter) Put(ctx interface{}, request interface{}) *Client_Put_Call
Put is a helper method to define mock.On call
- ctx context.Context
- request *http.Request
func (*Client_Expecter) SetCookie ¶
func (_e *Client_Expecter) SetCookie(c interface{}) *Client_SetCookie_Call
SetCookie is a helper method to define mock.On call
- c *nethttp.Cookie
func (*Client_Expecter) SetCookies ¶
func (_e *Client_Expecter) SetCookies(cs interface{}) *Client_SetCookies_Call
SetCookies is a helper method to define mock.On call
- cs []*nethttp.Cookie
func (*Client_Expecter) SetProxyUrl ¶
func (_e *Client_Expecter) SetProxyUrl(p interface{}) *Client_SetProxyUrl_Call
SetProxyUrl is a helper method to define mock.On call
- p string
func (*Client_Expecter) SetRedirectValidator ¶
func (_e *Client_Expecter) SetRedirectValidator(allowRequest interface{}) *Client_SetRedirectValidator_Call
SetRedirectValidator is a helper method to define mock.On call
- allowRequest func(*nethttp.Request) bool
func (*Client_Expecter) SetTimeout ¶
func (_e *Client_Expecter) SetTimeout(timeout interface{}) *Client_SetTimeout_Call
SetTimeout is a helper method to define mock.On call
- timeout time.Duration
func (*Client_Expecter) SetUserAgent ¶
func (_e *Client_Expecter) SetUserAgent(ua interface{}) *Client_SetUserAgent_Call
SetUserAgent is a helper method to define mock.On call
- ua string
type Client_Get_Call ¶
Client_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Client_Get_Call) Return ¶
func (_c *Client_Get_Call) Return(_a0 *http.Response, _a1 error) *Client_Get_Call
func (*Client_Get_Call) Run ¶
func (_c *Client_Get_Call) Run(run func(ctx context.Context, request *http.Request)) *Client_Get_Call
func (*Client_Get_Call) RunAndReturn ¶
func (_c *Client_Get_Call) RunAndReturn(run func(context.Context, *http.Request) (*http.Response, error)) *Client_Get_Call
type Client_NewJsonRequest_Call ¶
Client_NewJsonRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewJsonRequest'
func (*Client_NewJsonRequest_Call) Return ¶
func (_c *Client_NewJsonRequest_Call) Return(_a0 *http.Request) *Client_NewJsonRequest_Call
func (*Client_NewJsonRequest_Call) Run ¶
func (_c *Client_NewJsonRequest_Call) Run(run func()) *Client_NewJsonRequest_Call
func (*Client_NewJsonRequest_Call) RunAndReturn ¶
func (_c *Client_NewJsonRequest_Call) RunAndReturn(run func() *http.Request) *Client_NewJsonRequest_Call
type Client_NewRequest_Call ¶
Client_NewRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewRequest'
func (*Client_NewRequest_Call) Return ¶
func (_c *Client_NewRequest_Call) Return(_a0 *http.Request) *Client_NewRequest_Call
func (*Client_NewRequest_Call) Run ¶
func (_c *Client_NewRequest_Call) Run(run func()) *Client_NewRequest_Call
func (*Client_NewRequest_Call) RunAndReturn ¶
func (_c *Client_NewRequest_Call) RunAndReturn(run func() *http.Request) *Client_NewRequest_Call
type Client_NewXmlRequest_Call ¶
Client_NewXmlRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewXmlRequest'
func (*Client_NewXmlRequest_Call) Return ¶
func (_c *Client_NewXmlRequest_Call) Return(_a0 *http.Request) *Client_NewXmlRequest_Call
func (*Client_NewXmlRequest_Call) Run ¶
func (_c *Client_NewXmlRequest_Call) Run(run func()) *Client_NewXmlRequest_Call
func (*Client_NewXmlRequest_Call) RunAndReturn ¶
func (_c *Client_NewXmlRequest_Call) RunAndReturn(run func() *http.Request) *Client_NewXmlRequest_Call
type Client_Patch_Call ¶
Client_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'
func (*Client_Patch_Call) Return ¶
func (_c *Client_Patch_Call) Return(_a0 *http.Response, _a1 error) *Client_Patch_Call
func (*Client_Patch_Call) Run ¶
func (_c *Client_Patch_Call) Run(run func(ctx context.Context, request *http.Request)) *Client_Patch_Call
func (*Client_Patch_Call) RunAndReturn ¶
func (_c *Client_Patch_Call) RunAndReturn(run func(context.Context, *http.Request) (*http.Response, error)) *Client_Patch_Call
type Client_Post_Call ¶
Client_Post_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Post'
func (*Client_Post_Call) Return ¶
func (_c *Client_Post_Call) Return(_a0 *http.Response, _a1 error) *Client_Post_Call
func (*Client_Post_Call) Run ¶
func (_c *Client_Post_Call) Run(run func(ctx context.Context, request *http.Request)) *Client_Post_Call
func (*Client_Post_Call) RunAndReturn ¶
func (_c *Client_Post_Call) RunAndReturn(run func(context.Context, *http.Request) (*http.Response, error)) *Client_Post_Call
type Client_Put_Call ¶
Client_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'
func (*Client_Put_Call) Return ¶
func (_c *Client_Put_Call) Return(_a0 *http.Response, _a1 error) *Client_Put_Call
func (*Client_Put_Call) Run ¶
func (_c *Client_Put_Call) Run(run func(ctx context.Context, request *http.Request)) *Client_Put_Call
func (*Client_Put_Call) RunAndReturn ¶
func (_c *Client_Put_Call) RunAndReturn(run func(context.Context, *http.Request) (*http.Response, error)) *Client_Put_Call
type Client_SetCookie_Call ¶
Client_SetCookie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCookie'
func (*Client_SetCookie_Call) Return ¶
func (_c *Client_SetCookie_Call) Return() *Client_SetCookie_Call
func (*Client_SetCookie_Call) Run ¶
func (_c *Client_SetCookie_Call) Run(run func(c *nethttp.Cookie)) *Client_SetCookie_Call
func (*Client_SetCookie_Call) RunAndReturn ¶
func (_c *Client_SetCookie_Call) RunAndReturn(run func(*nethttp.Cookie)) *Client_SetCookie_Call
type Client_SetCookies_Call ¶
Client_SetCookies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCookies'
func (*Client_SetCookies_Call) Return ¶
func (_c *Client_SetCookies_Call) Return() *Client_SetCookies_Call
func (*Client_SetCookies_Call) Run ¶
func (_c *Client_SetCookies_Call) Run(run func(cs []*nethttp.Cookie)) *Client_SetCookies_Call
func (*Client_SetCookies_Call) RunAndReturn ¶
func (_c *Client_SetCookies_Call) RunAndReturn(run func([]*nethttp.Cookie)) *Client_SetCookies_Call
type Client_SetProxyUrl_Call ¶
Client_SetProxyUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetProxyUrl'
func (*Client_SetProxyUrl_Call) Return ¶
func (_c *Client_SetProxyUrl_Call) Return() *Client_SetProxyUrl_Call
func (*Client_SetProxyUrl_Call) Run ¶
func (_c *Client_SetProxyUrl_Call) Run(run func(p string)) *Client_SetProxyUrl_Call
func (*Client_SetProxyUrl_Call) RunAndReturn ¶
func (_c *Client_SetProxyUrl_Call) RunAndReturn(run func(string)) *Client_SetProxyUrl_Call
type Client_SetRedirectValidator_Call ¶
Client_SetRedirectValidator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetRedirectValidator'
func (*Client_SetRedirectValidator_Call) Return ¶
func (_c *Client_SetRedirectValidator_Call) Return() *Client_SetRedirectValidator_Call
func (*Client_SetRedirectValidator_Call) Run ¶
func (_c *Client_SetRedirectValidator_Call) Run(run func(allowRequest func(*nethttp.Request) bool)) *Client_SetRedirectValidator_Call
func (*Client_SetRedirectValidator_Call) RunAndReturn ¶
func (_c *Client_SetRedirectValidator_Call) RunAndReturn(run func(func(*nethttp.Request) bool)) *Client_SetRedirectValidator_Call
type Client_SetTimeout_Call ¶
Client_SetTimeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetTimeout'
func (*Client_SetTimeout_Call) Return ¶
func (_c *Client_SetTimeout_Call) Return() *Client_SetTimeout_Call
func (*Client_SetTimeout_Call) Run ¶
func (_c *Client_SetTimeout_Call) Run(run func(timeout time.Duration)) *Client_SetTimeout_Call
func (*Client_SetTimeout_Call) RunAndReturn ¶
func (_c *Client_SetTimeout_Call) RunAndReturn(run func(time.Duration)) *Client_SetTimeout_Call
type Client_SetUserAgent_Call ¶
Client_SetUserAgent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetUserAgent'
func (*Client_SetUserAgent_Call) Return ¶
func (_c *Client_SetUserAgent_Call) Return() *Client_SetUserAgent_Call
func (*Client_SetUserAgent_Call) Run ¶
func (_c *Client_SetUserAgent_Call) Run(run func(ua string)) *Client_SetUserAgent_Call
func (*Client_SetUserAgent_Call) RunAndReturn ¶
func (_c *Client_SetUserAgent_Call) RunAndReturn(run func(string)) *Client_SetUserAgent_Call