Versions in this module Expand all Collapse all v0 v0.20.5 Dec 19, 2022 v0.20.4 Dec 19, 2022 Changes in this version + type MockAuthHandler struct + func NewMockAuthHandler(ctrl *gomock.Controller) *MockAuthHandler + func (m *MockAuthHandler) AddRecord(rec *auth.Rec, secret []byte, remoteAddr string) (*auth.Rec, error) + func (m *MockAuthHandler) AsTag(token string) string + func (m *MockAuthHandler) Authenticate(secret []byte, remoteAddr string) (*auth.Rec, []byte, error) + func (m *MockAuthHandler) DelRecords(uid types.Uid) error + func (m *MockAuthHandler) EXPECT() *MockAuthHandlerMockRecorder + func (m *MockAuthHandler) GenSecret(rec *auth.Rec) ([]byte, time.Time, error) + func (m *MockAuthHandler) GetRealName() string + func (m *MockAuthHandler) GetResetParams(uid types.Uid) (map[string]interface{}, error) + func (m *MockAuthHandler) Init(jsonconf json.RawMessage, name string) error + func (m *MockAuthHandler) IsInitialized() bool + func (m *MockAuthHandler) IsUnique(secret []byte, remoteAddr string) (bool, error) + func (m *MockAuthHandler) RestrictedTags() ([]string, error) + func (m *MockAuthHandler) UpdateRecord(rec *auth.Rec, secret []byte, remoteAddr string) (*auth.Rec, error) + type MockAuthHandlerMockRecorder struct + func (mr *MockAuthHandlerMockRecorder) AddRecord(rec, secret, remoteAddr interface{}) *gomock.Call + func (mr *MockAuthHandlerMockRecorder) AsTag(token interface{}) *gomock.Call + func (mr *MockAuthHandlerMockRecorder) Authenticate(secret, remoteAddr interface{}) *gomock.Call + func (mr *MockAuthHandlerMockRecorder) DelRecords(uid interface{}) *gomock.Call + func (mr *MockAuthHandlerMockRecorder) GenSecret(rec interface{}) *gomock.Call + func (mr *MockAuthHandlerMockRecorder) GetRealName() *gomock.Call + func (mr *MockAuthHandlerMockRecorder) GetResetParams(uid interface{}) *gomock.Call + func (mr *MockAuthHandlerMockRecorder) Init(jsonconf, name interface{}) *gomock.Call + func (mr *MockAuthHandlerMockRecorder) IsInitialized() *gomock.Call + func (mr *MockAuthHandlerMockRecorder) IsUnique(secret, remoteAddr interface{}) *gomock.Call + func (mr *MockAuthHandlerMockRecorder) RestrictedTags() *gomock.Call + func (mr *MockAuthHandlerMockRecorder) UpdateRecord(rec, secret, remoteAddr interface{}) *gomock.Call