update
This commit is contained in:
+3
-3
@@ -140,7 +140,7 @@ function GarageStorage(endpoint::String, key::String, secret::String, bucket::St
|
||||
return GarageStorage(config, bucket)
|
||||
end
|
||||
|
||||
""" Upload an object to the Garage S3 bucket (callable wrapper).
|
||||
""" Upload an object to the Garage S3 bucket (callable struct).
|
||||
|
||||
# Arguments
|
||||
- `key::String`
|
||||
@@ -158,9 +158,9 @@ end
|
||||
|
||||
# Examples
|
||||
```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
|
||||
"https://s3-api.yiem.cc/sommpanion-s3/test.json"
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user