Documentation
¶
Index ¶
- type Exchanger
- type Exchanger_Exchange_Call
- type Exchanger_Expecter
- type IdPTokenClient
- type IdPTokenClient_Call_Call
- func (_c *IdPTokenClient_Call_Call) Return(_a0 *sts.Token, _a1 error) *IdPTokenClient_Call_Call
- func (_c *IdPTokenClient_Call_Call) Run(run func(ctx context.Context, issuer string, form url.Values)) *IdPTokenClient_Call_Call
- func (_c *IdPTokenClient_Call_Call) RunAndReturn(run func(context.Context, string, url.Values) (*sts.Token, error)) *IdPTokenClient_Call_Call
- type IdPTokenClient_Expecter
- type TokenSigner
- type TokenSigner_Expecter
- type TokenSigner_Issuer_Call
- type TokenSigner_JWKS_Call
- type TokenSigner_MintClaims_Call
- func (_c *TokenSigner_MintClaims_Call) Return(_a0 string, _a1 error) *TokenSigner_MintClaims_Call
- func (_c *TokenSigner_MintClaims_Call) Run(run func(claims jwt.MapClaims, ttl time.Duration)) *TokenSigner_MintClaims_Call
- func (_c *TokenSigner_MintClaims_Call) RunAndReturn(run func(jwt.MapClaims, time.Duration) (string, error)) *TokenSigner_MintClaims_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exchanger ¶
Exchanger is an autogenerated mock type for the Exchanger type
func NewExchanger ¶
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
type Exchanger_Exchange_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 (_c *Exchanger_Exchange_Call) Return(_a0 *sts.Token, _a1 error) *Exchanger_Exchange_Call
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 ¶
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 ¶
func (_m *IdPTokenClient) EXPECT() *IdPTokenClient_Expecter
type IdPTokenClient_Call_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 (_c *IdPTokenClient_Call_Call) Return(_a0 *sts.Token, _a1 error) *IdPTokenClient_Call_Call
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 ¶
func (_c *IdPTokenClient_Call_Call) RunAndReturn(run func(context.Context, string, url.Values) (*sts.Token, error)) *IdPTokenClient_Call_Call
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 ¶
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 ¶
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 ¶
func (_e *TokenSigner_Expecter) Issuer() *TokenSigner_Issuer_Call
Issuer is a helper method to define mock.On call
func (*TokenSigner_Expecter) JWKS ¶
func (_e *TokenSigner_Expecter) JWKS() *TokenSigner_JWKS_Call
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 ¶
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 (_c *TokenSigner_Issuer_Call) Return(_a0 string) *TokenSigner_Issuer_Call
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 ¶
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 ¶
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 (_c *TokenSigner_MintClaims_Call) Return(_a0 string, _a1 error) *TokenSigner_MintClaims_Call
func (*TokenSigner_MintClaims_Call) Run ¶
func (_c *TokenSigner_MintClaims_Call) Run(run func(claims jwt.MapClaims, ttl time.Duration)) *TokenSigner_MintClaims_Call
func (*TokenSigner_MintClaims_Call) RunAndReturn ¶
func (_c *TokenSigner_MintClaims_Call) RunAndReturn(run func(jwt.MapClaims, time.Duration) (string, error)) *TokenSigner_MintClaims_Call