initial skeleton

This commit is contained in:
stoorps 2026-03-19 18:46:50 +00:00
parent dc79fa2448
commit 71f89dde9c
Signed by: stoorps
SSH key fingerprint: SHA256:AZlPfu9hTu042EGtZElmDQoy+KvMOeShLDan/fYLoNI
60 changed files with 3480 additions and 0 deletions

View file

@ -0,0 +1,29 @@
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum SourceKind {
GitHub,
GitLab,
DirectUrl,
File,
}
impl SourceKind {
pub fn as_str(&self) -> &'static str {
match self {
Self::GitHub => "github",
Self::GitLab => "gitlab",
Self::DirectUrl => "direct-url",
Self::File => "file",
}
}
}
#[derive(Debug, Eq, PartialEq)]
pub struct SourceRef {
pub kind: SourceKind,
pub locator: String,
}
#[derive(Debug, Eq, PartialEq)]
pub struct ResolvedRelease {
pub version: String,
}