class

SurFTP::UserRepo

Inherits Reference < Object

Class methods

add_session(username : String, remote : String) : Int64
Source
clear_sessions
Source
create(username : String, password_hash : String | Nil, home_directory : String) : User
Source
delete(username : String)
Source
find(id : Int64) : User | Nil
Source
find_by_username(username : String) : User | Nil
Source
find_by_username!(username : String) : User
Source
get_config(key : String) : String | Nil
Source
list
Source
list_sessions
Source
pop_kills
Source
push_kill(username : String)
Source
remove_session(id : Int64)
Source
set_config(key : String, value : String)
Source
update_enabled(username : String, enabled : Bool)
Source
update_password(username : String, password_hash : String)
Source
update_ssh_keys(username : String, keys : String | Nil)
Source

Nested types