Commit Graph

98 Commits

Author SHA1 Message Date
Anthony Oteri e181fbb51c chore: update all dependencies to latest versions
- Replace deprecated serde_yaml with serde_yml
- Remove unused dependencies: serde_toml, xdg
- Bump thiserror 1→2, toml 0.8→1.0, reqwest 0.12.3→0.12 (latest),
  clap 4.4→4.6, tokio 1.32→1.52, and all other deps to latest
- Raise rust-version minimum from 1.72 to 1.80
- Fix description typo: 'interracting' → 'interacting'
- Bump version to 1.2.0
- Update release workflow action versions
2026-05-13 14:01:06 -04:00
dependabot[bot] 9b602f70a6 Merge pull request #64 from anthonyoteri/dependabot/cargo/simple_logger-5.0.0 2024-05-21 18:54:24 +00:00
dependabot[bot] f12615a7f2 Update simple_logger requirement from 4.2.0 to 5.0.0
Updates the requirements on [simple_logger](https://github.com/borntyping/rust-simple_logger) to permit the latest version.
- [Release notes](https://github.com/borntyping/rust-simple_logger/releases)
- [Commits](https://github.com/borntyping/rust-simple_logger/compare/v4.2.0...v5.0.0)

---
updated-dependencies:
- dependency-name: simple_logger
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-07 18:23:41 +00:00
dependabot[bot] 39c03a2b5b Merge pull request #59 from anthonyoteri/dependabot/cargo/env_logger-0.11.3 2024-05-06 19:28:45 +00:00
dependabot[bot] f836b26930 Merge pull request #63 from anthonyoteri/dependabot/cargo/reqwest-0.12.3 2024-05-06 19:28:33 +00:00
dependabot[bot] 0d9761178c Update reqwest requirement from 0.11.20 to 0.12.3
Updates the requirements on [reqwest](https://github.com/seanmonstar/reqwest) to permit the latest version.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.20...v0.12.3)

---
updated-dependencies:
- dependency-name: reqwest
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-05 18:44:24 +00:00
dependabot[bot] 358a19f6f7 Update env_logger requirement from 0.10.0 to 0.11.3
Updates the requirements on [env_logger](https://github.com/rust-cli/env_logger) to permit the latest version.
- [Release notes](https://github.com/rust-cli/env_logger/releases)
- [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-cli/env_logger/compare/v0.10.0...v0.11.3)

---
updated-dependencies:
- dependency-name: env_logger
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-05 18:16:31 +00:00
dependabot[bot] 0527b6268d Merge pull request #55 from anthonyoteri/dependabot/github_actions/github/codeql-action-3 2023-12-27 13:25:38 +00:00
dependabot[bot] 67c02581f3 Bump github/codeql-action from 2 to 3
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-13 18:20:08 +00:00
dependabot[bot] b6fda7162f Merge pull request #54 from anthonyoteri/dependabot/cargo/http-1.0.0 2023-11-16 16:18:29 +00:00
Anthony Oteri 07746429bb Be consistent with use of http and reqwest libraries
The types may have similar names but are distinct types and should be used consistently.  This changes
the code to use the header and status code information directly from the `reqwests` library instead of
mixing the two.

Signed-off-by: Anthony Oteri <anthony.oteri@gmail.com>
2023-11-16 10:30:03 -05:00
dependabot[bot] 23f1d21a2e Update http requirement from 0.2.9 to 1.0.0
Updates the requirements on [http](https://github.com/hyperium/http) to permit the latest version.
- [Release notes](https://github.com/hyperium/http/releases)
- [Changelog](https://github.com/hyperium/http/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/http/compare/v0.2.9...v1.0.0)

---
updated-dependencies:
- dependency-name: http
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-15 18:32:17 +00:00
Anthony Oteri 5e7d0e4e1e Release version 1.1.0 v1.1.0 2023-10-03 09:55:09 -04:00
Anthony Oteri 600c2d86ac Merge pull request #52 from anthonyoteri/license
Change License to MIT/Apache
2023-10-03 09:48:38 -04:00
Anthony Oteri 0e4219b405 Change License
This changes the effective license from a simple Apache-2.0 license to a
dual license consisting of both Apache-2.0 and the MIT license to be more
compatible for use in GPL Code.

The MIT license requires reproducing countless copies of the same copyright
header with diffferent names in the copyright field, for every MIT library
in use.  The Apache license does not have this drawback.  However, this is not
the primary motivation for creating these issues.  The Apache license also has
protections from patent trolls and explicit contribuition licensing clause.
However the Apache license is incompatible with GPLv2.  This is why Rust is
dual-licensed as MIT/Apache (the "primary" license being Apache, MIT only for
GPLv2 compat), and doing so would be wise for this project.  This also makes
this crate suitable for inclusion and unrestricted sharing in the Rust
standard distribution and other projects using dual MIT/Apache.
2023-10-03 09:36:43 -04:00
Anthony Oteri c7305f8cc4 Release version 1.0.0 v1.0.0 2023-10-02 13:44:53 -04:00
Anthony Oteri 02dd2ec90a Merge pull request #50 from anthonyoteri/rename-project
Rename project to dredge-tool
2023-10-02 13:43:32 -04:00
Anthony Oteri b60d433508 Rename project to dredge-tool
The name "dredge" alreay exists on crates.io, but "dredge-tool" does not.
The name "dredge-tool" is more clear that this is a binary tool anyway.
2023-10-02 13:33:50 -04:00
Anthony Oteri 0712af9d23 Merge pull request #49 from anthonyoteri/replace-async-std-with-tokio
Use better async runtime
2023-10-02 13:15:56 -04:00
Anthony Oteri 42f8f46bd3 Replace async_std::test with tokio::test 2023-10-02 13:10:55 -04:00
Anthony Oteri 80d1acf295 Replace async-std with tokio
Tokio is a far more mature async runtime.
2023-10-02 13:01:58 -04:00
Anthony Oteri 12dd298706 Update known issues in release notes 2023-09-29 18:18:47 -04:00
Anthony Oteri de42860be8 Release version 0.2.0 v0.2.0 2023-09-29 18:09:46 -04:00
Anthony Oteri b4d6002a20 Merge pull request #46 from anthonyoteri/support-delete
Support delete command
2023-09-29 18:08:40 -04:00
Anthony Oteri fbe43f03f1 Support deleting an image tag
If the Docker Registry API allows for images to be deleted, issuing the
command `delete <image> <tag>` will result in the tag being removed from
the server.

A limitation of this change is that it will cause any unreferenced tags
to become orphaned, requiring the garbage collector within the docker
registry server to clean these up.  This is because there is no way to
efficiently determine if each of the layers are reused by other tags or
images on the server.

Implement delete logic

Fix broken unit tests
2023-09-29 18:04:08 -04:00
Anthony Oteri 48070cff1f Merge pull request #45 from anthonyoteri/replace-femme-with-simple-logger
Replace Femme with SimpleLogger
2023-09-29 15:13:45 -04:00
Anthony Oteri 13ae092b91 Replace femme logger with simple_logger 2023-09-29 15:05:23 -04:00
Anthony Oteri b0239fb049 Fix script to update release notes v0.1.0 2023-09-29 14:53:35 -04:00
Anthony Oteri ed84e92112 Release version 0.1.0 2023-09-29 14:34:34 -04:00
Anthony Oteri cfdefb287c Additional scripts for managing the release process 2023-09-29 14:29:35 -04:00
Anthony Oteri 60acc6921c Replace deprecated actions v0.1.0-rc1 2023-09-29 12:13:53 -04:00
Anthony Oteri 7ba2359db5 Fix syntax error 2023-09-29 12:05:39 -04:00
Anthony Oteri c6294dc83e Fix name of rust-docs component 2023-09-29 12:01:09 -04:00
Anthony Oteri a47b4369f8 Add task to build documentation 2023-09-29 11:58:24 -04:00
Anthony Oteri b8d64542f2 Use lowercase filename and fix windows tar command 2023-09-29 11:41:12 -04:00
Anthony Oteri ce6bd4b46a Fix path of release binary 2023-09-29 11:35:42 -04:00
Anthony Oteri ab419fede0 Use extension in filename 2023-09-29 11:33:24 -04:00
Anthony Oteri cab6e40050 Use ref-name instead of ref for version 2023-09-29 11:28:54 -04:00
Anthony Oteri b12e5e4c7b Use gzip files to differentiate versions 2023-09-29 11:04:07 -04:00
Anthony Oteri 452a136b17 Split out release-assets job for windows from mac/linux 2023-09-29 10:39:21 -04:00
Anthony Oteri b676e7e220 Add permission to write contents to release_asset workflow 2023-09-28 17:55:41 -04:00
Anthony Oteri 5f1a98ded8 Add permission to write contents to release workflow 2023-09-28 17:45:11 -04:00
Anthony Oteri faf9ef5d73 Merge pull request #43 from anthonyoteri/support-release-workflow
Create Release Workflow
2023-09-28 17:39:01 -04:00
Anthony Oteri 8c737a9833 Create release workflow 2023-09-28 17:35:31 -04:00
Anthony Oteri 077ec6f5b9 Merge pull request #41 from anthonyoteri/image-detail-view
Support showing details of a tagged image
2023-09-27 10:13:52 -04:00
Anthony Oteri 86c82b2f76 Support detail view of a tagged image
Running the `dredge <REGISTRY> show <image> <tag>` now responds
with additional output in the form:

```yaml
name: foobar
tag: latest
architecture: amd64
fsLayers:
- blobSum: sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4
- blobSum: sha256:d4228a16bba21ff0eabab548df8f4933103d1a83e5894216c7eb32e3058a8e5e
- blobSum: sha256:1f25ec90921b9d511541f9d38ce2b339de2afffc586e55d75b7345b2057f1993
- blobSum: sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4
- blobSum: sha256:7d97e254a0461b0a30b3f443f1daa0d620a3cc6ff4e2714cc1cfd96ace5b7a7e
digest: sha256:0259571889ac87efbfca5b79a0abe9baf626d058ec5f9a5744bace2229d9ed50
etag: sha256:0259571889ac87efbfca5b79a0abe9baf626d058ec5f9a5744bace2229d9ed50
```
2023-09-27 10:09:52 -04:00
Anthony Oteri bc52542c83 Merge pull request #37 from anthonyoteri/additional-test-cases
Additional test coverage
2023-09-26 23:04:53 -04:00
Anthony Oteri 1ebe0bba84 Fix clippy error 2023-09-26 23:01:58 -04:00
Anthony Oteri 2e10f9b5f7 Automated code cleanup 2023-09-26 23:01:58 -04:00
Anthony Oteri e83cdef39c Additional test coverage for parsing the registry arg 2023-09-26 23:01:58 -04:00