Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
cirospaciari committed Dec 13, 2024
1 parent 3040bcb commit 7be26d8
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions src/s3.zig
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,10 @@ pub const AWSCredentials = struct {
},
};
}

pub const S3Error = struct {
code: []const u8,
message: []const u8,
};
pub const S3StatResult = union(enum) {
success: struct {
size: usize = 0,
Expand All @@ -282,10 +285,7 @@ pub const AWSCredentials = struct {
not_found: void,

/// failure error is not owned and need to be copied if used after this callback
failure: struct {
code: []const u8,
message: []const u8,
},
failure: S3Error,
};
pub const S3DownloadResult = union(enum) {
success: struct {
Expand All @@ -296,28 +296,19 @@ pub const AWSCredentials = struct {
},
not_found: void,
/// failure error is not owned and need to be copied if used after this callback
failure: struct {
code: []const u8,
message: []const u8,
},
failure: S3Error,
};
pub const S3UploadResult = union(enum) {
success: void,
/// failure error is not owned and need to be copied if used after this callback
failure: struct {
code: []const u8,
message: []const u8,
},
failure: S3Error,
};
pub const S3DeleteResult = union(enum) {
success: void,
not_found: void,

/// failure error is not owned and need to be copied if used after this callback
failure: struct {
code: []const u8,
message: []const u8,
},
failure: S3Error,
};
pub const S3HttpSimpleTask = struct {
http: bun.http.AsyncHTTP,
Expand Down

0 comments on commit 7be26d8

Please sign in to comment.