forked from proxmox-mirrors/proxmox-backup

Get and store the datastore's backend on local chunk reader instantiantion and fetch chunks based on the variant from either the filesystem or the s3 object store. By storing the backend variant, the s3 client is instantiated only once and reused until the local chunk reader instance is dropped. Signed-off-by: Christian Ebner <c.ebner@proxmox.com> Reviewed-by: Lukas Wagner <l.wagner@proxmox.com> Reviewed-by: Hannes Laimer <h.laimer@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
55 lines
1.5 KiB
TOML
55 lines
1.5 KiB
TOML
[package]
|
|
name = "pbs-datastore"
|
|
version = "0.1.0"
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
description = "low level pbs data storage access"
|
|
rust-version.workspace = true
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
const_format.workspace = true
|
|
crc32fast.workspace = true
|
|
endian_trait.workspace = true
|
|
futures.workspace = true
|
|
hex = { workspace = true, features = [ "serde" ] }
|
|
http-body-util.workspace = true
|
|
hyper.workspace = true
|
|
libc.workspace = true
|
|
log.workspace = true
|
|
nix.workspace = true
|
|
openssl.workspace = true
|
|
regex.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
tokio = { workspace = true, features = [] }
|
|
tracing.workspace = true
|
|
walkdir.workspace = true
|
|
zstd.workspace = true
|
|
zstd-safe.workspace = true
|
|
|
|
pathpatterns.workspace = true
|
|
pxar.workspace = true
|
|
|
|
proxmox-async.workspace = true
|
|
proxmox-base64.workspace = true
|
|
proxmox-borrow.workspace = true
|
|
proxmox-http.workspace = true
|
|
proxmox-human-byte.workspace = true
|
|
proxmox-io.workspace = true
|
|
proxmox-lang.workspace=true
|
|
proxmox-s3-client = { workspace = true, features = [ "impl" ] }
|
|
proxmox-schema = { workspace = true, features = [ "api-macro" ] }
|
|
proxmox-serde = { workspace = true, features = [ "serde_json" ] }
|
|
proxmox-sys.workspace = true
|
|
proxmox-systemd.workspace = true
|
|
proxmox-time.workspace = true
|
|
proxmox-uuid.workspace = true
|
|
proxmox-worker-task.workspace = true
|
|
|
|
pbs-api-types.workspace = true
|
|
pbs-buildcfg.workspace = true
|
|
pbs-config.workspace = true
|
|
pbs-key-config.workspace = true
|
|
pbs-tools.workspace = true
|