Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClient ¶
type FakeClient struct { StatusCode int CallCount int Error error RequestBodies []string Requests []*http.Request // contains filtered or unexported fields }
func NewFakeClient ¶
func NewFakeClient() (fakeClient *FakeClient)
func (*FakeClient) AddDoBehavior ¶
func (c *FakeClient) AddDoBehavior(resp *http.Response, err error)
func (*FakeClient) SetMessage ¶
func (c *FakeClient) SetMessage(message string)
func (*FakeClient) SetNilResponse ¶
func (c *FakeClient) SetNilResponse()
type FakeRetryStrategy ¶
type FakeRetryStrategy struct {
// contains filtered or unexported fields
}
func NewFakeRetryStrategy ¶
func NewFakeRetryStrategy() *FakeRetryStrategy
func (*FakeRetryStrategy) AddIsRetryableReturn ¶
func (rs *FakeRetryStrategy) AddIsRetryableReturn(isRetryable bool)
func (*FakeRetryStrategy) NewRetryHandler ¶
func (rs *FakeRetryStrategy) NewRetryHandler() boshhttp.RetryHandler
Click to show internal directories.
Click to hide internal directories.