authfakes

package
v0.9.2-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: MPL-2.0 Imports: 7 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.

Index

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)

	ValidateTokenStub func(context.Context, 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{}

func (*FakeGithubAuthClient) ValidateToken added in v0.6.1

func (fake *FakeGithubAuthClient) ValidateToken(arg1 context.Context, arg2 string) error

func (*FakeGithubAuthClient) ValidateTokenArgsForCall added in v0.6.1

func (fake *FakeGithubAuthClient) ValidateTokenArgsForCall(i int) (context.Context, string)

func (*FakeGithubAuthClient) ValidateTokenCallCount added in v0.6.1

func (fake *FakeGithubAuthClient) ValidateTokenCallCount() int

func (*FakeGithubAuthClient) ValidateTokenCalls added in v0.6.1

func (fake *FakeGithubAuthClient) ValidateTokenCalls(stub func(context.Context, string) error)

func (*FakeGithubAuthClient) ValidateTokenReturns added in v0.6.1

func (fake *FakeGithubAuthClient) ValidateTokenReturns(result1 error)

func (*FakeGithubAuthClient) ValidateTokenReturnsOnCall added in v0.6.1

func (fake *FakeGithubAuthClient) ValidateTokenReturnsOnCall(i int, result1 error)

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)

	ValidateTokenStub func(context.Context, string) error
	// contains filtered or unexported fields
}

func (*FakeGitlabAuthClient) AuthURL added in v0.5.0

func (fake *FakeGitlabAuthClient) AuthURL(arg1 context.Context, arg2 string) (url.URL, error)

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 (fake *FakeGitlabAuthClient) AuthURLCalls(stub func(context.Context, string) (url.URL, error))

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 (fake *FakeGitlabAuthClient) ExchangeCodeArgsForCall(i int) (context.Context, string, string)

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{}

func (*FakeGitlabAuthClient) ValidateToken added in v0.6.1

func (fake *FakeGitlabAuthClient) ValidateToken(arg1 context.Context, arg2 string) error

func (*FakeGitlabAuthClient) ValidateTokenArgsForCall added in v0.6.1

func (fake *FakeGitlabAuthClient) ValidateTokenArgsForCall(i int) (context.Context, string)

func (*FakeGitlabAuthClient) ValidateTokenCallCount added in v0.6.1

func (fake *FakeGitlabAuthClient) ValidateTokenCallCount() int

func (*FakeGitlabAuthClient) ValidateTokenCalls added in v0.6.1

func (fake *FakeGitlabAuthClient) ValidateTokenCalls(stub func(context.Context, string) error)

func (*FakeGitlabAuthClient) ValidateTokenReturns added in v0.6.1

func (fake *FakeGitlabAuthClient) ValidateTokenReturns(result1 error)

func (*FakeGitlabAuthClient) ValidateTokenReturnsOnCall added in v0.6.1

func (fake *FakeGitlabAuthClient) ValidateTokenReturnsOnCall(i int, result1 error)

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)

Jump to

Keyboard shortcuts

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