-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathobject.h
More file actions
40 lines (32 loc) · 1.59 KB
/
object.h
File metadata and controls
40 lines (32 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef OSS_OBJECT_H
#define OSS_OBJECT_H
#include "http.h"
oss_error_t oss_head_object(struct ohttp_connection *conn,
const char *bucket,
const char *object);
oss_error_t oss_get_object_to_file(struct ohttp_connection *conn,
const char *bucket,
const char *object,
const char *filename);
oss_error_t oss_put_object_from_buffer(struct ohttp_connection *conn,
const char *bucket,
const char *object,
const void *buffer,
int length);
oss_error_t oss_put_object_from_file(struct ohttp_connection *conn,
const char *bucket,
const char *object,
const char *filename);
oss_error_t oss_delete_object(struct ohttp_connection *conn,
const char *bucket,
const char *object);
oss_error_t init_upload(struct ohttp_connection *conn,
const char *bucket,
const char *object,
char **upload_id);
oss_error_t upload_part(struct ohttp_connection *conn,
const char *bucket,
const char *object,
const char *upload_id,
struct oss_io *io);
#endif