aboutsummaryrefslogtreecommitdiff
path: root/sources.go
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-11 07:36:28 +0000
committerFuwn <[email protected]>2024-10-11 07:36:28 +0000
commit0433ac6aac6011a79a9cae54123e68f2fd92c0d9 (patch)
tree08d548e0652c2cc3d24ae260d4bdc872e78b2741 /sources.go
parentdocs(readme): add introduction section (diff)
downloadyae-0433ac6aac6011a79a9cae54123e68f2fd92c0d9.tar.xz
yae-0433ac6aac6011a79a9cae54123e68f2fd92c0d9.zip
feat(yae): git sources and remote git source updater
Diffstat (limited to 'sources.go')
-rw-r--r--sources.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/sources.go b/sources.go
index 6b996ac..11d9715 100644
--- a/sources.go
+++ b/sources.go
@@ -9,9 +9,13 @@ import (
type Sources map[string]Source
type Source struct {
- URI string `json:"url"`
- SHA256 string `json:"sha256"`
- Unpack bool `json:"unpack"`
+ URI string `json:"url"`
+ SHA256 string `json:"sha256"`
+ Unpack bool `json:"unpack"`
+ Type string `json:"type"`
+ Version string `json:"version,omitempty"`
+ URITemplate string `json:"uri_template,omitempty"`
+ TagPredicate string `json:"tag_predicate,omitempty"`
}
func (s *Sources) EnsureLoaded() error {