authfakes

package
v3.3.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

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 FakeAuthTokenGenerator

type FakeAuthTokenGenerator struct {
	GenerateTokenStub func(expiration time.Time, teamName string, isAdmin bool, csrfToken string) (auth.TokenType, auth.TokenValue, error)
	// contains filtered or unexported fields
}

func (*FakeAuthTokenGenerator) GenerateToken

func (fake *FakeAuthTokenGenerator) GenerateToken(expiration time.Time, teamName string, isAdmin bool, csrfToken string) (auth.TokenType, auth.TokenValue, error)

func (*FakeAuthTokenGenerator) GenerateTokenArgsForCall

func (fake *FakeAuthTokenGenerator) GenerateTokenArgsForCall(i int) (time.Time, string, bool, string)

func (*FakeAuthTokenGenerator) GenerateTokenCallCount

func (fake *FakeAuthTokenGenerator) GenerateTokenCallCount() int

func (*FakeAuthTokenGenerator) GenerateTokenReturns

func (fake *FakeAuthTokenGenerator) GenerateTokenReturns(result1 auth.TokenType, result2 auth.TokenValue, result3 error)

func (*FakeAuthTokenGenerator) GenerateTokenReturnsOnCall

func (fake *FakeAuthTokenGenerator) GenerateTokenReturnsOnCall(i int, result1 auth.TokenType, result2 auth.TokenValue, result3 error)

func (*FakeAuthTokenGenerator) Invocations

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

type FakeCSRFTokenGenerator

type FakeCSRFTokenGenerator struct {
	GenerateTokenStub func() (string, error)
	// contains filtered or unexported fields
}

func (*FakeCSRFTokenGenerator) GenerateToken

func (fake *FakeCSRFTokenGenerator) GenerateToken() (string, error)

func (*FakeCSRFTokenGenerator) GenerateTokenCallCount

func (fake *FakeCSRFTokenGenerator) GenerateTokenCallCount() int

func (*FakeCSRFTokenGenerator) GenerateTokenReturns

func (fake *FakeCSRFTokenGenerator) GenerateTokenReturns(result1 string, result2 error)

func (*FakeCSRFTokenGenerator) GenerateTokenReturnsOnCall

func (fake *FakeCSRFTokenGenerator) GenerateTokenReturnsOnCall(i int, result1 string, result2 error)

func (*FakeCSRFTokenGenerator) Invocations

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

type FakeProviderFactory

type FakeProviderFactory struct {
	GetProviderStub func(db.Team, string) (provider.Provider, bool, error)
	// contains filtered or unexported fields
}

func (*FakeProviderFactory) GetProvider

func (fake *FakeProviderFactory) GetProvider(arg1 db.Team, arg2 string) (provider.Provider, bool, error)

func (*FakeProviderFactory) GetProviderArgsForCall

func (fake *FakeProviderFactory) GetProviderArgsForCall(i int) (db.Team, string)

func (*FakeProviderFactory) GetProviderCallCount

func (fake *FakeProviderFactory) GetProviderCallCount() int

func (*FakeProviderFactory) GetProviderReturns

func (fake *FakeProviderFactory) GetProviderReturns(result1 provider.Provider, result2 bool, result3 error)

func (*FakeProviderFactory) GetProviderReturnsOnCall

func (fake *FakeProviderFactory) GetProviderReturnsOnCall(i int, result1 provider.Provider, result2 bool, result3 error)

func (*FakeProviderFactory) Invocations

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

type FakeRejector

type FakeRejector struct {
	UnauthorizedStub func(http.ResponseWriter, *http.Request)

	ForbiddenStub func(http.ResponseWriter, *http.Request)
	// contains filtered or unexported fields
}

func (*FakeRejector) Forbidden

func (fake *FakeRejector) Forbidden(arg1 http.ResponseWriter, arg2 *http.Request)

func (*FakeRejector) ForbiddenArgsForCall

func (fake *FakeRejector) ForbiddenArgsForCall(i int) (http.ResponseWriter, *http.Request)

func (*FakeRejector) ForbiddenCallCount

func (fake *FakeRejector) ForbiddenCallCount() int

func (*FakeRejector) Invocations

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

func (*FakeRejector) Unauthorized

func (fake *FakeRejector) Unauthorized(arg1 http.ResponseWriter, arg2 *http.Request)

func (*FakeRejector) UnauthorizedArgsForCall

func (fake *FakeRejector) UnauthorizedArgsForCall(i int) (http.ResponseWriter, *http.Request)

func (*FakeRejector) UnauthorizedCallCount

func (fake *FakeRejector) UnauthorizedCallCount() int

type FakeUserContextReader

type FakeUserContextReader struct {
	GetTeamStub func(r *http.Request) (string, bool, bool)

	GetSystemStub func(r *http.Request) (bool, bool)

	GetCSRFTokenStub func(r *http.Request) (string, bool)
	// contains filtered or unexported fields
}

func (*FakeUserContextReader) GetCSRFToken

func (fake *FakeUserContextReader) GetCSRFToken(r *http.Request) (string, bool)

func (*FakeUserContextReader) GetCSRFTokenArgsForCall

func (fake *FakeUserContextReader) GetCSRFTokenArgsForCall(i int) *http.Request

func (*FakeUserContextReader) GetCSRFTokenCallCount

func (fake *FakeUserContextReader) GetCSRFTokenCallCount() int

func (*FakeUserContextReader) GetCSRFTokenReturns

func (fake *FakeUserContextReader) GetCSRFTokenReturns(result1 string, result2 bool)

func (*FakeUserContextReader) GetCSRFTokenReturnsOnCall

func (fake *FakeUserContextReader) GetCSRFTokenReturnsOnCall(i int, result1 string, result2 bool)

func (*FakeUserContextReader) GetSystem

func (fake *FakeUserContextReader) GetSystem(r *http.Request) (bool, bool)

func (*FakeUserContextReader) GetSystemArgsForCall

func (fake *FakeUserContextReader) GetSystemArgsForCall(i int) *http.Request

func (*FakeUserContextReader) GetSystemCallCount

func (fake *FakeUserContextReader) GetSystemCallCount() int

func (*FakeUserContextReader) GetSystemReturns

func (fake *FakeUserContextReader) GetSystemReturns(result1 bool, result2 bool)

func (*FakeUserContextReader) GetSystemReturnsOnCall

func (fake *FakeUserContextReader) GetSystemReturnsOnCall(i int, result1 bool, result2 bool)

func (*FakeUserContextReader) GetTeam

func (fake *FakeUserContextReader) GetTeam(r *http.Request) (string, bool, bool)

func (*FakeUserContextReader) GetTeamArgsForCall

func (fake *FakeUserContextReader) GetTeamArgsForCall(i int) *http.Request

func (*FakeUserContextReader) GetTeamCallCount

func (fake *FakeUserContextReader) GetTeamCallCount() int

func (*FakeUserContextReader) GetTeamReturns

func (fake *FakeUserContextReader) GetTeamReturns(result1 string, result2 bool, result3 bool)

func (*FakeUserContextReader) GetTeamReturnsOnCall

func (fake *FakeUserContextReader) GetTeamReturnsOnCall(i int, result1 string, result2 bool, result3 bool)

func (*FakeUserContextReader) Invocations

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

type FakeValidator

type FakeValidator struct {
	IsAuthenticatedStub func(*http.Request) bool
	// contains filtered or unexported fields
}

func (*FakeValidator) Invocations

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

func (*FakeValidator) IsAuthenticated

func (fake *FakeValidator) IsAuthenticated(arg1 *http.Request) bool

func (*FakeValidator) IsAuthenticatedArgsForCall

func (fake *FakeValidator) IsAuthenticatedArgsForCall(i int) *http.Request

func (*FakeValidator) IsAuthenticatedCallCount

func (fake *FakeValidator) IsAuthenticatedCallCount() int

func (*FakeValidator) IsAuthenticatedReturns

func (fake *FakeValidator) IsAuthenticatedReturns(result1 bool)

func (*FakeValidator) IsAuthenticatedReturnsOnCall

func (fake *FakeValidator) IsAuthenticatedReturnsOnCall(i int, result1 bool)

Jump to

Keyboard shortcuts

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