Debian Codegraph @

ociregistry/valid.go

raw symbols SCIP
1 package ociregistry
2
3 import (
4 "cuelabs.dev/go/oci/ociregistry/ociref"
5 )
6
7 // IsValidRepoName reports whether the given repository
8 // name is valid according to the specification.
9 //
10 // Deprecated: use [ociref.IsValidRepository].
11 func IsValidRepoName(repoName string) bool {
12 return ociref.IsValidRepository(repoName)
13 }
14
15 // IsValidTag reports whether the digest d is valid
16 // according to the specification.
17 //
18 // Deprecated: use [ociref.IsValidTag].
19 func IsValidTag(tag string) bool {
20 return ociref.IsValidTag(tag)
21 }
22
23 // IsValidDigest reports whether the digest d is well formed.
24 //
25 // Deprecated: use [ociref.IsValidDigest].
26 func IsValidDigest(d string) bool {
27 return ociref.IsValidDigest(d)
28 }