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 ¶
- type FakeAuthTokenGenerator
- func (fake *FakeAuthTokenGenerator) GenerateToken(expiration time.Time, teamName string, isAdmin bool, csrfToken string) (auth.TokenType, auth.TokenValue, error)
- func (fake *FakeAuthTokenGenerator) GenerateTokenArgsForCall(i int) (time.Time, string, bool, string)
- func (fake *FakeAuthTokenGenerator) GenerateTokenCallCount() int
- func (fake *FakeAuthTokenGenerator) GenerateTokenReturns(result1 auth.TokenType, result2 auth.TokenValue, result3 error)
- func (fake *FakeAuthTokenGenerator) GenerateTokenReturnsOnCall(i int, result1 auth.TokenType, result2 auth.TokenValue, result3 error)
- func (fake *FakeAuthTokenGenerator) Invocations() map[string][][]interface{}
- type FakeCSRFTokenGenerator
- func (fake *FakeCSRFTokenGenerator) GenerateToken() (string, error)
- func (fake *FakeCSRFTokenGenerator) GenerateTokenCallCount() int
- func (fake *FakeCSRFTokenGenerator) GenerateTokenReturns(result1 string, result2 error)
- func (fake *FakeCSRFTokenGenerator) GenerateTokenReturnsOnCall(i int, result1 string, result2 error)
- func (fake *FakeCSRFTokenGenerator) Invocations() map[string][][]interface{}
- type FakeProviderFactory
- func (fake *FakeProviderFactory) GetProvider(arg1 db.Team, arg2 string) (provider.Provider, bool, error)
- func (fake *FakeProviderFactory) GetProviderArgsForCall(i int) (db.Team, string)
- func (fake *FakeProviderFactory) GetProviderCallCount() int
- func (fake *FakeProviderFactory) GetProviderReturns(result1 provider.Provider, result2 bool, result3 error)
- func (fake *FakeProviderFactory) GetProviderReturnsOnCall(i int, result1 provider.Provider, result2 bool, result3 error)
- func (fake *FakeProviderFactory) Invocations() map[string][][]interface{}
- type FakeRejector
- func (fake *FakeRejector) Forbidden(arg1 http.ResponseWriter, arg2 *http.Request)
- func (fake *FakeRejector) ForbiddenArgsForCall(i int) (http.ResponseWriter, *http.Request)
- func (fake *FakeRejector) ForbiddenCallCount() int
- func (fake *FakeRejector) Invocations() map[string][][]interface{}
- func (fake *FakeRejector) Unauthorized(arg1 http.ResponseWriter, arg2 *http.Request)
- func (fake *FakeRejector) UnauthorizedArgsForCall(i int) (http.ResponseWriter, *http.Request)
- func (fake *FakeRejector) UnauthorizedCallCount() int
- type FakeUserContextReader
- func (fake *FakeUserContextReader) GetCSRFToken(r *http.Request) (string, bool)
- func (fake *FakeUserContextReader) GetCSRFTokenArgsForCall(i int) *http.Request
- func (fake *FakeUserContextReader) GetCSRFTokenCallCount() int
- func (fake *FakeUserContextReader) GetCSRFTokenReturns(result1 string, result2 bool)
- func (fake *FakeUserContextReader) GetCSRFTokenReturnsOnCall(i int, result1 string, result2 bool)
- func (fake *FakeUserContextReader) GetSystem(r *http.Request) (bool, bool)
- func (fake *FakeUserContextReader) GetSystemArgsForCall(i int) *http.Request
- func (fake *FakeUserContextReader) GetSystemCallCount() int
- func (fake *FakeUserContextReader) GetSystemReturns(result1 bool, result2 bool)
- func (fake *FakeUserContextReader) GetSystemReturnsOnCall(i int, result1 bool, result2 bool)
- func (fake *FakeUserContextReader) GetTeam(r *http.Request) (string, bool, bool)
- func (fake *FakeUserContextReader) GetTeamArgsForCall(i int) *http.Request
- func (fake *FakeUserContextReader) GetTeamCallCount() int
- func (fake *FakeUserContextReader) GetTeamReturns(result1 string, result2 bool, result3 bool)
- func (fake *FakeUserContextReader) GetTeamReturnsOnCall(i int, result1 string, result2 bool, result3 bool)
- func (fake *FakeUserContextReader) Invocations() map[string][][]interface{}
- type FakeValidator
- func (fake *FakeValidator) Invocations() map[string][][]interface{}
- func (fake *FakeValidator) IsAuthenticated(arg1 *http.Request) bool
- func (fake *FakeValidator) IsAuthenticatedArgsForCall(i int) *http.Request
- func (fake *FakeValidator) IsAuthenticatedCallCount() int
- func (fake *FakeValidator) IsAuthenticatedReturns(result1 bool)
- func (fake *FakeValidator) IsAuthenticatedReturnsOnCall(i int, result1 bool)
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 (*FakeAuthTokenGenerator) GenerateTokenArgsForCall ¶
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 (*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 (*FakeProviderFactory) Invocations ¶
func (fake *FakeProviderFactory) Invocations() map[string][][]interface{}
type FakeRejector ¶
type FakeRejector struct { 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) 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)
Click to show internal directories.
Click to hide internal directories.