Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libfaasm(s3): add option to include prefix #130

Merged
merged 4 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion libfaasm/faasm/host_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,17 +173,29 @@ void __faasm_s3_list_buckets(void* bucketsBuffer, int* bucketsBufferLens);
HOST_IFACE_FUNC
int __faasm_s3_get_num_keys(const char* bucketName);

HOST_IFACE_FUNC
int __faasm_s3_get_num_keys_with_prefix(const char* bucketName,
const char* prefix);

// Note that keysBuffer is, in reality, a char** populated by the host
HOST_IFACE_FUNC
void __faasm_s3_list_keys(const char* bucketName,
void* keysBuffer,
int* keysBufferLens);

// Note that keysBuffer is, in reality, a char** populated by the host
HOST_IFACE_FUNC
void __faasm_s3_list_keys_with_prefix(const char* bucketName,
const char* prefix,
void* keysBuffer,
int* keysBufferLens);

HOST_IFACE_FUNC
int __faasm_s3_add_key_bytes(const char* bucketName,
const char* keyName,
void* keyBuffer,
int keyBufferLen);
int keyBufferLen,
bool overwrite = false);

// Note that keyBuffer is, in reality, a uint8_t** populated by the host
HOST_IFACE_FUNC
Expand Down
2 changes: 2 additions & 0 deletions libfaasm/libfaasm.imports
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ __faasm_migrate_point
__faasm_s3_get_num_buckets
__faasm_s3_list_buckets
__faasm_s3_get_num_keys
__faasm_s3_get_num_keys_with_prefix
__faasm_s3_list_keys
__faasm_s3_list_keys_with_prefix
__faasm_s3_add_key_bytes
__faasm_s3_get_key_bytes

Expand Down