ExStorageServiceCli.S3Client (ex_storage_service_cli v0.1.2)

Copy Markdown View Source

S3-compatible HTTP client with automatic SigV4 request signing.

Wraps Req with path-style S3 addressing and XML response parsing.

Summary

Functions

Download an object from S3.

Head a bucket (check existence).

Head an object (get metadata without body).

Check server health.

List all buckets.

List objects in a bucket.

Creates a new S3 client configuration.

Functions

copy_object(client, src_bucket, src_key, dst_bucket, dst_key)

Copy an object within S3.

create_bucket(client, bucket)

Create a bucket.

delete_bucket(client, bucket)

Delete a bucket.

delete_object(client, bucket, key)

Delete an object.

get_object(client, bucket, key)

Download an object from S3.

head_bucket(client, bucket)

Head a bucket (check existence).

head_object(client, bucket, key)

Head an object (get metadata without body).

health(client)

Check server health.

list_buckets(client)

List all buckets.

list_objects(client, bucket, opts \\ [])

List objects in a bucket.

Options

  • :prefix - Filter by prefix
  • :delimiter - Delimiter for hierarchy (default: nil)
  • :max_keys - Maximum keys to return (default: 1000)
  • :continuation_token - Pagination token

new(ctx)

Creates a new S3 client configuration.

put_object(client, bucket, key, body, opts \\ [])

Upload a file to S3.