This commit is contained in:
2026-08-28 07:52:07 +07:00
parent 32cd21e1ee
commit 86b8582584
+3 -3
View File
@@ -140,7 +140,7 @@ function GarageStorage(endpoint::String, key::String, secret::String, bucket::St
return GarageStorage(config, bucket) return GarageStorage(config, bucket)
end end
""" Upload an object to the Garage S3 bucket (callable wrapper). """ Upload an object to the Garage S3 bucket (callable struct).
# Arguments # Arguments
- `key::String` - `key::String`
@@ -158,9 +158,9 @@ end
# Examples # Examples
```jldoctest ```jldoctest
julia> storage = GarageStorage("https://s3-api.yiem.cc", "GKb08015", "55114ff94828febca1", "sommpanion-s3") julia> storage1 = GarageStorage("https://s3-api.yiem.cc", "GKb08015", "55114ff94828febca1", "sommpanion-s3")
julia> url = put_file(storage)("test.json", "{\"status\": \"active\"}") julia> url = storage1("test.json", "{\"status\": \"active\"}")
Successfully uploaded: test.json Successfully uploaded: test.json
"https://s3-api.yiem.cc/sommpanion-s3/test.json" "https://s3-api.yiem.cc/sommpanion-s3/test.json"
``` ```