Documentation ¶
Overview ¶
This file was generated by counterfeiter
This file was generated by counterfeiter ¶
This file was generated by counterfeiter ¶
This file was generated by counterfeiter ¶
This file was generated by counterfeiter ¶
This file was generated by counterfeiter ¶
This file was generated by counterfeiter
Index ¶
- type FakeAuthDB
- type FakeBuildsDB
- func (fake *FakeBuildsDB) GetBuildByID(buildID int) (db.Build, bool, error)
- func (fake *FakeBuildsDB) GetBuildByIDArgsForCall(i int) int
- func (fake *FakeBuildsDB) GetBuildByIDCallCount() int
- func (fake *FakeBuildsDB) GetBuildByIDReturns(result1 db.Build, result2 bool, result3 error)
- func (fake *FakeBuildsDB) Invocations() map[string][][]interface{}
- type FakeProviderFactory
- func (fake *FakeProviderFactory) GetProvider(arg1 db.SavedTeam, arg2 string) (provider.Provider, bool, error)
- func (fake *FakeProviderFactory) GetProviderArgsForCall(i int) (db.SavedTeam, string)
- func (fake *FakeProviderFactory) GetProviderCallCount() int
- func (fake *FakeProviderFactory) GetProviderReturns(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 FakeTokenGenerator
- func (fake *FakeTokenGenerator) GenerateToken(expiration time.Time, teamName string, isAdmin bool) (auth.TokenType, auth.TokenValue, error)
- func (fake *FakeTokenGenerator) GenerateTokenArgsForCall(i int) (time.Time, string, bool)
- func (fake *FakeTokenGenerator) GenerateTokenCallCount() int
- func (fake *FakeTokenGenerator) GenerateTokenReturns(result1 auth.TokenType, result2 auth.TokenValue, result3 error)
- func (fake *FakeTokenGenerator) Invocations() map[string][][]interface{}
- type FakeUserContextReader
- 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) 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) 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAuthDB ¶
type FakeAuthDB struct { GetTeamStub func() (db.SavedTeam, bool, error) // contains filtered or unexported fields }
func (*FakeAuthDB) GetTeamCallCount ¶
func (fake *FakeAuthDB) GetTeamCallCount() int
func (*FakeAuthDB) GetTeamReturns ¶
func (fake *FakeAuthDB) GetTeamReturns(result1 db.SavedTeam, result2 bool, result3 error)
func (*FakeAuthDB) Invocations ¶
func (fake *FakeAuthDB) Invocations() map[string][][]interface{}
type FakeBuildsDB ¶
type FakeBuildsDB struct { GetBuildByIDStub func(buildID int) (db.Build, bool, error) // contains filtered or unexported fields }
func (*FakeBuildsDB) GetBuildByID ¶
func (*FakeBuildsDB) GetBuildByIDArgsForCall ¶
func (fake *FakeBuildsDB) GetBuildByIDArgsForCall(i int) int
func (*FakeBuildsDB) GetBuildByIDCallCount ¶
func (fake *FakeBuildsDB) GetBuildByIDCallCount() int
func (*FakeBuildsDB) GetBuildByIDReturns ¶
func (fake *FakeBuildsDB) GetBuildByIDReturns(result1 db.Build, result2 bool, result3 error)
func (*FakeBuildsDB) Invocations ¶
func (fake *FakeBuildsDB) Invocations() map[string][][]interface{}
type FakeProviderFactory ¶
type FakeProviderFactory struct { GetProviderStub func(db.SavedTeam, string) (provider.Provider, bool, error) // contains filtered or unexported fields }
func (*FakeProviderFactory) GetProvider ¶
func (*FakeProviderFactory) GetProviderArgsForCall ¶
func (fake *FakeProviderFactory) GetProviderArgsForCall(i int) (db.SavedTeam, 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) 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 FakeTokenGenerator ¶
type FakeTokenGenerator struct { GenerateTokenStub func(expiration time.Time, teamName string, isAdmin bool) (auth.TokenType, auth.TokenValue, error) // contains filtered or unexported fields }
func (*FakeTokenGenerator) GenerateToken ¶
func (fake *FakeTokenGenerator) GenerateToken(expiration time.Time, teamName string, isAdmin bool) (auth.TokenType, auth.TokenValue, error)
func (*FakeTokenGenerator) GenerateTokenArgsForCall ¶
func (*FakeTokenGenerator) GenerateTokenCallCount ¶
func (fake *FakeTokenGenerator) GenerateTokenCallCount() int
func (*FakeTokenGenerator) GenerateTokenReturns ¶
func (fake *FakeTokenGenerator) GenerateTokenReturns(result1 auth.TokenType, result2 auth.TokenValue, result3 error)
func (*FakeTokenGenerator) Invocations ¶
func (fake *FakeTokenGenerator) Invocations() map[string][][]interface{}
type FakeUserContextReader ¶
type FakeUserContextReader struct { GetTeamStub func(r *http.Request) (string, bool, bool) GetSystemStub func(r *http.Request) (bool, bool) // contains filtered or unexported fields }
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) 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) 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)
Click to show internal directories.
Click to hide internal directories.