jwtfakes

package
v0.0.0-...-e0cb8a0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: MIT 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.

Code generated by counterfeiter. DO NOT EDIT.

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 FakeDoer

type FakeDoer struct {
	DoStub func(*http.Request) (*http.Response, error)
	// contains filtered or unexported fields
}

func (*FakeDoer) Do

func (fake *FakeDoer) Do(arg1 *http.Request) (*http.Response, error)

func (*FakeDoer) DoArgsForCall

func (fake *FakeDoer) DoArgsForCall(i int) *http.Request

func (*FakeDoer) DoCallCount

func (fake *FakeDoer) DoCallCount() int

func (*FakeDoer) DoCalls

func (fake *FakeDoer) DoCalls(stub func(*http.Request) (*http.Response, error))

func (*FakeDoer) DoReturns

func (fake *FakeDoer) DoReturns(result1 *http.Response, result2 error)

func (*FakeDoer) DoReturnsOnCall

func (fake *FakeDoer) DoReturnsOnCall(i int, result1 *http.Response, result2 error)

func (*FakeDoer) Invocations

func (fake *FakeDoer) Invocations() map[string][][]interface{}

type FakeKeys

type FakeKeys struct {
	FetchStub func(string) (jose.JSONWebKey, error)
	// contains filtered or unexported fields
}

func (*FakeKeys) Fetch

func (fake *FakeKeys) Fetch(arg1 string) (jose.JSONWebKey, error)

func (*FakeKeys) FetchArgsForCall

func (fake *FakeKeys) FetchArgsForCall(i int) string

func (*FakeKeys) FetchCallCount

func (fake *FakeKeys) FetchCallCount() int

func (*FakeKeys) FetchCalls

func (fake *FakeKeys) FetchCalls(stub func(string) (jose.JSONWebKey, error))

func (*FakeKeys) FetchReturns

func (fake *FakeKeys) FetchReturns(result1 jose.JSONWebKey, result2 error)

func (*FakeKeys) FetchReturnsOnCall

func (fake *FakeKeys) FetchReturnsOnCall(i int, result1 jose.JSONWebKey, result2 error)

func (*FakeKeys) Invocations

func (fake *FakeKeys) Invocations() map[string][][]interface{}

type FakeParseFunc

type FakeParseFunc struct {
	Stub func(string, jwta.Claims, jwta.Keyfunc) (*jwta.Token, error)
	// contains filtered or unexported fields
}

func (*FakeParseFunc) ArgsForCall

func (fake *FakeParseFunc) ArgsForCall(i int) (string, jwta.Claims, jwta.Keyfunc)

func (*FakeParseFunc) CallCount

func (fake *FakeParseFunc) CallCount() int

func (*FakeParseFunc) Calls

func (fake *FakeParseFunc) Calls(stub func(string, jwta.Claims, jwta.Keyfunc) (*jwta.Token, error))

func (*FakeParseFunc) Invocations

func (fake *FakeParseFunc) Invocations() map[string][][]interface{}

func (*FakeParseFunc) Returns

func (fake *FakeParseFunc) Returns(result1 *jwta.Token, result2 error)

func (*FakeParseFunc) ReturnsOnCall

func (fake *FakeParseFunc) ReturnsOnCall(i int, result1 *jwta.Token, result2 error)

func (*FakeParseFunc) Spy

func (fake *FakeParseFunc) Spy(arg1 string, arg2 jwta.Claims, arg3 jwta.Keyfunc) (*jwta.Token, error)

type FakeParser

type FakeParser struct {
	ParseTokenStub func(context.Context, string) (jwt.Authorization, error)
	// contains filtered or unexported fields
}

func (*FakeParser) Invocations

func (fake *FakeParser) Invocations() map[string][][]interface{}

func (*FakeParser) ParseToken

func (fake *FakeParser) ParseToken(arg1 context.Context, arg2 string) (jwt.Authorization, error)

func (*FakeParser) ParseTokenArgsForCall

func (fake *FakeParser) ParseTokenArgsForCall(i int) (context.Context, string)

func (*FakeParser) ParseTokenCallCount

func (fake *FakeParser) ParseTokenCallCount() int

func (*FakeParser) ParseTokenCalls

func (fake *FakeParser) ParseTokenCalls(stub func(context.Context, string) (jwt.Authorization, error))

func (*FakeParser) ParseTokenReturns

func (fake *FakeParser) ParseTokenReturns(result1 jwt.Authorization, result2 error)

func (*FakeParser) ParseTokenReturnsOnCall

func (fake *FakeParser) ParseTokenReturnsOnCall(i int, result1 jwt.Authorization, result2 error)

type FakeTokenCache

type FakeTokenCache struct {
	AddTokenStub func(context.Context, string, string, time.Time)

	CleanStub func(context.Context)

	FetchTokenStub func(context.Context, string) (string, bool)
	// contains filtered or unexported fields
}

func (*FakeTokenCache) AddToken

func (fake *FakeTokenCache) AddToken(arg1 context.Context, arg2 string, arg3 string, arg4 time.Time)

func (*FakeTokenCache) AddTokenArgsForCall

func (fake *FakeTokenCache) AddTokenArgsForCall(i int) (context.Context, string, string, time.Time)

func (*FakeTokenCache) AddTokenCallCount

func (fake *FakeTokenCache) AddTokenCallCount() int

func (*FakeTokenCache) AddTokenCalls

func (fake *FakeTokenCache) AddTokenCalls(stub func(context.Context, string, string, time.Time))

func (*FakeTokenCache) Clean

func (fake *FakeTokenCache) Clean(arg1 context.Context)

func (*FakeTokenCache) CleanArgsForCall

func (fake *FakeTokenCache) CleanArgsForCall(i int) context.Context

func (*FakeTokenCache) CleanCallCount

func (fake *FakeTokenCache) CleanCallCount() int

func (*FakeTokenCache) CleanCalls

func (fake *FakeTokenCache) CleanCalls(stub func(context.Context))

func (*FakeTokenCache) FetchToken

func (fake *FakeTokenCache) FetchToken(arg1 context.Context, arg2 string) (string, bool)

func (*FakeTokenCache) FetchTokenArgsForCall

func (fake *FakeTokenCache) FetchTokenArgsForCall(i int) (context.Context, string)

func (*FakeTokenCache) FetchTokenCallCount

func (fake *FakeTokenCache) FetchTokenCallCount() int

func (*FakeTokenCache) FetchTokenCalls

func (fake *FakeTokenCache) FetchTokenCalls(stub func(context.Context, string) (string, bool))

func (*FakeTokenCache) FetchTokenReturns

func (fake *FakeTokenCache) FetchTokenReturns(result1 string, result2 bool)

func (*FakeTokenCache) FetchTokenReturnsOnCall

func (fake *FakeTokenCache) FetchTokenReturnsOnCall(i int, result1 string, result2 bool)

func (*FakeTokenCache) Invocations

func (fake *FakeTokenCache) Invocations() map[string][][]interface{}

type FakeTokener

type FakeTokener struct {
	GetTokenStub func(context.Context) (string, error)
	// contains filtered or unexported fields
}

func (*FakeTokener) GetToken

func (fake *FakeTokener) GetToken(arg1 context.Context) (string, error)

func (*FakeTokener) GetTokenArgsForCall

func (fake *FakeTokener) GetTokenArgsForCall(i int) context.Context

func (*FakeTokener) GetTokenCallCount

func (fake *FakeTokener) GetTokenCallCount() int

func (*FakeTokener) GetTokenCalls

func (fake *FakeTokener) GetTokenCalls(stub func(context.Context) (string, error))

func (*FakeTokener) GetTokenReturns

func (fake *FakeTokener) GetTokenReturns(result1 string, result2 error)

func (*FakeTokener) GetTokenReturnsOnCall

func (fake *FakeTokener) GetTokenReturnsOnCall(i int, result1 string, result2 error)

func (*FakeTokener) Invocations

func (fake *FakeTokener) Invocations() map[string][][]interface{}

type FakeTokenerFactory

type FakeTokenerFactory struct {
	Stub func(string, string) jwt.Tokener
	// contains filtered or unexported fields
}

func (*FakeTokenerFactory) ArgsForCall

func (fake *FakeTokenerFactory) ArgsForCall(i int) (string, string)

func (*FakeTokenerFactory) CallCount

func (fake *FakeTokenerFactory) CallCount() int

func (*FakeTokenerFactory) Calls

func (fake *FakeTokenerFactory) Calls(stub func(string, string) jwt.Tokener)

func (*FakeTokenerFactory) Invocations

func (fake *FakeTokenerFactory) Invocations() map[string][][]interface{}

func (*FakeTokenerFactory) Returns

func (fake *FakeTokenerFactory) Returns(result1 jwt.Tokener)

func (*FakeTokenerFactory) ReturnsOnCall

func (fake *FakeTokenerFactory) ReturnsOnCall(i int, result1 jwt.Tokener)

func (*FakeTokenerFactory) Spy

func (fake *FakeTokenerFactory) Spy(arg1 string, arg2 string) jwt.Tokener

Jump to

Keyboard shortcuts

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