Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type FakeGithubAuthClient
- func (fake *FakeGithubAuthClient) GetDeviceCode() (*auth.GithubDeviceCodeResponse, error)
- func (fake *FakeGithubAuthClient) GetDeviceCodeAuthStatus(arg1 string) (string, error)
- func (fake *FakeGithubAuthClient) GetDeviceCodeAuthStatusArgsForCall(i int) string
- func (fake *FakeGithubAuthClient) GetDeviceCodeAuthStatusCallCount() int
- func (fake *FakeGithubAuthClient) GetDeviceCodeAuthStatusCalls(stub func(string) (string, error))
- func (fake *FakeGithubAuthClient) GetDeviceCodeAuthStatusReturns(result1 string, result2 error)
- func (fake *FakeGithubAuthClient) GetDeviceCodeAuthStatusReturnsOnCall(i int, result1 string, result2 error)
- func (fake *FakeGithubAuthClient) GetDeviceCodeCallCount() int
- func (fake *FakeGithubAuthClient) GetDeviceCodeCalls(stub func() (*auth.GithubDeviceCodeResponse, error))
- func (fake *FakeGithubAuthClient) GetDeviceCodeReturns(result1 *auth.GithubDeviceCodeResponse, result2 error)
- func (fake *FakeGithubAuthClient) GetDeviceCodeReturnsOnCall(i int, result1 *auth.GithubDeviceCodeResponse, result2 error)
- func (fake *FakeGithubAuthClient) Invocations() map[string][][]interface{}
- type FakeGitlabAuthClient
- func (fake *FakeGitlabAuthClient) AuthURL(arg1 context.Context, arg2 string) (url.URL, error)
- func (fake *FakeGitlabAuthClient) AuthURLArgsForCall(i int) (context.Context, string)
- func (fake *FakeGitlabAuthClient) AuthURLCallCount() int
- func (fake *FakeGitlabAuthClient) AuthURLCalls(stub func(context.Context, string) (url.URL, error))
- func (fake *FakeGitlabAuthClient) AuthURLReturns(result1 url.URL, result2 error)
- func (fake *FakeGitlabAuthClient) AuthURLReturnsOnCall(i int, result1 url.URL, result2 error)
- func (fake *FakeGitlabAuthClient) ExchangeCode(arg1 context.Context, arg2 string, arg3 string) (*types.TokenResponseState, error)
- func (fake *FakeGitlabAuthClient) ExchangeCodeArgsForCall(i int) (context.Context, string, string)
- func (fake *FakeGitlabAuthClient) ExchangeCodeCallCount() int
- func (fake *FakeGitlabAuthClient) ExchangeCodeCalls(stub func(context.Context, string, string) (*types.TokenResponseState, error))
- func (fake *FakeGitlabAuthClient) ExchangeCodeReturns(result1 *types.TokenResponseState, result2 error)
- func (fake *FakeGitlabAuthClient) ExchangeCodeReturnsOnCall(i int, result1 *types.TokenResponseState, result2 error)
- func (fake *FakeGitlabAuthClient) Invocations() map[string][][]interface{}
- type FakeJWTClient
- func (fake *FakeJWTClient) GenerateJWT(arg1 time.Duration, arg2 gitproviders.GitProviderName, arg3 string) (string, error)
- func (fake *FakeJWTClient) GenerateJWTArgsForCall(i int) (time.Duration, gitproviders.GitProviderName, string)
- func (fake *FakeJWTClient) GenerateJWTCallCount() int
- func (fake *FakeJWTClient) GenerateJWTCalls(stub func(time.Duration, gitproviders.GitProviderName, string) (string, error))
- func (fake *FakeJWTClient) GenerateJWTReturns(result1 string, result2 error)
- func (fake *FakeJWTClient) GenerateJWTReturnsOnCall(i int, result1 string, result2 error)
- func (fake *FakeJWTClient) Invocations() map[string][][]interface{}
- func (fake *FakeJWTClient) VerifyJWT(arg1 string) (*auth.Claims, error)
- func (fake *FakeJWTClient) VerifyJWTArgsForCall(i int) string
- func (fake *FakeJWTClient) VerifyJWTCallCount() int
- func (fake *FakeJWTClient) VerifyJWTCalls(stub func(string) (*auth.Claims, error))
- func (fake *FakeJWTClient) VerifyJWTReturns(result1 *auth.Claims, result2 error)
- func (fake *FakeJWTClient) VerifyJWTReturnsOnCall(i int, result1 *auth.Claims, result2 error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeGithubAuthClient ¶ added in v0.3.0
type FakeGithubAuthClient struct { GetDeviceCodeStub func() (*auth.GithubDeviceCodeResponse, error) GetDeviceCodeAuthStatusStub func(string) (string, error) // contains filtered or unexported fields }
func (*FakeGithubAuthClient) GetDeviceCode ¶ added in v0.3.0
func (fake *FakeGithubAuthClient) GetDeviceCode() (*auth.GithubDeviceCodeResponse, error)
func (*FakeGithubAuthClient) GetDeviceCodeAuthStatus ¶ added in v0.3.0
func (fake *FakeGithubAuthClient) GetDeviceCodeAuthStatus(arg1 string) (string, error)
func (*FakeGithubAuthClient) GetDeviceCodeAuthStatusArgsForCall ¶ added in v0.3.0
func (fake *FakeGithubAuthClient) GetDeviceCodeAuthStatusArgsForCall(i int) string
func (*FakeGithubAuthClient) GetDeviceCodeAuthStatusCallCount ¶ added in v0.3.0
func (fake *FakeGithubAuthClient) GetDeviceCodeAuthStatusCallCount() int
func (*FakeGithubAuthClient) GetDeviceCodeAuthStatusCalls ¶ added in v0.3.0
func (fake *FakeGithubAuthClient) GetDeviceCodeAuthStatusCalls(stub func(string) (string, error))
func (*FakeGithubAuthClient) GetDeviceCodeAuthStatusReturns ¶ added in v0.3.0
func (fake *FakeGithubAuthClient) GetDeviceCodeAuthStatusReturns(result1 string, result2 error)
func (*FakeGithubAuthClient) GetDeviceCodeAuthStatusReturnsOnCall ¶ added in v0.3.0
func (fake *FakeGithubAuthClient) GetDeviceCodeAuthStatusReturnsOnCall(i int, result1 string, result2 error)
func (*FakeGithubAuthClient) GetDeviceCodeCallCount ¶ added in v0.3.0
func (fake *FakeGithubAuthClient) GetDeviceCodeCallCount() int
func (*FakeGithubAuthClient) GetDeviceCodeCalls ¶ added in v0.3.0
func (fake *FakeGithubAuthClient) GetDeviceCodeCalls(stub func() (*auth.GithubDeviceCodeResponse, error))
func (*FakeGithubAuthClient) GetDeviceCodeReturns ¶ added in v0.3.0
func (fake *FakeGithubAuthClient) GetDeviceCodeReturns(result1 *auth.GithubDeviceCodeResponse, result2 error)
func (*FakeGithubAuthClient) GetDeviceCodeReturnsOnCall ¶ added in v0.3.0
func (fake *FakeGithubAuthClient) GetDeviceCodeReturnsOnCall(i int, result1 *auth.GithubDeviceCodeResponse, result2 error)
func (*FakeGithubAuthClient) Invocations ¶ added in v0.3.0
func (fake *FakeGithubAuthClient) Invocations() map[string][][]interface{}
type FakeGitlabAuthClient ¶ added in v0.5.0
type FakeGitlabAuthClient struct { AuthURLStub func(context.Context, string) (url.URL, error) ExchangeCodeStub func(context.Context, string, string) (*types.TokenResponseState, error) // contains filtered or unexported fields }
func (*FakeGitlabAuthClient) AuthURLArgsForCall ¶ added in v0.5.0
func (fake *FakeGitlabAuthClient) AuthURLArgsForCall(i int) (context.Context, string)
func (*FakeGitlabAuthClient) AuthURLCallCount ¶ added in v0.5.0
func (fake *FakeGitlabAuthClient) AuthURLCallCount() int
func (*FakeGitlabAuthClient) AuthURLCalls ¶ added in v0.5.0
func (*FakeGitlabAuthClient) AuthURLReturns ¶ added in v0.5.0
func (fake *FakeGitlabAuthClient) AuthURLReturns(result1 url.URL, result2 error)
func (*FakeGitlabAuthClient) AuthURLReturnsOnCall ¶ added in v0.5.0
func (fake *FakeGitlabAuthClient) AuthURLReturnsOnCall(i int, result1 url.URL, result2 error)
func (*FakeGitlabAuthClient) ExchangeCode ¶ added in v0.5.0
func (fake *FakeGitlabAuthClient) ExchangeCode(arg1 context.Context, arg2 string, arg3 string) (*types.TokenResponseState, error)
func (*FakeGitlabAuthClient) ExchangeCodeArgsForCall ¶ added in v0.5.0
func (*FakeGitlabAuthClient) ExchangeCodeCallCount ¶ added in v0.5.0
func (fake *FakeGitlabAuthClient) ExchangeCodeCallCount() int
func (*FakeGitlabAuthClient) ExchangeCodeCalls ¶ added in v0.5.0
func (fake *FakeGitlabAuthClient) ExchangeCodeCalls(stub func(context.Context, string, string) (*types.TokenResponseState, error))
func (*FakeGitlabAuthClient) ExchangeCodeReturns ¶ added in v0.5.0
func (fake *FakeGitlabAuthClient) ExchangeCodeReturns(result1 *types.TokenResponseState, result2 error)
func (*FakeGitlabAuthClient) ExchangeCodeReturnsOnCall ¶ added in v0.5.0
func (fake *FakeGitlabAuthClient) ExchangeCodeReturnsOnCall(i int, result1 *types.TokenResponseState, result2 error)
func (*FakeGitlabAuthClient) Invocations ¶ added in v0.5.0
func (fake *FakeGitlabAuthClient) Invocations() map[string][][]interface{}
type FakeJWTClient ¶
type FakeJWTClient struct { GenerateJWTStub func(time.Duration, gitproviders.GitProviderName, string) (string, error) VerifyJWTStub func(string) (*auth.Claims, error) // contains filtered or unexported fields }
func (*FakeJWTClient) GenerateJWT ¶
func (fake *FakeJWTClient) GenerateJWT(arg1 time.Duration, arg2 gitproviders.GitProviderName, arg3 string) (string, error)
func (*FakeJWTClient) GenerateJWTArgsForCall ¶
func (fake *FakeJWTClient) GenerateJWTArgsForCall(i int) (time.Duration, gitproviders.GitProviderName, string)
func (*FakeJWTClient) GenerateJWTCallCount ¶
func (fake *FakeJWTClient) GenerateJWTCallCount() int
func (*FakeJWTClient) GenerateJWTCalls ¶
func (fake *FakeJWTClient) GenerateJWTCalls(stub func(time.Duration, gitproviders.GitProviderName, string) (string, error))
func (*FakeJWTClient) GenerateJWTReturns ¶
func (fake *FakeJWTClient) GenerateJWTReturns(result1 string, result2 error)
func (*FakeJWTClient) GenerateJWTReturnsOnCall ¶
func (fake *FakeJWTClient) GenerateJWTReturnsOnCall(i int, result1 string, result2 error)
func (*FakeJWTClient) Invocations ¶
func (fake *FakeJWTClient) Invocations() map[string][][]interface{}
func (*FakeJWTClient) VerifyJWT ¶
func (fake *FakeJWTClient) VerifyJWT(arg1 string) (*auth.Claims, error)
func (*FakeJWTClient) VerifyJWTArgsForCall ¶
func (fake *FakeJWTClient) VerifyJWTArgsForCall(i int) string
func (*FakeJWTClient) VerifyJWTCallCount ¶
func (fake *FakeJWTClient) VerifyJWTCallCount() int
func (*FakeJWTClient) VerifyJWTCalls ¶
func (fake *FakeJWTClient) VerifyJWTCalls(stub func(string) (*auth.Claims, error))
func (*FakeJWTClient) VerifyJWTReturns ¶
func (fake *FakeJWTClient) VerifyJWTReturns(result1 *auth.Claims, result2 error)
func (*FakeJWTClient) VerifyJWTReturnsOnCall ¶
func (fake *FakeJWTClient) VerifyJWTReturnsOnCall(i int, result1 *auth.Claims, result2 error)
Click to show internal directories.
Click to hide internal directories.