providerfakes

package
v0.0.0-...-8b5a1e4 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeProvider

type FakeProvider struct {
	PreTokenClientStub func() (*http.Client, error)

	AuthCodeURLStub func(string, ...oauth2.AuthCodeOption) string

	ExchangeStub func(context.Context, string) (*oauth2.Token, error)

	ClientStub func(context.Context, *oauth2.Token) *http.Client

	VerifyStub func(lager.Logger, *http.Client) (bool, error)
	// contains filtered or unexported fields
}

func (*FakeProvider) AuthCodeURL

func (fake *FakeProvider) AuthCodeURL(arg1 string, arg2 ...oauth2.AuthCodeOption) string

func (*FakeProvider) AuthCodeURLArgsForCall

func (fake *FakeProvider) AuthCodeURLArgsForCall(i int) (string, []oauth2.AuthCodeOption)

func (*FakeProvider) AuthCodeURLCallCount

func (fake *FakeProvider) AuthCodeURLCallCount() int

func (*FakeProvider) AuthCodeURLReturns

func (fake *FakeProvider) AuthCodeURLReturns(result1 string)

func (*FakeProvider) Client

func (fake *FakeProvider) Client(arg1 context.Context, arg2 *oauth2.Token) *http.Client

func (*FakeProvider) ClientArgsForCall

func (fake *FakeProvider) ClientArgsForCall(i int) (context.Context, *oauth2.Token)

func (*FakeProvider) ClientCallCount

func (fake *FakeProvider) ClientCallCount() int

func (*FakeProvider) ClientReturns

func (fake *FakeProvider) ClientReturns(result1 *http.Client)

func (*FakeProvider) Exchange

func (fake *FakeProvider) Exchange(arg1 context.Context, arg2 string) (*oauth2.Token, error)

func (*FakeProvider) ExchangeArgsForCall

func (fake *FakeProvider) ExchangeArgsForCall(i int) (context.Context, string)

func (*FakeProvider) ExchangeCallCount

func (fake *FakeProvider) ExchangeCallCount() int

func (*FakeProvider) ExchangeReturns

func (fake *FakeProvider) ExchangeReturns(result1 *oauth2.Token, result2 error)

func (*FakeProvider) Invocations

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

func (*FakeProvider) PreTokenClient

func (fake *FakeProvider) PreTokenClient() (*http.Client, error)

func (*FakeProvider) PreTokenClientCallCount

func (fake *FakeProvider) PreTokenClientCallCount() int

func (*FakeProvider) PreTokenClientReturns

func (fake *FakeProvider) PreTokenClientReturns(result1 *http.Client, result2 error)

func (*FakeProvider) Verify

func (fake *FakeProvider) Verify(arg1 lager.Logger, arg2 *http.Client) (bool, error)

func (*FakeProvider) VerifyArgsForCall

func (fake *FakeProvider) VerifyArgsForCall(i int) (lager.Logger, *http.Client)

func (*FakeProvider) VerifyCallCount

func (fake *FakeProvider) VerifyCallCount() int

func (*FakeProvider) VerifyReturns

func (fake *FakeProvider) VerifyReturns(result1 bool, result2 error)

type FakeVerifier

type FakeVerifier struct {
	VerifyStub func(lager.Logger, *http.Client) (bool, error)
	// contains filtered or unexported fields
}

func (*FakeVerifier) Invocations

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

func (*FakeVerifier) Verify

func (fake *FakeVerifier) Verify(arg1 lager.Logger, arg2 *http.Client) (bool, error)

func (*FakeVerifier) VerifyArgsForCall

func (fake *FakeVerifier) VerifyArgsForCall(i int) (lager.Logger, *http.Client)

func (*FakeVerifier) VerifyCallCount

func (fake *FakeVerifier) VerifyCallCount() int

func (*FakeVerifier) VerifyReturns

func (fake *FakeVerifier) VerifyReturns(result1 bool, result2 error)

Jump to

Keyboard shortcuts

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