Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
fix: Add storage_features and default_storage_pairs support
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo committed Sep 6, 2021
1 parent 8e51037 commit c030f1e
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 20 deletions.
78 changes: 58 additions & 20 deletions generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions service.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name = "memory"
[namespace.storage]
implement = ["copier", "mover", "appender", "direr"]

[namespace.storage.new]
optional = ["storage_features", "default_storage_pairs"]

[namespace.storage.op.create]
optional = ["object_mode"]

Expand All @@ -20,3 +23,11 @@ optional = ["object_mode"]

[namespace.storage.op.write]
optional = ["content_md5", "content_type", "io_callback"]

[pairs.storage_features]
type = "StorageFeatures"
description = "set storage features"

[pairs.default_storage_pairs]
type = "DefaultStoragePairs"
description = "set default pairs for storager actions"

0 comments on commit c030f1e

Please sign in to comment.