Commit Graph

1235 Commits

Author SHA1 Message Date
dependabot[bot] d29df00f3e
chore(deps): Bump serde from 1.0.196 to 1.0.197 (#306)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.196 to 1.0.197.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.196...v1.0.197)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 10:30:32 +08:00
dependabot[bot] d168b060c3
chore(deps): Bump thiserror from 1.0.56 to 1.0.57 (#305)
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.56 to 1.0.57.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.56...1.0.57)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 10:29:50 +08:00
dependabot[bot] a8d418d658
chore(deps): Bump softprops/action-gh-release from 1 to 2 (#304)
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 1 to 2.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/v1...v2)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 10:29:31 +08:00
Gaius e7f53a09e1
chore: remove readme in sub crates (#303)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-03-07 10:28:10 +08:00
Gaius b9e82712d8
chore: free disk space in actions (#302)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-03-05 19:47:59 +08:00
Gaius fde6fc3c51
chore: update crate verison (#301)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-03-05 18:36:32 +08:00
Gaius 37432e57e3
chore: remove src dir in Dockerfile (#300)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-03-05 18:16:31 +08:00
Gaius 701837329e
refactor: add dragonfly-client crate (#299)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-03-05 17:44:04 +08:00
Gaius 2fda6c7ea3
refactor: add dragonfly-client-backend crate (#298)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-03-05 17:01:36 +08:00
Gaius a653b401da
refactor: add dragonfly-client-storage crate (#297)
chore: add dragonfly-client-storage crate

Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-03-05 16:11:52 +08:00
Gaius 8edfd7edc5
refactor: add dragonfly-client-config crate (#296) 2024-03-05 15:38:29 +08:00
Gaius a131bb8eb3
refactor: add dragonfly-client-util crate (#295)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-03-05 14:25:41 +08:00
Gaius 072fd53824
fix: replace dragonfly_client::Error with dragonfly_client_core::Error (#294)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-03-05 13:27:28 +08:00
Gaius b8561d3b5f
refactor: add dragonfly-client-core crate (#293)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-03-05 12:23:20 +08:00
dependabot[bot] 17521f6138
chore(deps): Bump openssl from 0.10.63 to 0.10.64 (#287)
Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.63 to 0.10.64.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.63...openssl-v0.10.64)

---
updated-dependencies:
- dependency-name: openssl
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-04 20:36:03 +08:00
dependabot[bot] ecd234397a
chore(deps): Bump rustls-pemfile from 2.1.0 to 2.1.1 (#289)
Bumps [rustls-pemfile](https://github.com/rustls/pemfile) from 2.1.0 to 2.1.1.
- [Release notes](https://github.com/rustls/pemfile/releases)
- [Commits](https://github.com/rustls/pemfile/compare/v/2.1.0...v/2.1.1)

---
updated-dependencies:
- dependency-name: rustls-pemfile
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-04 20:35:08 +08:00
dependabot[bot] 1338a37672
chore(deps): Bump serde_yaml from 0.9.31 to 0.9.32 (#290)
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml) from 0.9.31 to 0.9.32.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases)
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.9.31...0.9.32)

---
updated-dependencies:
- dependency-name: serde_yaml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-04 20:34:16 +08:00
Gaius 732fd384ba
feat: remove client certs for backend (#291)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-03-04 20:34:00 +08:00
Gaius 4bd5785509
chore: update crate versin to v0.1.16 (#285)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-03-04 10:28:58 +08:00
Gaius 4541565e2e
chore: update crate version to 0.1.15 (#284)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-03-01 18:57:30 +08:00
Gaius 16746bf3fb
feat: add client certs to backend request config (#283)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-03-01 16:03:31 +08:00
Gaius 5f3e51c58b
feat: add certificate chain for download request for self-signed certificate (#282)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-02-29 16:34:48 +08:00
Gaius 4733abc139
feat: add self-signed certs for registry (#281)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-02-29 10:35:33 +08:00
Gaius cfb41b0862
feat: replace hyper-tls with hyper-rustls for HttpsConnector (#280) 2024-02-28 16:48:01 +08:00
Gaius 0e4bcbe046
feat: if download back-to-source failed, proxy returns http code and header (#279)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-02-28 14:04:31 +08:00
dependabot[bot] 84368216d0
chore(deps): Bump anyhow from 1.0.79 to 1.0.80 (#277)
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.79 to 1.0.80.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.79...1.0.80)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-27 10:43:23 +08:00
dependabot[bot] 16cefe5165
chore(deps): Bump rustls-pemfile from 2.0.0 to 2.1.0 (#276)
Bumps [rustls-pemfile](https://github.com/rustls/pemfile) from 2.0.0 to 2.1.0.
- [Release notes](https://github.com/rustls/pemfile/releases)
- [Commits](https://github.com/rustls/pemfile/compare/v/2.0.0...v/2.1.0)

---
updated-dependencies:
- dependency-name: rustls-pemfile
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-27 10:42:47 +08:00
dependabot[bot] ffaecb7dd7
chore(deps): Bump clap from 4.4.18 to 4.5.1 (#275)
Bumps [clap](https://github.com/clap-rs/clap) from 4.4.18 to 4.5.1.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.4.18...clap_complete-v4.5.1)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-27 10:42:05 +08:00
dependabot[bot] 6bd0018851
chore(deps): Bump serde_json from 1.0.113 to 1.0.114 (#274)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.113 to 1.0.114.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.113...v1.0.114)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-27 10:41:47 +08:00
dependabot[bot] d56f2f27c7
chore(deps): Bump rocksdb from 0.21.0 to 0.22.0 (#273)
Bumps [rocksdb](https://github.com/rust-rocksdb/rust-rocksdb) from 0.21.0 to 0.22.0.
- [Release notes](https://github.com/rust-rocksdb/rust-rocksdb/releases)
- [Changelog](https://github.com/rust-rocksdb/rust-rocksdb/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-rocksdb/rust-rocksdb/compare/v0.21.0...v0.22.0)

---
updated-dependencies:
- dependency-name: rocksdb
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-27 10:41:16 +08:00
Gaius 3fda537b69
feat: rewrite registry mirror request (#278) 2024-02-26 23:11:45 +08:00
Gaius 39e9b889f0
feat: add registry mirror for dfdaemon (#272)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-02-26 14:57:03 +08:00
Gaius 5b2464741f
feat: remove error log about proxy directly to remote server (#271)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-02-22 13:42:46 +08:00
Gaius 280ecaae35
feat: generate CA by openssl with PEM foramt files (#270)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-02-21 22:06:45 +08:00
dependabot[bot] 3cdfc4f659
chore(deps): Bump chrono from 0.4.33 to 0.4.34 (#266)
Bumps [chrono](https://github.com/chronotope/chrono) from 0.4.33 to 0.4.34.
- [Release notes](https://github.com/chronotope/chrono/releases)
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md)
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.33...v0.4.34)

---
updated-dependencies:
- dependency-name: chrono
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-21 10:35:11 +08:00
dependabot[bot] ec0646e06b
chore(deps): Bump indicatif from 0.17.7 to 0.17.8 (#267)
Bumps [indicatif](https://github.com/console-rs/indicatif) from 0.17.7 to 0.17.8.
- [Release notes](https://github.com/console-rs/indicatif/releases)
- [Commits](https://github.com/console-rs/indicatif/commits)

---
updated-dependencies:
- dependency-name: indicatif
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-21 10:34:47 +08:00
dependabot[bot] 762ffe24d7
chore(deps): Bump dragonfly-api from 2.0.94 to 2.0.95 (#269)
Bumps [dragonfly-api](https://github.com/dragonflyoss/api) from 2.0.94 to 2.0.95.
- [Commits](https://github.com/dragonflyoss/api/compare/v2.0.94...v2.0.95)

---
updated-dependencies:
- dependency-name: dragonfly-api
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-21 10:33:54 +08:00
Gaius 1007c7ad84
chore: update cargo version to v0.1.14 (#264)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-02-08 13:25:58 +08:00
Gaius 223a70ca9d
feat: add leave host to dfdaemon (#263)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-02-08 12:34:33 +08:00
Gaius 3e7e029137
feat: change proxy https port to 443 (#262)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-02-08 11:26:29 +08:00
Gaius 13617b2390
feat: handle the upgraded request with https (#261) 2024-02-07 18:46:37 +08:00
Gaius 0bd3d53072
feat: add tunnel to handle https and add ca_cert and ca_key config (#260)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-02-07 15:21:07 +08:00
Gaius 93763a38c9
feat: add generate_self_signed_cert and generate_self_signed_cert_by_ca (#259)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-02-07 13:26:04 +08:00
Gaius f6f944dac3
fix: caculate range length of range header (#252)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-02-05 15:08:11 +08:00
Gaius b422d8ea03
fix: calculate interested pieces by range (#251)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-02-05 10:56:48 +08:00
Gaius b8db169b82
feat: optimize logs of th copy piece actions (#250)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-02-01 21:54:58 +08:00
Gaius f97fd1bff2
feat: optimize proxy request by dfdaemon (#249)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-02-01 15:12:09 +08:00
Gaius 4e8a2e2dc0
feat: async write data to response (#248)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-02-01 10:31:35 +08:00
Gaius 5349f93b04
feat: remove task finished response (#246)
Signed-off-by: Gaius <gaius.qi@gmail.com>
2024-01-31 10:42:56 +08:00
Gaius 05b62918ff
feat: change short of the output options from o to O (#247) 2024-01-30 21:25:53 +08:00