update
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
name = "GeneralUtils"
|
||||
uuid = "c6c72f09-b708-4ac8-ac7c-2084d70108fe"
|
||||
version = "0.6.5"
|
||||
version = "0.6.6"
|
||||
authors = ["tonaerospace <tonaerospace.etc@gmail.com>"]
|
||||
|
||||
[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)
|
||||
# ===================================================================
|
||||
|
||||
struct SimpleCredentials
|
||||
mutable struct SimpleCredentials
|
||||
access_key_id::String
|
||||
secret_key::String
|
||||
token::String
|
||||
end
|
||||
|
||||
struct GarageConfig <: AWS.AbstractAWSConfig
|
||||
mutable struct GarageConfig <: AWS.AbstractAWSConfig
|
||||
endpoint::String
|
||||
region::String
|
||||
credentials::SimpleCredentials
|
||||
@@ -113,7 +113,7 @@ julia> storage = GarageStorage("https://s3-api.yiem.cc", "GKb08015", "55114ff948
|
||||
GarageStorage(GarageConfig(...), "sommpanion-s3")
|
||||
```
|
||||
"""
|
||||
struct GarageStorage
|
||||
mutable struct GarageStorage
|
||||
config::GarageConfig
|
||||
bucket::String
|
||||
end
|
||||
@@ -146,7 +146,7 @@ julia> downloadUrl.web
|
||||
"https://s3-web.yiem.cc/sommpanion-s3/test.json"
|
||||
```
|
||||
"""
|
||||
struct put_file
|
||||
mutable struct put_file
|
||||
storage::GarageStorage
|
||||
end
|
||||
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`).
|
||||
- `id::String`: Unique identifier for the rule (default: auto-generated).
|
||||
"""
|
||||
struct LifecycleExpiration
|
||||
mutable struct LifecycleExpiration
|
||||
prefix::String
|
||||
days::Int
|
||||
enabled::Bool
|
||||
|
||||
Reference in New Issue
Block a user