S3 interface functions


Functions

void s3_set_bucket (char *const str)
 Select current S3 bucket.
void s3_set_host (char *const str)
 Set S3 host.
int s3_put (IOBuf *b, char *const file)
 Upload the file into currently selected bucket.
int s3_get (IOBuf *b, char *const file)
 Download the file from the current bucket.

Function Documentation

int s3_get ( IOBuf b,
char *const   file 
)

Download the file from the current bucket.

Parameters:
b I/O buffer
file filename

Definition at line 532 of file aws4c.c.

References Bucket, GetStringToSign(), and s3_do_get().

Referenced by main().

int s3_put ( IOBuf b,
char *const   file 
)

Upload the file into currently selected bucket.

Parameters:
b I/O buffer
file filename

Definition at line 514 of file aws4c.c.

References Bucket, GetStringToSign(), and s3_do_put().

Referenced by main().

void s3_set_bucket ( char *const   str  ) 

Select current S3 bucket.

Parameters:
str bucket ID

Definition at line 502 of file aws4c.c.

References Bucket.

Referenced by main().

void s3_set_host ( char *const   str  ) 

Set S3 host.

Definition at line 506 of file aws4c.c.

References S3Host.

Referenced by main().


Generated by Doxygen