ChoreRunner.Downloads.StorageService behaviour (chore_runner v0.4.1)
Link to this section Summary
Types
Must have the appropriate file extension to be considered a valid name.
While both :path and :body are optional, at least one is required. The application will raise if both are provided.
Functions
See ChoreRunner.Downloads.TemporaryDiskStorageService.delete_file/1
.
See ChoreRunner.Downloads.TemporaryDiskStorageService.file_url/2
.
See ChoreRunner.Downloads.TemporaryDiskStorageService.list_files/0
.
Link to this section Types
body()
Specs
body() :: binary()
file()
Specs
file_path()
Specs
file_path() :: String.t()
name()
Specs
name() :: String.t()
Must have the appropriate file extension to be considered a valid name.
opts()
Specs
While both :path and :body are optional, at least one is required. The application will raise if both are provided.
reason()
Specs
reason() :: any()
Link to this section Callbacks
delete_file(file)
Specs
file_url(file, list)
Specs
list_files()
Specs
save_file(name, opts)
Specs
Link to this section Functions
delete_file(file)
See ChoreRunner.Downloads.TemporaryDiskStorageService.delete_file/1
.
file_url(file, opts)
See ChoreRunner.Downloads.TemporaryDiskStorageService.file_url/2
.
find_file(id)
find_files_by_chore_id(chore_id)
list_files()
See ChoreRunner.Downloads.TemporaryDiskStorageService.list_files/0
.