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
579 |
# File 'lib/copilot/types.rb', line 579 def append_file(session_id, path, content) raise NotImplementedError end |
#exists?(session_id, path) ⇒ Boolean
580 |
# File 'lib/copilot/types.rb', line 580 def exists?(session_id, path) raise NotImplementedError end |
#mkdir(session_id, path, recursive: false) ⇒ Object
582 |
# File 'lib/copilot/types.rb', line 582 def mkdir(session_id, path, recursive: false) raise NotImplementedError end |
#read_file(session_id, path) ⇒ Object
577 |
# File 'lib/copilot/types.rb', line 577 def read_file(session_id, path) raise NotImplementedError end |
#readdir(session_id, path) ⇒ Object
583 |
# File 'lib/copilot/types.rb', line 583 def readdir(session_id, path) raise NotImplementedError end |
#readdir_with_types(session_id, path) ⇒ Object
584 |
# File 'lib/copilot/types.rb', line 584 def readdir_with_types(session_id, path) raise NotImplementedError end |
#rename(session_id, old_path, new_path) ⇒ Object
586 |
# File 'lib/copilot/types.rb', line 586 def rename(session_id, old_path, new_path) raise NotImplementedError end |
#rm(session_id, path, recursive: false) ⇒ Object
585 |
# File 'lib/copilot/types.rb', line 585 def rm(session_id, path, recursive: false) raise NotImplementedError end |
#stat(session_id, path) ⇒ Object
581 |
# File 'lib/copilot/types.rb', line 581 def stat(session_id, path) raise NotImplementedError end |
#write_file(session_id, path, content) ⇒ Object
578 |
# File 'lib/copilot/types.rb', line 578 def write_file(session_id, path, content) raise NotImplementedError end |