From ee8ade118915c73c9ad12571e377b7fec09a1fa4 Mon Sep 17 00:00:00 2001 From: narawat Date: Mon, 31 Aug 2026 15:52:40 +0700 Subject: [PATCH] update --- Project.toml | 2 +- src/garageS3.jl | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Project.toml b/Project.toml index 5de013d..a8910ca 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "GeneralUtils" uuid = "c6c72f09-b708-4ac8-ac7c-2084d70108fe" -version = "0.6.5" +version = "0.6.6" authors = ["tonaerospace "] [deps] diff --git a/src/garageS3.jl b/src/garageS3.jl index ca264b6..f967504 100644 --- a/src/garageS3.jl +++ b/src/garageS3.jl @@ -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