mocks

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exchanger

type Exchanger struct {
	mock.Mock
}

Exchanger is an autogenerated mock type for the Exchanger type

func NewExchanger

func NewExchanger(t interface {
	mock.TestingT
	Cleanup(func())
}) *Exchanger

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

func (_m *Exchanger) EXPECT() *Exchanger_Expecter

func (*Exchanger) Exchange

func (_m *Exchanger) Exchange(ctx context.Context, principal *identity.Principal, gatewayID ids.GatewayID, cfg *registry.MCPAuth, cacheKey string) (*sts.Token, error)

Exchange provides a mock function with given fields: ctx, principal, gatewayID, cfg, cacheKey

type Exchanger_Exchange_Call

type Exchanger_Exchange_Call struct {
	*mock.Call
}

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

func (*Exchanger_Exchange_Call) Return

func (*Exchanger_Exchange_Call) Run

func (_c *Exchanger_Exchange_Call) Run(run func(ctx context.Context, principal *identity.Principal, gatewayID ids.GatewayID, cfg *registry.MCPAuth, cacheKey string)) *Exchanger_Exchange_Call

func (*Exchanger_Exchange_Call) RunAndReturn

type Exchanger_Expecter

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

func (*Exchanger_Expecter) Exchange

func (_e *Exchanger_Expecter) Exchange(ctx interface{}, principal interface{}, gatewayID interface{}, cfg interface{}, cacheKey interface{}) *Exchanger_Exchange_Call

Exchange is a helper method to define mock.On call

  • ctx context.Context
  • principal *identity.Principal
  • gatewayID ids.GatewayID
  • cfg *registry.MCPAuth
  • cacheKey string

type IdPTokenClient

type IdPTokenClient struct {
	mock.Mock
}

IdPTokenClient is an autogenerated mock type for the IdPTokenClient type

func NewIdPTokenClient

func NewIdPTokenClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *IdPTokenClient

NewIdPTokenClient creates a new instance of IdPTokenClient. 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 (*IdPTokenClient) Call

func (_m *IdPTokenClient) Call(ctx context.Context, issuer string, form url.Values) (*sts.Token, error)

Call provides a mock function with given fields: ctx, issuer, form

func (*IdPTokenClient) EXPECT

type IdPTokenClient_Call_Call

type IdPTokenClient_Call_Call struct {
	*mock.Call
}

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

func (*IdPTokenClient_Call_Call) Return

func (*IdPTokenClient_Call_Call) Run

func (_c *IdPTokenClient_Call_Call) Run(run func(ctx context.Context, issuer string, form url.Values)) *IdPTokenClient_Call_Call

func (*IdPTokenClient_Call_Call) RunAndReturn

type IdPTokenClient_Expecter

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

func (*IdPTokenClient_Expecter) Call

func (_e *IdPTokenClient_Expecter) Call(ctx interface{}, issuer interface{}, form interface{}) *IdPTokenClient_Call_Call

Call is a helper method to define mock.On call

  • ctx context.Context
  • issuer string
  • form url.Values

type TokenSigner

type TokenSigner struct {
	mock.Mock
}

TokenSigner is an autogenerated mock type for the TokenSigner type

func NewTokenSigner

func NewTokenSigner(t interface {
	mock.TestingT
	Cleanup(func())
}) *TokenSigner

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

func (_m *TokenSigner) EXPECT() *TokenSigner_Expecter

func (*TokenSigner) Issuer

func (_m *TokenSigner) Issuer() string

Issuer provides a mock function with no fields

func (*TokenSigner) JWKS

func (_m *TokenSigner) JWKS() map[string]interface{}

JWKS provides a mock function with no fields

func (*TokenSigner) MintClaims

func (_m *TokenSigner) MintClaims(claims jwt.MapClaims, ttl time.Duration) (string, error)

MintClaims provides a mock function with given fields: claims, ttl

type TokenSigner_Expecter

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

func (*TokenSigner_Expecter) Issuer

Issuer is a helper method to define mock.On call

func (*TokenSigner_Expecter) JWKS

JWKS is a helper method to define mock.On call

func (*TokenSigner_Expecter) MintClaims

func (_e *TokenSigner_Expecter) MintClaims(claims interface{}, ttl interface{}) *TokenSigner_MintClaims_Call

MintClaims is a helper method to define mock.On call

  • claims jwt.MapClaims
  • ttl time.Duration

type TokenSigner_Issuer_Call

type TokenSigner_Issuer_Call struct {
	*mock.Call
}

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

func (*TokenSigner_Issuer_Call) Return

func (*TokenSigner_Issuer_Call) Run

func (_c *TokenSigner_Issuer_Call) Run(run func()) *TokenSigner_Issuer_Call

func (*TokenSigner_Issuer_Call) RunAndReturn

func (_c *TokenSigner_Issuer_Call) RunAndReturn(run func() string) *TokenSigner_Issuer_Call

type TokenSigner_JWKS_Call

type TokenSigner_JWKS_Call struct {
	*mock.Call
}

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

func (*TokenSigner_JWKS_Call) Return

func (_c *TokenSigner_JWKS_Call) Return(_a0 map[string]interface{}) *TokenSigner_JWKS_Call

func (*TokenSigner_JWKS_Call) Run

func (_c *TokenSigner_JWKS_Call) Run(run func()) *TokenSigner_JWKS_Call

func (*TokenSigner_JWKS_Call) RunAndReturn

func (_c *TokenSigner_JWKS_Call) RunAndReturn(run func() map[string]interface{}) *TokenSigner_JWKS_Call

type TokenSigner_MintClaims_Call

type TokenSigner_MintClaims_Call struct {
	*mock.Call
}

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

func (*TokenSigner_MintClaims_Call) Return

func (*TokenSigner_MintClaims_Call) Run

func (*TokenSigner_MintClaims_Call) RunAndReturn

Jump to

Keyboard shortcuts

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