mock_auth

package
v0.17.5 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_auth is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthHandler

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

MockAuthHandler is a mock of AuthHandler interface

func NewMockAuthHandler

func NewMockAuthHandler(ctrl *gomock.Controller) *MockAuthHandler

NewMockAuthHandler creates a new mock instance

func (*MockAuthHandler) AddRecord

func (m *MockAuthHandler) AddRecord(rec *auth.Rec, secret []byte, remoteAddr string) (*auth.Rec, error)

AddRecord mocks base method

func (*MockAuthHandler) AsTag

func (m *MockAuthHandler) AsTag(token string) string

AsTag mocks base method

func (*MockAuthHandler) Authenticate

func (m *MockAuthHandler) Authenticate(secret []byte, remoteAddr string) (*auth.Rec, []byte, error)

Authenticate mocks base method

func (*MockAuthHandler) DelRecords

func (m *MockAuthHandler) DelRecords(uid types.Uid) error

DelRecords mocks base method

func (*MockAuthHandler) EXPECT

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

func (*MockAuthHandler) GenSecret

func (m *MockAuthHandler) GenSecret(rec *auth.Rec) ([]byte, time.Time, error)

GenSecret mocks base method

func (*MockAuthHandler) GetResetParams

func (m *MockAuthHandler) GetResetParams(uid types.Uid) (map[string]interface{}, error)

GetResetParams mocks base method

func (*MockAuthHandler) Init

func (m *MockAuthHandler) Init(jsonconf json.RawMessage, name string) error

Init mocks base method

func (*MockAuthHandler) IsUnique

func (m *MockAuthHandler) IsUnique(secret []byte, remoteAddr string) (bool, error)

IsUnique mocks base method

func (*MockAuthHandler) RestrictedTags

func (m *MockAuthHandler) RestrictedTags() ([]string, error)

RestrictedTags mocks base method

func (*MockAuthHandler) UpdateRecord

func (m *MockAuthHandler) UpdateRecord(rec *auth.Rec, secret []byte, remoteAddr string) (*auth.Rec, error)

UpdateRecord mocks base method

type MockAuthHandlerMockRecorder

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

MockAuthHandlerMockRecorder is the mock recorder for MockAuthHandler

func (*MockAuthHandlerMockRecorder) AddRecord

func (mr *MockAuthHandlerMockRecorder) AddRecord(rec, secret, remoteAddr interface{}) *gomock.Call

AddRecord indicates an expected call of AddRecord

func (*MockAuthHandlerMockRecorder) AsTag

func (mr *MockAuthHandlerMockRecorder) AsTag(token interface{}) *gomock.Call

AsTag indicates an expected call of AsTag

func (*MockAuthHandlerMockRecorder) Authenticate

func (mr *MockAuthHandlerMockRecorder) Authenticate(secret, remoteAddr interface{}) *gomock.Call

Authenticate indicates an expected call of Authenticate

func (*MockAuthHandlerMockRecorder) DelRecords

func (mr *MockAuthHandlerMockRecorder) DelRecords(uid interface{}) *gomock.Call

DelRecords indicates an expected call of DelRecords

func (*MockAuthHandlerMockRecorder) GenSecret

func (mr *MockAuthHandlerMockRecorder) GenSecret(rec interface{}) *gomock.Call

GenSecret indicates an expected call of GenSecret

func (*MockAuthHandlerMockRecorder) GetResetParams

func (mr *MockAuthHandlerMockRecorder) GetResetParams(uid interface{}) *gomock.Call

GetResetParams indicates an expected call of GetResetParams

func (*MockAuthHandlerMockRecorder) Init

func (mr *MockAuthHandlerMockRecorder) Init(jsonconf, name interface{}) *gomock.Call

Init indicates an expected call of Init

func (*MockAuthHandlerMockRecorder) IsUnique

func (mr *MockAuthHandlerMockRecorder) IsUnique(secret, remoteAddr interface{}) *gomock.Call

IsUnique indicates an expected call of IsUnique

func (*MockAuthHandlerMockRecorder) RestrictedTags

func (mr *MockAuthHandlerMockRecorder) RestrictedTags() *gomock.Call

RestrictedTags indicates an expected call of RestrictedTags

func (*MockAuthHandlerMockRecorder) UpdateRecord

func (mr *MockAuthHandlerMockRecorder) UpdateRecord(rec, secret, remoteAddr interface{}) *gomock.Call

UpdateRecord indicates an expected call of UpdateRecord

Jump to

Keyboard shortcuts

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