mocks

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIAuthClient

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

MockIAuthClient is a mock of IAuthClient interface.

func NewMockIAuthClient

func NewMockIAuthClient(ctrl *gomock.Controller) *MockIAuthClient

NewMockIAuthClient creates a new mock instance.

func (*MockIAuthClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIAuthClient) GetUser

func (m *MockIAuthClient) GetUser(arg0 context.Context, arg1 string) (*auth.OutputUser, error)

GetUser mocks base method.

func (*MockIAuthClient) GetUserByMiner

func (m *MockIAuthClient) GetUserByMiner(arg0 context.Context, arg1 address.Address) (*auth.OutputUser, error)

GetUserByMiner mocks base method.

func (*MockIAuthClient) GetUserBySigner

func (m *MockIAuthClient) GetUserBySigner(arg0 context.Context, arg1 address.Address) ([]*auth.OutputUser, error)

GetUserBySigner mocks base method.

func (*MockIAuthClient) GetUserRateLimit

func (m *MockIAuthClient) GetUserRateLimit(arg0 context.Context, arg1, arg2 string) (auth.GetUserRateLimitResponse, error)

GetUserRateLimit mocks base method.

func (*MockIAuthClient) HasMiner

func (m *MockIAuthClient) HasMiner(arg0 context.Context, arg1 address.Address) (bool, error)

HasMiner mocks base method.

func (*MockIAuthClient) HasSigner

func (m *MockIAuthClient) HasSigner(arg0 context.Context, arg1 address.Address) (bool, error)

HasSigner mocks base method.

func (*MockIAuthClient) HasUser

func (m *MockIAuthClient) HasUser(arg0 context.Context, arg1 string) (bool, error)

HasUser mocks base method.

func (*MockIAuthClient) ListMiners

func (m *MockIAuthClient) ListMiners(arg0 context.Context, arg1 string) (auth.ListMinerResp, error)

ListMiners mocks base method.

func (*MockIAuthClient) ListSigners

func (m *MockIAuthClient) ListSigners(arg0 context.Context, arg1 string) (auth.ListSignerResp, error)

ListSigners mocks base method.

func (*MockIAuthClient) ListUsers

func (m *MockIAuthClient) ListUsers(arg0 context.Context, arg1, arg2 int64, arg3 core.UserState) ([]*auth.OutputUser, error)

ListUsers mocks base method.

func (*MockIAuthClient) ListUsersWithMiners

func (m *MockIAuthClient) ListUsersWithMiners(arg0 context.Context, arg1, arg2 int64, arg3 core.UserState) ([]*auth.OutputUser, error)

ListUsersWithMiners mocks base method.

func (*MockIAuthClient) MinerExistInUser

func (m *MockIAuthClient) MinerExistInUser(arg0 context.Context, arg1 string, arg2 address.Address) (bool, error)

MinerExistInUser mocks base method.

func (*MockIAuthClient) RegisterSigners

func (m *MockIAuthClient) RegisterSigners(arg0 context.Context, arg1 string, arg2 []address.Address) error

RegisterSigners mocks base method.

func (*MockIAuthClient) SignerExistInUser

func (m *MockIAuthClient) SignerExistInUser(arg0 context.Context, arg1 string, arg2 address.Address) (bool, error)

SignerExistInUser mocks base method.

func (*MockIAuthClient) UnregisterSigners

func (m *MockIAuthClient) UnregisterSigners(arg0 context.Context, arg1 string, arg2 []address.Address) error

UnregisterSigners mocks base method.

func (*MockIAuthClient) UpsertMiner

func (m *MockIAuthClient) UpsertMiner(arg0 context.Context, arg1, arg2 string, arg3 bool) (bool, error)

UpsertMiner mocks base method.

func (*MockIAuthClient) Verify

func (m *MockIAuthClient) Verify(arg0 context.Context, arg1 string) (*auth.JWTPayload, error)

Verify mocks base method.

func (*MockIAuthClient) VerifyUsers

func (m *MockIAuthClient) VerifyUsers(arg0 context.Context, arg1 []string) error

VerifyUsers mocks base method.

type MockIAuthClientMockRecorder

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

MockIAuthClientMockRecorder is the mock recorder for MockIAuthClient.

func (*MockIAuthClientMockRecorder) GetUser

func (mr *MockIAuthClientMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call

GetUser indicates an expected call of GetUser.

func (*MockIAuthClientMockRecorder) GetUserByMiner

func (mr *MockIAuthClientMockRecorder) GetUserByMiner(arg0, arg1 interface{}) *gomock.Call

GetUserByMiner indicates an expected call of GetUserByMiner.

func (*MockIAuthClientMockRecorder) GetUserBySigner

func (mr *MockIAuthClientMockRecorder) GetUserBySigner(arg0, arg1 interface{}) *gomock.Call

GetUserBySigner indicates an expected call of GetUserBySigner.

func (*MockIAuthClientMockRecorder) GetUserRateLimit

func (mr *MockIAuthClientMockRecorder) GetUserRateLimit(arg0, arg1, arg2 interface{}) *gomock.Call

GetUserRateLimit indicates an expected call of GetUserRateLimit.

func (*MockIAuthClientMockRecorder) HasMiner

func (mr *MockIAuthClientMockRecorder) HasMiner(arg0, arg1 interface{}) *gomock.Call

HasMiner indicates an expected call of HasMiner.

func (*MockIAuthClientMockRecorder) HasSigner

func (mr *MockIAuthClientMockRecorder) HasSigner(arg0, arg1 interface{}) *gomock.Call

HasSigner indicates an expected call of HasSigner.

func (*MockIAuthClientMockRecorder) HasUser

func (mr *MockIAuthClientMockRecorder) HasUser(arg0, arg1 interface{}) *gomock.Call

HasUser indicates an expected call of HasUser.

func (*MockIAuthClientMockRecorder) ListMiners

func (mr *MockIAuthClientMockRecorder) ListMiners(arg0, arg1 interface{}) *gomock.Call

ListMiners indicates an expected call of ListMiners.

func (*MockIAuthClientMockRecorder) ListSigners

func (mr *MockIAuthClientMockRecorder) ListSigners(arg0, arg1 interface{}) *gomock.Call

ListSigners indicates an expected call of ListSigners.

func (*MockIAuthClientMockRecorder) ListUsers

func (mr *MockIAuthClientMockRecorder) ListUsers(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

ListUsers indicates an expected call of ListUsers.

func (*MockIAuthClientMockRecorder) ListUsersWithMiners

func (mr *MockIAuthClientMockRecorder) ListUsersWithMiners(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

ListUsersWithMiners indicates an expected call of ListUsersWithMiners.

func (*MockIAuthClientMockRecorder) MinerExistInUser

func (mr *MockIAuthClientMockRecorder) MinerExistInUser(arg0, arg1, arg2 interface{}) *gomock.Call

MinerExistInUser indicates an expected call of MinerExistInUser.

func (*MockIAuthClientMockRecorder) RegisterSigners

func (mr *MockIAuthClientMockRecorder) RegisterSigners(arg0, arg1, arg2 interface{}) *gomock.Call

RegisterSigners indicates an expected call of RegisterSigners.

func (*MockIAuthClientMockRecorder) SignerExistInUser

func (mr *MockIAuthClientMockRecorder) SignerExistInUser(arg0, arg1, arg2 interface{}) *gomock.Call

SignerExistInUser indicates an expected call of SignerExistInUser.

func (*MockIAuthClientMockRecorder) UnregisterSigners

func (mr *MockIAuthClientMockRecorder) UnregisterSigners(arg0, arg1, arg2 interface{}) *gomock.Call

UnregisterSigners indicates an expected call of UnregisterSigners.

func (*MockIAuthClientMockRecorder) UpsertMiner

func (mr *MockIAuthClientMockRecorder) UpsertMiner(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

UpsertMiner indicates an expected call of UpsertMiner.

func (*MockIAuthClientMockRecorder) Verify

func (mr *MockIAuthClientMockRecorder) Verify(arg0, arg1 interface{}) *gomock.Call

Verify indicates an expected call of Verify.

func (*MockIAuthClientMockRecorder) VerifyUsers

func (mr *MockIAuthClientMockRecorder) VerifyUsers(arg0, arg1 interface{}) *gomock.Call

VerifyUsers indicates an expected call of VerifyUsers.

Jump to

Keyboard shortcuts

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