ostree: add new CommitSource type

Will be used by pipeline generators to specify the source URL for a
given commit in the manifest sources.
This commit is contained in:
Achilleas Koutsou 2022-06-15 13:17:26 +02:00 committed by Tomáš Hozza
parent e340687ab5
commit c74bfe2aaf

View file

@ -18,6 +18,12 @@ type RequestParams struct {
Parent string `json:"parent"`
}
// CommitSource defines the source URL from which to fetch a specific commit.
type CommitSource struct {
Checksum string
URL string
}
func VerifyRef(ref string) bool {
return len(ref) > 0 && ostreeRefRE.MatchString(ref)
}