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: 0

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