forge
Clone
https://git.tahinli.com/Tahinli/forge.git
0 watching0 forksRustAGPL-3.07.1 MiB490f099Tahinli7 hours ago322 commits
| 1 | //! Package registries. An owner (user or org) holds packages of one `kind`; each package has |
| 2 | //! versions. The stored shape is in migrations/0061_packages.sql, the store functions in |
| 3 | //! store/packages.rs. Bytes of a `.crate` live in blob storage under `packages/<version id>`; |
| 4 | //! only metadata is stored here. Kinds are `cargo` and `oci` (container images). |
| 5 | |
| 6 | /// The Cargo registry kind. |
| 7 | pub const KIND_CARGO: &str = "cargo"; |
| 8 | /// The container registry kind. Its packages are images; their tags and manifests are in the |
| 9 | /// `oci_*` tables (migrations/0062_oci.sql), not in `package_versions`. |
| 10 | pub const KIND_OCI: &str = "oci"; |
| 11 | |
| 12 | /// A package. `name_key` is the lowercase name the index uses; `private` hides the package and |
| 13 | /// its index from everyone but the owner's members. |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | /// One published version of a package. |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | /// A package with what its list shows: how many versions it has and the newest one. |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | /// Input for `Store::publish_package_version`. |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | /// A container manifest as pushed. `content` is the exact JSON, so its digest still checks. |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | /// One tag of a container image, with the manifest it points at. |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 |