From c74bfe2aafb7b154da482db02422232e7704ace0 Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Wed, 15 Jun 2022 13:17:26 +0200 Subject: [PATCH] ostree: add new CommitSource type Will be used by pipeline generators to specify the source URL for a given commit in the manifest sources. --- internal/ostree/ostree.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/ostree/ostree.go b/internal/ostree/ostree.go index 3bee97715..c307922ad 100644 --- a/internal/ostree/ostree.go +++ b/internal/ostree/ostree.go @@ -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) }