handlers

package
v1.32.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWKsHandler

type JWKsHandler interface {
	KeySet() jose.JSONWebKeySet
}

type MockJWKsHandler

type MockJWKsHandler struct {
	mock.Mock
}

MockJWKsHandler is an autogenerated mock type for the JWKsHandler type

func NewMockJWKsHandler

func NewMockJWKsHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockJWKsHandler

NewMockJWKsHandler creates a new instance of MockJWKsHandler. 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 (*MockJWKsHandler) EXPECT

func (*MockJWKsHandler) KeySet

func (_m *MockJWKsHandler) KeySet() jose.JSONWebKeySet

KeySet provides a mock function with given fields:

type MockJWKsHandler_Expecter

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

func (*MockJWKsHandler_Expecter) KeySet

KeySet is a helper method to define mock.On call

type MockJWKsHandler_KeySet_Call

type MockJWKsHandler_KeySet_Call struct {
	*mock.Call
}

MockJWKsHandler_KeySet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'KeySet'

func (*MockJWKsHandler_KeySet_Call) Return

func (*MockJWKsHandler_KeySet_Call) Run

func (*MockJWKsHandler_KeySet_Call) RunAndReturn

type MockTokenHandler

type MockTokenHandler struct {
	mock.Mock
}

MockTokenHandler is an autogenerated mock type for the TokenHandler type

func NewMockTokenHandler

func NewMockTokenHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTokenHandler

NewMockTokenHandler creates a new instance of MockTokenHandler. 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 (*MockTokenHandler) EXPECT

func (*MockTokenHandler) Token

func (_m *MockTokenHandler) Token() (Token, error)

Token provides a mock function with given fields:

type MockTokenHandler_Expecter

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

func (*MockTokenHandler_Expecter) Token

Token is a helper method to define mock.On call

type MockTokenHandler_Token_Call

type MockTokenHandler_Token_Call struct {
	*mock.Call
}

MockTokenHandler_Token_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Token'

func (*MockTokenHandler_Token_Call) Return

func (*MockTokenHandler_Token_Call) Run

func (*MockTokenHandler_Token_Call) RunAndReturn

func (_c *MockTokenHandler_Token_Call) RunAndReturn(run func() (Token, error)) *MockTokenHandler_Token_Call

type Token

type Token struct {
	IDToken      string `json:"id_token"`
	AccessToken  string `json:"access_token"`
	TokenType    string `json:"token_type"`
	RefreshToken string `json:"refresh_token"`
	ExpiresIn    int64  `json:"expires_in"`
}

type TokenHandler

type TokenHandler interface {
	Token() (Token, error)
}

Jump to

Keyboard shortcuts

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