update
This commit is contained in:
+4
-3
@@ -21,8 +21,9 @@ storage = GeneralUtils.GarageStorage(
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Safe to run inside concurrent HTTP handlers (e.g., Oxygen.jl, HTTP.jl)
|
# Safe to run inside concurrent HTTP handlers (e.g., Oxygen.jl, HTTP.jl)
|
||||||
downloadUrl = GeneralUtils.put_file(storage, "users1.json", "{\"status\": \"active\"}")
|
# use UUID as filename because GarageS3 requires unique filename for each uploaded object
|
||||||
keys = GeneralUtils.list_files(storage)
|
GeneralUtils.put_file(storage1, "transferjob-(GeneralUtils.uuid4snakecase())", "{\"status\": \"inactive\"}")
|
||||||
|
key = GeneralUtils.list_files(storage)
|
||||||
|
|
||||||
println("Read back: ", data)
|
println("Read back: ", data)
|
||||||
println("Bucket keys: ", keys)
|
println("Bucket keys: ", keys)
|
||||||
@@ -33,7 +34,7 @@ curl -v \
|
|||||||
http://192.168.88.106:3902/users-1002.json
|
http://192.168.88.106:3902/users-1002.json
|
||||||
|
|
||||||
# test with API
|
# test with API
|
||||||
data = String(GeneralUtils.get_file(storage, "users-1005.json"))
|
data = String(GeneralUtils.get_file(storage, key[1]))
|
||||||
|
|
||||||
# test with a browser
|
# test with a browser
|
||||||
https://s3-web.mydomain.com/my_bucket_name/users-1005.json
|
https://s3-web.mydomain.com/my_bucket_name/users-1005.json
|
||||||
|
|||||||
Reference in New Issue
Block a user