Documentation ¶
Overview ¶
Package mock_auth is a generated GoMock package.
Index ¶
- type 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) GetResetParams(uid types.Uid) (map[string]interface{}, error)
- func (m *MockAuthHandler) Init(jsonconf json.RawMessage, name string) error
- 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
- 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) GetResetParams(uid interface{}) *gomock.Call
- func (mr *MockAuthHandlerMockRecorder) Init(jsonconf, name interface{}) *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
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 ¶
Authenticate mocks base method
func (*MockAuthHandler) DelRecords ¶
func (m *MockAuthHandler) DelRecords(uid types.Uid) error
DelRecords mocks base method
func (*MockAuthHandler) EXPECT ¶
func (m *MockAuthHandler) EXPECT() *MockAuthHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
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