mock

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: Apache-2.0 Imports: 3 Imported by: ? 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OAuth2Config

type OAuth2Config struct {
	mock.Mock
}

OAuth2Config provides a mocked implementation of the OAuth2Config interface

func (*OAuth2Config) ExchangeCodeForToken

func (o *OAuth2Config) ExchangeCodeForToken(ctx context.Context, code string) (*oauth2.Token, error)

ExchangeCodeForToken is a mocked stub

func (*OAuth2Config) ExchangeRefreshForToken

func (o *OAuth2Config) ExchangeRefreshForToken(ctx context.Context, token *oauth2.Token) (*oauth2.Token, error)

ExchangeRefreshForToken is a mocked stub

func (*OAuth2Config) GenerateAuthCodeURL

func (o *OAuth2Config) GenerateAuthCodeURL(tokenString string, scopes []string, options []oauth2.AuthCodeOption) string

GenerateAuthCodeURL is a mocked stub

func (*OAuth2Config) GetTokenSource

func (o *OAuth2Config) GetTokenSource(ctx context.Context, token *oauth2.Token) oauth2.TokenSource

GetTokenSource is a mocked stub

type Verifier

type Verifier struct {
	mock.Mock
}

Verifier provides a mocked implementation of the Verifier interface

func (*Verifier) Verify

func (v *Verifier) Verify(ctx context.Context, rawIDToken string) error

Verify is a mocked stub

Jump to

Keyboard shortcuts

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