Module icsp

Source

Structs§

Buckets
FileBufExt
StoreArgs

Functions§

add_icsp_admin
Add admin of icsp
delete_file
Delete file by file_key
delete_icsp_admin
Delete admin of icsp
get_all_ic_file_key
Get all ic files ’s key from user ’s icsp
get_bucket_of_file
Get the bucket where the file is stored
get_cycle_balance
Get icsp ’s cycle balance
get_field_file_infos
Slice all files by page_number and return the information of file_info at page_index
get_file
Get file from icsp, return (data, file_type)
get_file_info
Get file’s information
get_ic_file_numbers
Query the number of ic files stored in icsp
get_icsp_admins
Get icsp ’s admins
get_icsp_buckets
Get buckets of user’s icsp
get_version
Get ICSP’s WASM version
replace_str
Replace the value str corresponding to the key
store_file
Store a file from file_path
store_file_by_key
Store file with given key
store_files
Store files from folder_path
store_str
Store str data
top_up_bucket
Top up every bucket some Cycles by using icsp’s Cycles