mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 04:48:26 +08:00
feat(repodb): sync-repodb WIP (#1241)
Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
This commit is contained in:
@@ -45,12 +45,12 @@ func ReferenceIsDigest(reference string) bool {
|
||||
return err == nil
|
||||
}
|
||||
|
||||
func ValidateRepoTagInput(repo, tag string, manifestDigest godigest.Digest) error {
|
||||
func ValidateRepoReferenceInput(repo, reference string, manifestDigest godigest.Digest) error {
|
||||
if repo == "" {
|
||||
return zerr.ErrEmptyRepoName
|
||||
}
|
||||
|
||||
if tag == "" {
|
||||
if reference == "" {
|
||||
return zerr.ErrEmptyTag
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user