authenticationfakes

package
v6.22.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2016 License: Apache-2.0 Imports: 4 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 FakeRepository

type FakeRepository struct {
	DumpRequestStub func(*http.Request)

	DumpResponseStub func(*http.Response)

	RefreshAuthTokenStub func() (updatedToken string, apiErr error)

	AuthenticateStub func(credentials map[string]string) (apiErr error)

	AuthorizeStub func(token string) (string, error)

	GetLoginPromptsAndSaveUAAServerURLStub func() (map[string]coreconfig.AuthPrompt, error)
	// contains filtered or unexported fields
}

func (*FakeRepository) Authenticate

func (fake *FakeRepository) Authenticate(credentials map[string]string) (apiErr error)

func (*FakeRepository) AuthenticateArgsForCall

func (fake *FakeRepository) AuthenticateArgsForCall(i int) map[string]string

func (*FakeRepository) AuthenticateCallCount

func (fake *FakeRepository) AuthenticateCallCount() int

func (*FakeRepository) AuthenticateReturns

func (fake *FakeRepository) AuthenticateReturns(result1 error)

func (*FakeRepository) Authorize

func (fake *FakeRepository) Authorize(token string) (string, error)

func (*FakeRepository) AuthorizeArgsForCall

func (fake *FakeRepository) AuthorizeArgsForCall(i int) string

func (*FakeRepository) AuthorizeCallCount

func (fake *FakeRepository) AuthorizeCallCount() int

func (*FakeRepository) AuthorizeReturns

func (fake *FakeRepository) AuthorizeReturns(result1 string, result2 error)

func (*FakeRepository) DumpRequest

func (fake *FakeRepository) DumpRequest(arg1 *http.Request)

func (*FakeRepository) DumpRequestArgsForCall

func (fake *FakeRepository) DumpRequestArgsForCall(i int) *http.Request

func (*FakeRepository) DumpRequestCallCount

func (fake *FakeRepository) DumpRequestCallCount() int

func (*FakeRepository) DumpResponse

func (fake *FakeRepository) DumpResponse(arg1 *http.Response)

func (*FakeRepository) DumpResponseArgsForCall

func (fake *FakeRepository) DumpResponseArgsForCall(i int) *http.Response

func (*FakeRepository) DumpResponseCallCount

func (fake *FakeRepository) DumpResponseCallCount() int

func (*FakeRepository) GetLoginPromptsAndSaveUAAServerURL

func (fake *FakeRepository) GetLoginPromptsAndSaveUAAServerURL() (map[string]coreconfig.AuthPrompt, error)

func (*FakeRepository) GetLoginPromptsAndSaveUAAServerURLCallCount

func (fake *FakeRepository) GetLoginPromptsAndSaveUAAServerURLCallCount() int

func (*FakeRepository) GetLoginPromptsAndSaveUAAServerURLReturns

func (fake *FakeRepository) GetLoginPromptsAndSaveUAAServerURLReturns(result1 map[string]coreconfig.AuthPrompt, result2 error)

func (*FakeRepository) Invocations

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

func (*FakeRepository) RefreshAuthToken

func (fake *FakeRepository) RefreshAuthToken() (updatedToken string, apiErr error)

func (*FakeRepository) RefreshAuthTokenCallCount

func (fake *FakeRepository) RefreshAuthTokenCallCount() int

func (*FakeRepository) RefreshAuthTokenReturns

func (fake *FakeRepository) RefreshAuthTokenReturns(result1 string, result2 error)

type FakeTokenRefresher

type FakeTokenRefresher struct {
	RefreshAuthTokenStub func() (updatedToken string, apiErr error)
	// contains filtered or unexported fields
}

func (*FakeTokenRefresher) Invocations

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

func (*FakeTokenRefresher) RefreshAuthToken

func (fake *FakeTokenRefresher) RefreshAuthToken() (updatedToken string, apiErr error)

func (*FakeTokenRefresher) RefreshAuthTokenCallCount

func (fake *FakeTokenRefresher) RefreshAuthTokenCallCount() int

func (*FakeTokenRefresher) RefreshAuthTokenReturns

func (fake *FakeTokenRefresher) RefreshAuthTokenReturns(result1 string, result2 error)

Jump to

Keyboard shortcuts

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