diff --git a/src/garageS3.jl b/src/garageS3.jl index bc8d555..fe08b6b 100644 --- a/src/garageS3.jl +++ b/src/garageS3.jl @@ -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" ```