mocks

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTAuthenticator

type JWTAuthenticator struct {
	mock.Mock
}

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

type JWTAuthenticator_AuthenticateJWT_Call

type JWTAuthenticator_AuthenticateJWT_Call struct {
	*mock.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 (*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

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

type JWTGenerator struct {
	mock.Mock
}

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

type JWTGenerator_CreateJWTForRequest_Call struct {
	*mock.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 (*JWTGenerator_CreateJWTForRequest_Call) Run

func (*JWTGenerator_CreateJWTForRequest_Call) RunAndReturn

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

type NodeAuthProvider struct {
	mock.Mock
}

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 (*NodeAuthProvider) IsNodePubKeyTrusted

func (_m *NodeAuthProvider) IsNodePubKeyTrusted(ctx context.Context, p2pId types.PeerID, publicKey ed25519.PublicKey, environment string) (bool, error)

IsNodePubKeyTrusted provides a mock function with given fields: ctx, p2pId, publicKey, environment

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

type NodeAuthProvider_IsNodePubKeyTrusted_Call struct {
	*mock.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 (*NodeAuthProvider_IsNodePubKeyTrusted_Call) Run

func (*NodeAuthProvider_IsNodePubKeyTrusted_Call) RunAndReturn

Jump to

Keyboard shortcuts

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