Droplet
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
Asynchronous management

Asynchronous REST operations. More...

Functions

dpl_task_tdpl_list_all_my_buckets_async_prepare (dpl_ctx_t *ctx)
 list all buckets More...
 
dpl_task_tdpl_list_bucket_async_prepare (dpl_ctx_t *ctx, const char *bucket, const char *prefix, const char *delimiter)
 list bucket or directory More...
 
dpl_task_tdpl_make_bucket_async_prepare (dpl_ctx_t *ctx, const char *bucket, dpl_location_constraint_t location_constraint, dpl_canned_acl_t canned_acl)
 make a bucket More...
 
dpl_task_tdpl_delete_bucket_prepare (dpl_ctx_t *ctx, const char *bucket)
 delete a resource More...
 
dpl_task_tdpl_post_async_prepare (dpl_ctx_t *ctx, const char *bucket, const char *resource, const dpl_option_t *option, dpl_ftype_t object_type, const dpl_condition_t *condition, const dpl_range_t *range, const dpl_dict_t *metadata, const dpl_sysmd_t *sysmd, dpl_buf_t *buf, const dpl_dict_t *query_params)
 create or post data into a resource More...
 
dpl_task_tdpl_put_async_prepare (dpl_ctx_t *ctx, const char *bucket, const char *resource, const dpl_option_t *option, dpl_ftype_t object_type, const dpl_condition_t *condition, const dpl_range_t *range, const dpl_dict_t *metadata, const dpl_sysmd_t *sysmd, dpl_buf_t *buf)
 put a resource More...
 
dpl_task_tdpl_get_async_prepare (dpl_ctx_t *ctx, const char *bucket, const char *resource, const dpl_option_t *option, dpl_ftype_t object_type, const dpl_condition_t *condition, const dpl_range_t *range)
 get a resource with range More...
 
dpl_task_tdpl_head_async_prepare (dpl_ctx_t *ctx, const char *bucket, const char *resource, const dpl_option_t *option, dpl_ftype_t object_type, const dpl_condition_t *condition)
 get user and system metadata More...
 
dpl_task_tdpl_delete_async_prepare (dpl_ctx_t *ctx, const char *bucket, const char *resource, const dpl_option_t *option, dpl_ftype_t object_type, const dpl_condition_t *condition)
 delete a resource More...
 
dpl_task_tdpl_copy_async_prepare (dpl_ctx_t *ctx, const char *src_bucket, const char *src_resource, const char *dst_bucket, const char *dst_resource, const dpl_option_t *option, dpl_ftype_t object_type, dpl_copy_directive_t copy_directive, const dpl_dict_t *metadata, const dpl_sysmd_t *sysmd, const dpl_condition_t *condition)
 perform various flavors of server side copies More...
 
dpl_task_tdpl_post_id_async_prepare (dpl_ctx_t *ctx, const char *bucket, const char *id, const dpl_option_t *option, dpl_ftype_t object_type, const dpl_condition_t *condition, const dpl_range_t *range, const dpl_dict_t *metadata, const dpl_sysmd_t *sysmd, dpl_buf_t *buf, const dpl_dict_t *query_params)
 create or post data into a resource More...
 
dpl_task_tdpl_put_id_async_prepare (dpl_ctx_t *ctx, const char *bucket, const char *resource, const dpl_option_t *option, dpl_ftype_t object_type, const dpl_condition_t *condition, const dpl_range_t *range, const dpl_dict_t *metadata, const dpl_sysmd_t *sysmd, dpl_buf_t *buf)
 put a resource More...
 
dpl_task_tdpl_get_id_async_prepare (dpl_ctx_t *ctx, const char *bucket, const char *resource, const dpl_option_t *option, dpl_ftype_t object_type, const dpl_condition_t *condition, const dpl_range_t *range)
 get a resource with range More...
 
dpl_task_tdpl_head_id_async_prepare (dpl_ctx_t *ctx, const char *bucket, const char *resource, const dpl_option_t *option, dpl_ftype_t object_type, const dpl_condition_t *condition)
 get user and system metadata More...
 
dpl_task_tdpl_delete_id_async_prepare (dpl_ctx_t *ctx, const char *bucket, const char *resource, const dpl_option_t *option, dpl_ftype_t object_type, const dpl_condition_t *condition)
 delete a resource More...
 
dpl_task_tdpl_copy_id_async_prepare (dpl_ctx_t *ctx, const char *src_bucket, const char *src_resource, const char *dst_bucket, const char *dst_resource, const dpl_option_t *option, dpl_ftype_t object_type, dpl_copy_directive_t copy_directive, const dpl_dict_t *metadata, const dpl_sysmd_t *sysmd, const dpl_condition_t *condition)
 perform various flavors of server side copies More...
 

Detailed Description

Function Documentation

dpl_task_t* dpl_copy_async_prepare ( dpl_ctx_t ctx,
const char *  src_bucket,
const char *  src_resource,
const char *  dst_bucket,
const char *  dst_resource,
const dpl_option_t option,
dpl_ftype_t  object_type,
dpl_copy_directive_t  copy_directive,
const dpl_dict_t metadata,
const dpl_sysmd_t sysmd,
const dpl_condition_t condition 
)
Parameters
ctxthe droplet context
src_bucketthe optional source bucket
src_resourcethe mandat source resource
dst_bucketthe optional destination bucket
dst_resourcethe optional destination resource (if dst equals src)
optionunused
object_typeunused
copy_directiveDPL_COPY_DIRECTIVE_COPY server side copy
copy_directiveDPL_COPY_DIRECTIVE_METADATA_REPLACE setattr
copy_directiveDPL_COPY_DIRECTIVE_LINK hard link
copy_directiveDPL_COPY_DIRECTIVE_SYMLINK reference
copy_directiveDPL_COPY_DIRECTIVE_MOVE rename
copy_directiveDPL_COPY_DIRECTIVE_MKDENT create a directory entry
metadatathe optional user metadata
sysmdthe optional system metadata
conditionthe optional condition
Returns
DPL_SUCCESS
DPL_FAILURE
dpl_task_t* dpl_copy_id_async_prepare ( dpl_ctx_t ctx,
const char *  src_bucket,
const char *  src_resource,
const char *  dst_bucket,
const char *  dst_resource,
const dpl_option_t option,
dpl_ftype_t  object_type,
dpl_copy_directive_t  copy_directive,
const dpl_dict_t metadata,
const dpl_sysmd_t sysmd,
const dpl_condition_t condition 
)
Parameters
ctxthe droplet context
src_bucketthe optional source bucket
src_resourcethe mandat source resource
dst_bucketthe optional destination bucket
dst_resourcethe optional destination resource (if dst equals src)
optionunused
object_typeunused
copy_directiveDPL_COPY_DIRECTIVE_COPY server side copy
copy_directiveDPL_COPY_DIRECTIVE_METADATA_REPLACE setattr
copy_directiveDPL_COPY_DIRECTIVE_LINK hard link
copy_directiveDPL_COPY_DIRECTIVE_SYMLINK reference
copy_directiveDPL_COPY_DIRECTIVE_MOVE rename
copy_directiveDPL_COPY_DIRECTIVE_MKDENT create a directory entry
metadatathe optional user metadata
sysmdthe optional system metadata
conditionthe optional condition
Returns
DPL_SUCCESS
DPL_FAILURE
dpl_task_t* dpl_delete_async_prepare ( dpl_ctx_t ctx,
const char *  bucket,
const char *  resource,
const dpl_option_t option,
dpl_ftype_t  object_type,
const dpl_condition_t condition 
)
Parameters
ctxthe droplet context
bucketthe optional bucket
resourcethe mandat resource
optionDPL_OPTION_HTTP_COMPAT use if possible the HTTP compat mode
conditionthe optional condition
Returns
DPL_SUCCESS
DPL_FAILURE
DPL_ENOENT resource does not exist
dpl_task_t* dpl_delete_bucket_prepare ( dpl_ctx_t ctx,
const char *  bucket 
)
Parameters
ctxthe droplet context
bucketcan be NULL
Returns
task
dpl_task_t* dpl_delete_id_async_prepare ( dpl_ctx_t ctx,
const char *  bucket,
const char *  resource,
const dpl_option_t option,
dpl_ftype_t  object_type,
const dpl_condition_t condition 
)
Parameters
ctxthe droplet context
bucketthe optional bucket
resourcethe mandat resource
optionDPL_OPTION_HTTP_COMPAT use if possible the HTTP compat mode
conditionthe optional condition
Returns
DPL_SUCCESS
DPL_FAILURE
DPL_ENOENT resource does not exist
dpl_task_t* dpl_get_async_prepare ( dpl_ctx_t ctx,
const char *  bucket,
const char *  resource,
const dpl_option_t option,
dpl_ftype_t  object_type,
const dpl_condition_t condition,
const dpl_range_t range 
)
Parameters
ctxthe droplet context
bucketthe optional bucket
resourcethe mandat resource
optionDPL_OPTION_HTTP_COMPAT use if possible the HTTP compat mode
object_typeDPL_FTYPE_ANY get any type of resource
conditionthe optional condition
rangethe optional range
Returns
DPL_SUCCESS
DPL_FAILURE
DPL_ENOENT resource does not exist
dpl_task_t* dpl_get_id_async_prepare ( dpl_ctx_t ctx,
const char *  bucket,
const char *  resource,
const dpl_option_t option,
dpl_ftype_t  object_type,
const dpl_condition_t condition,
const dpl_range_t range 
)
Parameters
ctxthe droplet context
bucketthe optional bucket
resourcethe mandat resource
optionDPL_OPTION_HTTP_COMPAT use if possible the HTTP compat mode
object_typeDPL_FTYPE_ANY get any type of resource
conditionthe optional condition
rangethe optional range
Returns
DPL_SUCCESS
DPL_FAILURE
DPL_ENOENT resource does not exist
dpl_task_t* dpl_head_async_prepare ( dpl_ctx_t ctx,
const char *  bucket,
const char *  resource,
const dpl_option_t option,
dpl_ftype_t  object_type,
const dpl_condition_t condition 
)
Parameters
ctxthe droplet context
bucketthe optional bucket
resourcethe mandat resource
optionDPL_OPTION_HTTP_COMPAT use if possible the HTTP compat mode
object_typeDPL_FTYPE_ANY get any type of resource
conditionthe optional condition
metadatapthe returned user metadata client shall free
sysmdpthe returned system metadata passed through stack
Returns
DPL_SUCCESS
DPL_FAILURE
DPL_ENOENT resource does not exist
dpl_task_t* dpl_head_id_async_prepare ( dpl_ctx_t ctx,
const char *  bucket,
const char *  resource,
const dpl_option_t option,
dpl_ftype_t  object_type,
const dpl_condition_t condition 
)
Parameters
ctxthe droplet context
bucketthe optional bucket
resourcethe mandat resource
optionDPL_OPTION_HTTP_COMPAT use if possible the HTTP compat mode
object_typeDPL_FTYPE_ANY get any type of resource
conditionthe optional condition
metadatapthe returned user metadata client shall free
sysmdpthe returned system metadata passed through stack
Returns
DPL_SUCCESS
DPL_FAILURE
DPL_ENOENT resource does not exist
dpl_task_t* dpl_list_all_my_buckets_async_prepare ( dpl_ctx_t ctx)
Parameters
ctxthe droplect context
cb_funcall callback returning a vector of dpl_bucket_t *
cb_argclosure
Returns
task
dpl_task_t* dpl_list_bucket_async_prepare ( dpl_ctx_t ctx,
const char *  bucket,
const char *  prefix,
const char *  delimiter 
)
Parameters
ctxthe droplet context
bucketcan be NULL
prefixdirectory can be NULL
delimitere.g. "/" can be NULL
cb_func
cb_arg
Returns
task
dpl_task_t* dpl_make_bucket_async_prepare ( dpl_ctx_t ctx,
const char *  bucket,
dpl_location_constraint_t  location_constraint,
dpl_canned_acl_t  canned_acl 
)
Parameters
ctxthe droplet context
bucketcan be NULL
location_constraintgeographic location
canned_aclsimplified ACL
Returns
task
dpl_task_t* dpl_post_async_prepare ( dpl_ctx_t ctx,
const char *  bucket,
const char *  resource,
const dpl_option_t option,
dpl_ftype_t  object_type,
const dpl_condition_t condition,
const dpl_range_t range,
const dpl_dict_t metadata,
const dpl_sysmd_t sysmd,
dpl_buf_t buf,
const dpl_dict_t query_params 
)
Note
this function is expected to return a newly created object
Parameters
ctxthe droplet context
bucketcan be NULL
resourcecan be NULL
optionDPL_OPTION_HTTP_COMPAT use if possible the HTTP compat mode
object_typeDPL_FTYPE_REG create a file
metadatathe user metadata. optional
sysmdthe system metadata. optional
bufthe data buffer
query_paramscan be NULL
returned_sysmdpthe returned system metadata passed through stack
Returns
DPL_SUCCESS
DPL_FAILURE
dpl_task_t* dpl_post_id_async_prepare ( dpl_ctx_t ctx,
const char *  bucket,
const char *  id,
const dpl_option_t option,
dpl_ftype_t  object_type,
const dpl_condition_t condition,
const dpl_range_t range,
const dpl_dict_t metadata,
const dpl_sysmd_t sysmd,
dpl_buf_t buf,
const dpl_dict_t query_params 
)
Note
this function is expected to return a newly created object
Parameters
ctxthe droplet context
bucketcan be NULL
optionDPL_OPTION_HTTP_COMPAT use if possible the HTTP compat mode
object_typeDPL_FTYPE_REG create a file
metadatathe user metadata. optional
sysmdthe system metadata. optional
bufthe data buffer
query_paramscan be NULL
returned_sysmdpthe returned system metadata passed through stack
Returns
DPL_SUCCESS
DPL_FAILURE
dpl_task_t* dpl_put_async_prepare ( dpl_ctx_t ctx,
const char *  bucket,
const char *  resource,
const dpl_option_t option,
dpl_ftype_t  object_type,
const dpl_condition_t condition,
const dpl_range_t range,
const dpl_dict_t metadata,
const dpl_sysmd_t sysmd,
dpl_buf_t buf 
)
Parameters
ctxthe droplet context
bucketoptional
resourcemandatory
optionDPL_OPTION_HTTP_COMPAT use if possible the HTTP compat mode
object_typeDPL_FTYPE_REG create a file
object_typeDPL_FTYPE_DIR create a directory
conditionthe optional condition
rangeoptional range
metadatathe optional user metadata
sysmdthe optional system metadata
bufthe data buffer
Returns
DPL_SUCCESS
DPL_FAILURE
DPL_EEXIST
dpl_task_t* dpl_put_id_async_prepare ( dpl_ctx_t ctx,
const char *  bucket,
const char *  resource,
const dpl_option_t option,
dpl_ftype_t  object_type,
const dpl_condition_t condition,
const dpl_range_t range,
const dpl_dict_t metadata,
const dpl_sysmd_t sysmd,
dpl_buf_t buf 
)
Parameters
ctxthe droplet context
bucketoptional
resourcemandatory
optionDPL_OPTION_HTTP_COMPAT use if possible the HTTP compat mode
object_typeDPL_FTYPE_REG create a file
object_typeDPL_FTYPE_DIR create a directory
conditionthe optional condition
rangeoptional range
metadatathe optional user metadata
sysmdthe optional system metadata
bufthe data buffer
Returns
DPL_SUCCESS
DPL_FAILURE
DPL_EEXIST