mocks

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockOAuth2Provider

type MockOAuth2Provider struct {
	// contains filtered or unexported fields
}

MockOAuth2Provider is a mock of OAuth2Provider interface.

func NewMockOAuth2Provider

func NewMockOAuth2Provider(ctrl *gomock.Controller) *MockOAuth2Provider

NewMockOAuth2Provider creates a new mock instance.

func (*MockOAuth2Provider) AuthorizationURL

func (m *MockOAuth2Provider) AuthorizationURL(state, codeChallenge string, opts ...upstream.AuthorizationOption) (string, error)

AuthorizationURL mocks base method.

func (*MockOAuth2Provider) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockOAuth2Provider) ExchangeCodeForIdentity added in v0.9.3

func (m *MockOAuth2Provider) ExchangeCodeForIdentity(ctx context.Context, code, codeVerifier, nonce string) (*upstream.Identity, error)

ExchangeCodeForIdentity mocks base method.

func (*MockOAuth2Provider) RefreshTokens

func (m *MockOAuth2Provider) RefreshTokens(ctx context.Context, refreshToken, expectedSubject string) (*upstream.Tokens, error)

RefreshTokens mocks base method.

func (*MockOAuth2Provider) Type

Type mocks base method.

type MockOAuth2ProviderMockRecorder

type MockOAuth2ProviderMockRecorder struct {
	// contains filtered or unexported fields
}

MockOAuth2ProviderMockRecorder is the mock recorder for MockOAuth2Provider.

func (*MockOAuth2ProviderMockRecorder) AuthorizationURL

func (mr *MockOAuth2ProviderMockRecorder) AuthorizationURL(state, codeChallenge any, opts ...any) *gomock.Call

AuthorizationURL indicates an expected call of AuthorizationURL.

func (*MockOAuth2ProviderMockRecorder) ExchangeCodeForIdentity added in v0.9.3

func (mr *MockOAuth2ProviderMockRecorder) ExchangeCodeForIdentity(ctx, code, codeVerifier, nonce any) *gomock.Call

ExchangeCodeForIdentity indicates an expected call of ExchangeCodeForIdentity.

func (*MockOAuth2ProviderMockRecorder) RefreshTokens

func (mr *MockOAuth2ProviderMockRecorder) RefreshTokens(ctx, refreshToken, expectedSubject any) *gomock.Call

RefreshTokens indicates an expected call of RefreshTokens.

func (*MockOAuth2ProviderMockRecorder) Type

Type indicates an expected call of Type.

Jump to

Keyboard shortcuts

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