mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWKSFetcher

type JWKSFetcher struct {
	mock.Mock
}

JWKSFetcher is an autogenerated mock type for the JWKSFetcher type

func NewJWKSFetcher

func NewJWKSFetcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *JWKSFetcher

NewJWKSFetcher creates a new instance of JWKSFetcher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*JWKSFetcher) FetchKeys

func (_m *JWKSFetcher) FetchKeys(ctx context.Context, jwksUrl string) (jwk.Set, error)

FetchKeys provides a mock function with given fields: ctx, jwksUrl

func (*JWKSFetcher) Get

func (_m *JWKSFetcher) Get(ctx context.Context, jwksUrl string) (jwk.Set, error)

Get provides a mock function with given fields: ctx, jwksUrl

func (*JWKSFetcher) Refresh

func (_m *JWKSFetcher) Refresh(ctx context.Context, jwksUrl string) (jwk.Set, error)

Refresh provides a mock function with given fields: ctx, jwksUrl

func (*JWKSFetcher) Register

func (_m *JWKSFetcher) Register(jwksUrl string, options ...jwk.RegisterOption) error

Register provides a mock function with given fields: jwksUrl, options

type JWTValidator

type JWTValidator struct {
	mock.Mock
}

JWTValidator is an autogenerated mock type for the JWTValidator type

func NewJWTValidator

func NewJWTValidator(t interface {
	mock.TestingT
	Cleanup(func())
}) *JWTValidator

NewJWTValidator creates a new instance of JWTValidator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*JWTValidator) ParseAndValidateToken

func (_m *JWTValidator) ParseAndValidateToken(ctx context.Context, tokenString string, set jwk.Set) (jwt.Token, error)

ParseAndValidateToken provides a mock function with given fields: ctx, tokenString, set

type KeyFetcher

type KeyFetcher struct {
	mock.Mock
}

KeyFetcher is an autogenerated mock type for the KeyFetcher type

func NewKeyFetcher

func NewKeyFetcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *KeyFetcher

NewKeyFetcher creates a new instance of KeyFetcher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*KeyFetcher) FetchKeys

func (_m *KeyFetcher) FetchKeys(ctx context.Context, jwksUrl string) (jwk.Set, error)

FetchKeys provides a mock function with given fields: ctx, jwksUrl

type Set

type Set struct {
	mock.Mock
}

Set is an autogenerated mock type for the Set type

func NewSet

func NewSet(t interface {
	mock.TestingT
	Cleanup(func())
}) *Set

NewSet creates a new instance of Set. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Set) AddKey

func (_m *Set) AddKey(_a0 jwk.Key) error

AddKey provides a mock function with given fields: _a0

func (*Set) Clear

func (_m *Set) Clear() error

Clear provides a mock function with given fields:

func (*Set) Clone

func (_m *Set) Clone() (jwk.Set, error)

Clone provides a mock function with given fields:

func (*Set) Get

func (_m *Set) Get(_a0 string) (interface{}, bool)

Get provides a mock function with given fields: _a0

func (*Set) Index

func (_m *Set) Index(_a0 jwk.Key) int

Index provides a mock function with given fields: _a0

func (*Set) Iterate

func (_m *Set) Iterate(_a0 context.Context) mapiter.Iterator

Iterate provides a mock function with given fields: _a0

func (*Set) Key

func (_m *Set) Key(_a0 int) (jwk.Key, bool)

Key provides a mock function with given fields: _a0

func (*Set) Keys

func (_m *Set) Keys(_a0 context.Context) arrayiter.Iterator

Keys provides a mock function with given fields: _a0

func (*Set) Len

func (_m *Set) Len() int

Len provides a mock function with given fields:

func (*Set) LookupKeyID

func (_m *Set) LookupKeyID(_a0 string) (jwk.Key, bool)

LookupKeyID provides a mock function with given fields: _a0

func (*Set) Remove

func (_m *Set) Remove(_a0 string) error

Remove provides a mock function with given fields: _a0

func (*Set) RemoveKey

func (_m *Set) RemoveKey(_a0 jwk.Key) error

RemoveKey provides a mock function with given fields: _a0

func (*Set) Set

func (_m *Set) Set(_a0 string, _a1 interface{}) error

Set provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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