update
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
name = "GeneralUtils"
|
name = "GeneralUtils"
|
||||||
uuid = "c6c72f09-b708-4ac8-ac7c-2084d70108fe"
|
uuid = "c6c72f09-b708-4ac8-ac7c-2084d70108fe"
|
||||||
version = "0.6.5"
|
version = "0.6.6"
|
||||||
authors = ["tonaerospace <tonaerospace.etc@gmail.com>"]
|
authors = ["tonaerospace <tonaerospace.etc@gmail.com>"]
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|||||||
+5
-5
@@ -46,13 +46,13 @@ https://s3-web.mydomain.com/my_bucket_name/users-1005.json
|
|||||||
# 1. Custom GarageConfig Definition (Thread-Safe, No Global State)
|
# 1. Custom GarageConfig Definition (Thread-Safe, No Global State)
|
||||||
# ===================================================================
|
# ===================================================================
|
||||||
|
|
||||||
struct SimpleCredentials
|
mutable struct SimpleCredentials
|
||||||
access_key_id::String
|
access_key_id::String
|
||||||
secret_key::String
|
secret_key::String
|
||||||
token::String
|
token::String
|
||||||
end
|
end
|
||||||
|
|
||||||
struct GarageConfig <: AWS.AbstractAWSConfig
|
mutable struct GarageConfig <: AWS.AbstractAWSConfig
|
||||||
endpoint::String
|
endpoint::String
|
||||||
region::String
|
region::String
|
||||||
credentials::SimpleCredentials
|
credentials::SimpleCredentials
|
||||||
@@ -113,7 +113,7 @@ julia> storage = GarageStorage("https://s3-api.yiem.cc", "GKb08015", "55114ff948
|
|||||||
GarageStorage(GarageConfig(...), "sommpanion-s3")
|
GarageStorage(GarageConfig(...), "sommpanion-s3")
|
||||||
```
|
```
|
||||||
"""
|
"""
|
||||||
struct GarageStorage
|
mutable struct GarageStorage
|
||||||
config::GarageConfig
|
config::GarageConfig
|
||||||
bucket::String
|
bucket::String
|
||||||
end
|
end
|
||||||
@@ -146,7 +146,7 @@ julia> downloadUrl.web
|
|||||||
"https://s3-web.yiem.cc/sommpanion-s3/test.json"
|
"https://s3-web.yiem.cc/sommpanion-s3/test.json"
|
||||||
```
|
```
|
||||||
"""
|
"""
|
||||||
struct put_file
|
mutable struct put_file
|
||||||
storage::GarageStorage
|
storage::GarageStorage
|
||||||
end
|
end
|
||||||
function (pf::put_file)(key::String, data::Union{String, Vector{UInt8}}
|
function (pf::put_file)(key::String, data::Union{String, Vector{UInt8}}
|
||||||
@@ -279,7 +279,7 @@ end
|
|||||||
- `enabled::Bool`: Whether the rule is active (default: `true`).
|
- `enabled::Bool`: Whether the rule is active (default: `true`).
|
||||||
- `id::String`: Unique identifier for the rule (default: auto-generated).
|
- `id::String`: Unique identifier for the rule (default: auto-generated).
|
||||||
"""
|
"""
|
||||||
struct LifecycleExpiration
|
mutable struct LifecycleExpiration
|
||||||
prefix::String
|
prefix::String
|
||||||
days::Int
|
days::Int
|
||||||
enabled::Bool
|
enabled::Bool
|
||||||
|
|||||||
Reference in New Issue
Block a user