Documentation
¶
Index ¶
- type JWTAuthenticator
- type JWTAuthenticator_AuthenticateJWT_Call
- func (_c *JWTAuthenticator_AuthenticateJWT_Call) Return(_a0 bool, _a1 *types.NodeJWTClaims, _a2 error) *JWTAuthenticator_AuthenticateJWT_Call
- func (_c *JWTAuthenticator_AuthenticateJWT_Call) Run(run func(ctx context.Context, tokenString string, originalRequest interface{})) *JWTAuthenticator_AuthenticateJWT_Call
- func (_c *JWTAuthenticator_AuthenticateJWT_Call) RunAndReturn(...) *JWTAuthenticator_AuthenticateJWT_Call
- type JWTAuthenticator_Expecter
- type JWTGenerator
- type JWTGenerator_CreateJWTForRequest_Call
- func (_c *JWTGenerator_CreateJWTForRequest_Call) Return(_a0 string, _a1 error) *JWTGenerator_CreateJWTForRequest_Call
- func (_c *JWTGenerator_CreateJWTForRequest_Call) Run(run func(req interface{})) *JWTGenerator_CreateJWTForRequest_Call
- func (_c *JWTGenerator_CreateJWTForRequest_Call) RunAndReturn(run func(interface{}) (string, error)) *JWTGenerator_CreateJWTForRequest_Call
- type JWTGenerator_Expecter
- type NodeAuthProvider
- type NodeAuthProvider_Expecter
- type NodeAuthProvider_IsNodePubKeyTrusted_Call
- func (_c *NodeAuthProvider_IsNodePubKeyTrusted_Call) Return(_a0 bool, _a1 error) *NodeAuthProvider_IsNodePubKeyTrusted_Call
- func (_c *NodeAuthProvider_IsNodePubKeyTrusted_Call) Run(...) *NodeAuthProvider_IsNodePubKeyTrusted_Call
- func (_c *NodeAuthProvider_IsNodePubKeyTrusted_Call) RunAndReturn(...) *NodeAuthProvider_IsNodePubKeyTrusted_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTAuthenticator ¶
JWTAuthenticator is an autogenerated mock type for the JWTAuthenticator type
func NewJWTAuthenticator ¶
func NewJWTAuthenticator(t interface {
mock.TestingT
Cleanup(func())
}) *JWTAuthenticator
NewJWTAuthenticator creates a new instance of JWTAuthenticator. 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 (*JWTAuthenticator) AuthenticateJWT ¶
func (_m *JWTAuthenticator) AuthenticateJWT(ctx context.Context, tokenString string, originalRequest interface{}) (bool, *types.NodeJWTClaims, error)
AuthenticateJWT provides a mock function with given fields: ctx, tokenString, originalRequest
func (*JWTAuthenticator) EXPECT ¶
func (_m *JWTAuthenticator) EXPECT() *JWTAuthenticator_Expecter
type JWTAuthenticator_AuthenticateJWT_Call ¶
JWTAuthenticator_AuthenticateJWT_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AuthenticateJWT'
func (*JWTAuthenticator_AuthenticateJWT_Call) Return ¶
func (_c *JWTAuthenticator_AuthenticateJWT_Call) Return(_a0 bool, _a1 *types.NodeJWTClaims, _a2 error) *JWTAuthenticator_AuthenticateJWT_Call
func (*JWTAuthenticator_AuthenticateJWT_Call) Run ¶
func (_c *JWTAuthenticator_AuthenticateJWT_Call) Run(run func(ctx context.Context, tokenString string, originalRequest interface{})) *JWTAuthenticator_AuthenticateJWT_Call
func (*JWTAuthenticator_AuthenticateJWT_Call) RunAndReturn ¶
func (_c *JWTAuthenticator_AuthenticateJWT_Call) RunAndReturn(run func(context.Context, string, interface{}) (bool, *types.NodeJWTClaims, error)) *JWTAuthenticator_AuthenticateJWT_Call
type JWTAuthenticator_Expecter ¶
type JWTAuthenticator_Expecter struct {
// contains filtered or unexported fields
}
func (*JWTAuthenticator_Expecter) AuthenticateJWT ¶
func (_e *JWTAuthenticator_Expecter) AuthenticateJWT(ctx interface{}, tokenString interface{}, originalRequest interface{}) *JWTAuthenticator_AuthenticateJWT_Call
AuthenticateJWT is a helper method to define mock.On call
- ctx context.Context
- tokenString string
- originalRequest interface{}
type JWTGenerator ¶
JWTGenerator is an autogenerated mock type for the JWTGenerator type
func NewJWTGenerator ¶
func NewJWTGenerator(t interface {
mock.TestingT
Cleanup(func())
}) *JWTGenerator
NewJWTGenerator creates a new instance of JWTGenerator. 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 (*JWTGenerator) CreateJWTForRequest ¶
func (_m *JWTGenerator) CreateJWTForRequest(req interface{}) (string, error)
CreateJWTForRequest provides a mock function with given fields: req
func (*JWTGenerator) EXPECT ¶
func (_m *JWTGenerator) EXPECT() *JWTGenerator_Expecter
type JWTGenerator_CreateJWTForRequest_Call ¶
JWTGenerator_CreateJWTForRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateJWTForRequest'
func (*JWTGenerator_CreateJWTForRequest_Call) Return ¶
func (_c *JWTGenerator_CreateJWTForRequest_Call) Return(_a0 string, _a1 error) *JWTGenerator_CreateJWTForRequest_Call
func (*JWTGenerator_CreateJWTForRequest_Call) Run ¶
func (_c *JWTGenerator_CreateJWTForRequest_Call) Run(run func(req interface{})) *JWTGenerator_CreateJWTForRequest_Call
func (*JWTGenerator_CreateJWTForRequest_Call) RunAndReturn ¶
func (_c *JWTGenerator_CreateJWTForRequest_Call) RunAndReturn(run func(interface{}) (string, error)) *JWTGenerator_CreateJWTForRequest_Call
type JWTGenerator_Expecter ¶
type JWTGenerator_Expecter struct {
// contains filtered or unexported fields
}
func (*JWTGenerator_Expecter) CreateJWTForRequest ¶
func (_e *JWTGenerator_Expecter) CreateJWTForRequest(req interface{}) *JWTGenerator_CreateJWTForRequest_Call
CreateJWTForRequest is a helper method to define mock.On call
- req interface{}
type NodeAuthProvider ¶
NodeAuthProvider is an autogenerated mock type for the NodeAuthProvider type
func NewNodeAuthProvider ¶
func NewNodeAuthProvider(t interface {
mock.TestingT
Cleanup(func())
}) *NodeAuthProvider
NewNodeAuthProvider creates a new instance of NodeAuthProvider. 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 (*NodeAuthProvider) EXPECT ¶
func (_m *NodeAuthProvider) EXPECT() *NodeAuthProvider_Expecter
type NodeAuthProvider_Expecter ¶
type NodeAuthProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*NodeAuthProvider_Expecter) IsNodePubKeyTrusted ¶
func (_e *NodeAuthProvider_Expecter) IsNodePubKeyTrusted(ctx interface{}, p2pId interface{}, publicKey interface{}, environment interface{}) *NodeAuthProvider_IsNodePubKeyTrusted_Call
IsNodePubKeyTrusted is a helper method to define mock.On call
- ctx context.Context
- p2pId types.PeerID
- publicKey ed25519.PublicKey
- environment string
type NodeAuthProvider_IsNodePubKeyTrusted_Call ¶
NodeAuthProvider_IsNodePubKeyTrusted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsNodePubKeyTrusted'
func (*NodeAuthProvider_IsNodePubKeyTrusted_Call) Return ¶
func (_c *NodeAuthProvider_IsNodePubKeyTrusted_Call) Return(_a0 bool, _a1 error) *NodeAuthProvider_IsNodePubKeyTrusted_Call
func (*NodeAuthProvider_IsNodePubKeyTrusted_Call) Run ¶
func (_c *NodeAuthProvider_IsNodePubKeyTrusted_Call) Run(run func(ctx context.Context, p2pId types.PeerID, publicKey ed25519.PublicKey, environment string)) *NodeAuthProvider_IsNodePubKeyTrusted_Call