fakes

package
Version: v0.0.0-...-9a89ba0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2014 License: Apache-2.0 Imports: 2 Imported by: 0

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) Do

func (c *FakeClient) Do(req *http.Request) (*http.Response, 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL