httpfakes

package
v11.8.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClient

type FakeClient struct {
	ConfigureRetriesStub func(http.RetryOptions)

	DeleteBodyStub func(context.Context, string, ...func(req *retryablehttp.Request) error) ([]byte, *httpa.Response, error)

	DeleteJSONStub func(context.Context, interface{}, string, ...func(req *retryablehttp.Request) error) (*httpa.Response, error)

	GetBodyStub func(context.Context, string, ...func(req *retryablehttp.Request) error) ([]byte, *httpa.Response, error)

	GetJSONStub func(context.Context, interface{}, string, ...func(req *retryablehttp.Request) error) (*httpa.Response, error)

	PatchBodyStub func(context.Context, string, ...func(req *retryablehttp.Request) error) ([]byte, *httpa.Response, error)

	PatchJSONStub func(context.Context, interface{}, string, ...func(req *retryablehttp.Request) error) (*httpa.Response, error)

	PostBodyStub func(context.Context, string, ...func(req *retryablehttp.Request) error) ([]byte, *httpa.Response, error)

	PostJSONStub func(context.Context, interface{}, string, ...func(req *retryablehttp.Request) error) (*httpa.Response, error)

	PutBodyStub func(context.Context, string, ...func(req *retryablehttp.Request) error) ([]byte, *httpa.Response, error)

	PutJSONStub func(context.Context, interface{}, string, ...func(req *retryablehttp.Request) error) (*httpa.Response, error)

	RequestBodyStub func(context.Context, string, string, ...func(req *retryablehttp.Request) error) ([]byte, *httpa.Response, error)

	RequestJSONStub func(context.Context, interface{}, string, string, ...func(req *retryablehttp.Request) error) (*httpa.Response, error)
	// contains filtered or unexported fields
}

func (*FakeClient) ConfigureRetries

func (fake *FakeClient) ConfigureRetries(arg1 http.RetryOptions)

func (*FakeClient) ConfigureRetriesArgsForCall

func (fake *FakeClient) ConfigureRetriesArgsForCall(i int) http.RetryOptions

func (*FakeClient) ConfigureRetriesCallCount

func (fake *FakeClient) ConfigureRetriesCallCount() int

func (*FakeClient) ConfigureRetriesCalls

func (fake *FakeClient) ConfigureRetriesCalls(stub func(http.RetryOptions))

func (*FakeClient) DeleteBody

func (fake *FakeClient) DeleteBody(arg1 context.Context, arg2 string, arg3 ...func(req *retryablehttp.Request) error) ([]byte, *httpa.Response, error)

func (*FakeClient) DeleteBodyArgsForCall

func (fake *FakeClient) DeleteBodyArgsForCall(i int) (context.Context, string, []func(req *retryablehttp.Request) error)

func (*FakeClient) DeleteBodyCallCount

func (fake *FakeClient) DeleteBodyCallCount() int

func (*FakeClient) DeleteBodyCalls

func (fake *FakeClient) DeleteBodyCalls(stub func(context.Context, string, ...func(req *retryablehttp.Request) error) ([]byte, *httpa.Response, error))

func (*FakeClient) DeleteBodyReturns

func (fake *FakeClient) DeleteBodyReturns(result1 []byte, result2 *httpa.Response, result3 error)

func (*FakeClient) DeleteBodyReturnsOnCall

func (fake *FakeClient) DeleteBodyReturnsOnCall(i int, result1 []byte, result2 *httpa.Response, result3 error)

func (*FakeClient) DeleteJSON

func (fake *FakeClient) DeleteJSON(arg1 context.Context, arg2 interface{}, arg3 string, arg4 ...func(req *retryablehttp.Request) error) (*httpa.Response, error)

func (*FakeClient) DeleteJSONArgsForCall

func (fake *FakeClient) DeleteJSONArgsForCall(i int) (context.Context, interface{}, string, []func(req *retryablehttp.Request) error)

func (*FakeClient) DeleteJSONCallCount

func (fake *FakeClient) DeleteJSONCallCount() int

func (*FakeClient) DeleteJSONCalls

func (fake *FakeClient) DeleteJSONCalls(stub func(context.Context, interface{}, string, ...func(req *retryablehttp.Request) error) (*httpa.Response, error))

func (*FakeClient) DeleteJSONReturns

func (fake *FakeClient) DeleteJSONReturns(result1 *httpa.Response, result2 error)

func (*FakeClient) DeleteJSONReturnsOnCall

func (fake *FakeClient) DeleteJSONReturnsOnCall(i int, result1 *httpa.Response, result2 error)

func (*FakeClient) GetBody

func (fake *FakeClient) GetBody(arg1 context.Context, arg2 string, arg3 ...func(req *retryablehttp.Request) error) ([]byte, *httpa.Response, error)

func (*FakeClient) GetBodyArgsForCall

func (fake *FakeClient) GetBodyArgsForCall(i int) (context.Context, string, []func(req *retryablehttp.Request) error)

func (*FakeClient) GetBodyCallCount

func (fake *FakeClient) GetBodyCallCount() int

func (*FakeClient) GetBodyCalls

func (fake *FakeClient) GetBodyCalls(stub func(context.Context, string, ...func(req *retryablehttp.Request) error) ([]byte, *httpa.Response, error))

func (*FakeClient) GetBodyReturns

func (fake *FakeClient) GetBodyReturns(result1 []byte, result2 *httpa.Response, result3 error)

func (*FakeClient) GetBodyReturnsOnCall

func (fake *FakeClient) GetBodyReturnsOnCall(i int, result1 []byte, result2 *httpa.Response, result3 error)

func (*FakeClient) GetJSON

func (fake *FakeClient) GetJSON(arg1 context.Context, arg2 interface{}, arg3 string, arg4 ...func(req *retryablehttp.Request) error) (*httpa.Response, error)

func (*FakeClient) GetJSONArgsForCall

func (fake *FakeClient) GetJSONArgsForCall(i int) (context.Context, interface{}, string, []func(req *retryablehttp.Request) error)

func (*FakeClient) GetJSONCallCount

func (fake *FakeClient) GetJSONCallCount() int

func (*FakeClient) GetJSONCalls

func (fake *FakeClient) GetJSONCalls(stub func(context.Context, interface{}, string, ...func(req *retryablehttp.Request) error) (*httpa.Response, error))

func (*FakeClient) GetJSONReturns

func (fake *FakeClient) GetJSONReturns(result1 *httpa.Response, result2 error)

func (*FakeClient) GetJSONReturnsOnCall

func (fake *FakeClient) GetJSONReturnsOnCall(i int, result1 *httpa.Response, result2 error)

func (*FakeClient) Invocations

func (fake *FakeClient) Invocations() map[string][][]interface{}

func (*FakeClient) PatchBody

func (fake *FakeClient) PatchBody(arg1 context.Context, arg2 string, arg3 ...func(req *retryablehttp.Request) error) ([]byte, *httpa.Response, error)

func (*FakeClient) PatchBodyArgsForCall

func (fake *FakeClient) PatchBodyArgsForCall(i int) (context.Context, string, []func(req *retryablehttp.Request) error)

func (*FakeClient) PatchBodyCallCount

func (fake *FakeClient) PatchBodyCallCount() int

func (*FakeClient) PatchBodyCalls

func (fake *FakeClient) PatchBodyCalls(stub func(context.Context, string, ...func(req *retryablehttp.Request) error) ([]byte, *httpa.Response, error))

func (*FakeClient) PatchBodyReturns

func (fake *FakeClient) PatchBodyReturns(result1 []byte, result2 *httpa.Response, result3 error)

func (*FakeClient) PatchBodyReturnsOnCall

func (fake *FakeClient) PatchBodyReturnsOnCall(i int, result1 []byte, result2 *httpa.Response, result3 error)

func (*FakeClient) PatchJSON

func (fake *FakeClient) PatchJSON(arg1 context.Context, arg2 interface{}, arg3 string, arg4 ...func(req *retryablehttp.Request) error) (*httpa.Response, error)

func (*FakeClient) PatchJSONArgsForCall

func (fake *FakeClient) PatchJSONArgsForCall(i int) (context.Context, interface{}, string, []func(req *retryablehttp.Request) error)

func (*FakeClient) PatchJSONCallCount

func (fake *FakeClient) PatchJSONCallCount() int

func (*FakeClient) PatchJSONCalls

func (fake *FakeClient) PatchJSONCalls(stub func(context.Context, interface{}, string, ...func(req *retryablehttp.Request) error) (*httpa.Response, error))

func (*FakeClient) PatchJSONReturns

func (fake *FakeClient) PatchJSONReturns(result1 *httpa.Response, result2 error)

func (*FakeClient) PatchJSONReturnsOnCall

func (fake *FakeClient) PatchJSONReturnsOnCall(i int, result1 *httpa.Response, result2 error)

func (*FakeClient) PostBody

func (fake *FakeClient) PostBody(arg1 context.Context, arg2 string, arg3 ...func(req *retryablehttp.Request) error) ([]byte, *httpa.Response, error)

func (*FakeClient) PostBodyArgsForCall

func (fake *FakeClient) PostBodyArgsForCall(i int) (context.Context, string, []func(req *retryablehttp.Request) error)

func (*FakeClient) PostBodyCallCount

func (fake *FakeClient) PostBodyCallCount() int

func (*FakeClient) PostBodyCalls

func (fake *FakeClient) PostBodyCalls(stub func(context.Context, string, ...func(req *retryablehttp.Request) error) ([]byte, *httpa.Response, error))

func (*FakeClient) PostBodyReturns

func (fake *FakeClient) PostBodyReturns(result1 []byte, result2 *httpa.Response, result3 error)

func (*FakeClient) PostBodyReturnsOnCall

func (fake *FakeClient) PostBodyReturnsOnCall(i int, result1 []byte, result2 *httpa.Response, result3 error)

func (*FakeClient) PostJSON

func (fake *FakeClient) PostJSON(arg1 context.Context, arg2 interface{}, arg3 string, arg4 ...func(req *retryablehttp.Request) error) (*httpa.Response, error)

func (*FakeClient) PostJSONArgsForCall

func (fake *FakeClient) PostJSONArgsForCall(i int) (context.Context, interface{}, string, []func(req *retryablehttp.Request) error)

func (*FakeClient) PostJSONCallCount

func (fake *FakeClient) PostJSONCallCount() int

func (*FakeClient) PostJSONCalls

func (fake *FakeClient) PostJSONCalls(stub func(context.Context, interface{}, string, ...func(req *retryablehttp.Request) error) (*httpa.Response, error))

func (*FakeClient) PostJSONReturns

func (fake *FakeClient) PostJSONReturns(result1 *httpa.Response, result2 error)

func (*FakeClient) PostJSONReturnsOnCall

func (fake *FakeClient) PostJSONReturnsOnCall(i int, result1 *httpa.Response, result2 error)

func (*FakeClient) PutBody

func (fake *FakeClient) PutBody(arg1 context.Context, arg2 string, arg3 ...func(req *retryablehttp.Request) error) ([]byte, *httpa.Response, error)

func (*FakeClient) PutBodyArgsForCall

func (fake *FakeClient) PutBodyArgsForCall(i int) (context.Context, string, []func(req *retryablehttp.Request) error)

func (*FakeClient) PutBodyCallCount

func (fake *FakeClient) PutBodyCallCount() int

func (*FakeClient) PutBodyCalls

func (fake *FakeClient) PutBodyCalls(stub func(context.Context, string, ...func(req *retryablehttp.Request) error) ([]byte, *httpa.Response, error))

func (*FakeClient) PutBodyReturns

func (fake *FakeClient) PutBodyReturns(result1 []byte, result2 *httpa.Response, result3 error)

func (*FakeClient) PutBodyReturnsOnCall

func (fake *FakeClient) PutBodyReturnsOnCall(i int, result1 []byte, result2 *httpa.Response, result3 error)

func (*FakeClient) PutJSON

func (fake *FakeClient) PutJSON(arg1 context.Context, arg2 interface{}, arg3 string, arg4 ...func(req *retryablehttp.Request) error) (*httpa.Response, error)

func (*FakeClient) PutJSONArgsForCall

func (fake *FakeClient) PutJSONArgsForCall(i int) (context.Context, interface{}, string, []func(req *retryablehttp.Request) error)

func (*FakeClient) PutJSONCallCount

func (fake *FakeClient) PutJSONCallCount() int

func (*FakeClient) PutJSONCalls

func (fake *FakeClient) PutJSONCalls(stub func(context.Context, interface{}, string, ...func(req *retryablehttp.Request) error) (*httpa.Response, error))

func (*FakeClient) PutJSONReturns

func (fake *FakeClient) PutJSONReturns(result1 *httpa.Response, result2 error)

func (*FakeClient) PutJSONReturnsOnCall

func (fake *FakeClient) PutJSONReturnsOnCall(i int, result1 *httpa.Response, result2 error)

func (*FakeClient) RequestBody

func (fake *FakeClient) RequestBody(arg1 context.Context, arg2 string, arg3 string, arg4 ...func(req *retryablehttp.Request) error) ([]byte, *httpa.Response, error)

func (*FakeClient) RequestBodyArgsForCall

func (fake *FakeClient) RequestBodyArgsForCall(i int) (context.Context, string, string, []func(req *retryablehttp.Request) error)

func (*FakeClient) RequestBodyCallCount

func (fake *FakeClient) RequestBodyCallCount() int

func (*FakeClient) RequestBodyCalls

func (fake *FakeClient) RequestBodyCalls(stub func(context.Context, string, string, ...func(req *retryablehttp.Request) error) ([]byte, *httpa.Response, error))

func (*FakeClient) RequestBodyReturns

func (fake *FakeClient) RequestBodyReturns(result1 []byte, result2 *httpa.Response, result3 error)

func (*FakeClient) RequestBodyReturnsOnCall

func (fake *FakeClient) RequestBodyReturnsOnCall(i int, result1 []byte, result2 *httpa.Response, result3 error)

func (*FakeClient) RequestJSON

func (fake *FakeClient) RequestJSON(arg1 context.Context, arg2 interface{}, arg3 string, arg4 string, arg5 ...func(req *retryablehttp.Request) error) (*httpa.Response, error)

func (*FakeClient) RequestJSONArgsForCall

func (fake *FakeClient) RequestJSONArgsForCall(i int) (context.Context, interface{}, string, string, []func(req *retryablehttp.Request) error)

func (*FakeClient) RequestJSONCallCount

func (fake *FakeClient) RequestJSONCallCount() int

func (*FakeClient) RequestJSONCalls

func (fake *FakeClient) RequestJSONCalls(stub func(context.Context, interface{}, string, string, ...func(req *retryablehttp.Request) error) (*httpa.Response, error))

func (*FakeClient) RequestJSONReturns

func (fake *FakeClient) RequestJSONReturns(result1 *httpa.Response, result2 error)

func (*FakeClient) RequestJSONReturnsOnCall

func (fake *FakeClient) RequestJSONReturnsOnCall(i int, result1 *httpa.Response, result2 error)

type FakeRoundTripper

type FakeRoundTripper struct {
	RoundTripStub func(*httpa.Request) (*httpa.Response, error)
	// contains filtered or unexported fields
}

func (*FakeRoundTripper) Invocations

func (fake *FakeRoundTripper) Invocations() map[string][][]interface{}

func (*FakeRoundTripper) RoundTrip

func (fake *FakeRoundTripper) RoundTrip(arg1 *httpa.Request) (*httpa.Response, error)

func (*FakeRoundTripper) RoundTripArgsForCall

func (fake *FakeRoundTripper) RoundTripArgsForCall(i int) *httpa.Request

func (*FakeRoundTripper) RoundTripCallCount

func (fake *FakeRoundTripper) RoundTripCallCount() int

func (*FakeRoundTripper) RoundTripCalls

func (fake *FakeRoundTripper) RoundTripCalls(stub func(*httpa.Request) (*httpa.Response, error))

func (*FakeRoundTripper) RoundTripReturns

func (fake *FakeRoundTripper) RoundTripReturns(result1 *httpa.Response, result2 error)

func (*FakeRoundTripper) RoundTripReturnsOnCall

func (fake *FakeRoundTripper) RoundTripReturnsOnCall(i int, result1 *httpa.Response, result2 error)

Jump to

Keyboard shortcuts

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