mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
EventManager: add IDP login trigger and check account action
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -83,7 +83,7 @@ func (c *MockChannel) CloseWrite() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *MockChannel) SendRequest(name string, wantReply bool, payload []byte) (bool, error) {
|
||||
func (c *MockChannel) SendRequest(_ string, _ bool, _ []byte) (bool, error) {
|
||||
return true, nil
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ func (fs MockOsFs) Lstat(name string) (os.FileInfo, error) {
|
||||
}
|
||||
|
||||
// Remove removes the named file or (empty) directory.
|
||||
func (fs MockOsFs) Remove(name string, isDir bool) error {
|
||||
func (fs MockOsFs) Remove(name string, _ bool) error {
|
||||
if fs.err != nil {
|
||||
return fs.err
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ type failingReader struct {
|
||||
errRead error
|
||||
}
|
||||
|
||||
func (r *failingReader) ReadAt(p []byte, off int64) (n int, err error) {
|
||||
func (r *failingReader) ReadAt(_ []byte, _ int64) (n int, err error) {
|
||||
return 0, r.errRead
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user