Module: Copilot::SessionFsProvider
- Defined in:
- lib/copilot/types.rb
Overview
Interface for session filesystem providers. Implementors should include this module and define all methods.
Instance Method Summary collapse
- #append_file(session_id, path, content) ⇒ Object
- #exists?(session_id, path) ⇒ Boolean
- #mkdir(session_id, path, recursive: false) ⇒ Object
- #read_file(session_id, path) ⇒ Object
- #readdir(session_id, path) ⇒ Object
- #readdir_with_types(session_id, path) ⇒ Object
- #rename(session_id, old_path, new_path) ⇒ Object
- #rm(session_id, path, recursive: false) ⇒ Object
- #stat(session_id, path) ⇒ Object
- #write_file(session_id, path, content) ⇒ Object
Instance Method Details
#append_file(session_id, path, content) ⇒ Object
870 |
# File 'lib/copilot/types.rb', line 870 def append_file(session_id, path, content) raise NotImplementedError end |
#exists?(session_id, path) ⇒ Boolean
871 |
# File 'lib/copilot/types.rb', line 871 def exists?(session_id, path) raise NotImplementedError end |
#mkdir(session_id, path, recursive: false) ⇒ Object
873 |
# File 'lib/copilot/types.rb', line 873 def mkdir(session_id, path, recursive: false) raise NotImplementedError end |
#read_file(session_id, path) ⇒ Object
868 |
# File 'lib/copilot/types.rb', line 868 def read_file(session_id, path) raise NotImplementedError end |
#readdir(session_id, path) ⇒ Object
874 |
# File 'lib/copilot/types.rb', line 874 def readdir(session_id, path) raise NotImplementedError end |
#readdir_with_types(session_id, path) ⇒ Object
875 |
# File 'lib/copilot/types.rb', line 875 def readdir_with_types(session_id, path) raise NotImplementedError end |
#rename(session_id, old_path, new_path) ⇒ Object
877 |
# File 'lib/copilot/types.rb', line 877 def rename(session_id, old_path, new_path) raise NotImplementedError end |
#rm(session_id, path, recursive: false) ⇒ Object
876 |
# File 'lib/copilot/types.rb', line 876 def rm(session_id, path, recursive: false) raise NotImplementedError end |
#stat(session_id, path) ⇒ Object
872 |
# File 'lib/copilot/types.rb', line 872 def stat(session_id, path) raise NotImplementedError end |
#write_file(session_id, path, content) ⇒ Object
869 |
# File 'lib/copilot/types.rb', line 869 def write_file(session_id, path, content) raise NotImplementedError end |