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:
parent
e340687ab5
commit
c74bfe2aaf
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue