We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43710a9 commit 5438948Copy full SHA for 5438948
pkg/name/registry.go
@@ -17,6 +17,7 @@ package name
17
import (
18
"net"
19
"net/url"
20
+ "path"
21
"regexp"
22
"strings"
23
)
@@ -50,6 +51,11 @@ func (r Registry) String() string {
50
51
return r.Name()
52
}
53
54
+// Repo returns a Repository in the Registry with the given name.
55
+func (r Registry) Repo(repo ...string) Repository {
56
+ return Repository{Registry: r, repository: path.Join(repo...)}
57
+}
58
+
59
// Scope returns the scope required to access the registry.
60
func (r Registry) Scope(string) string {
61
// The only resource under 'registry' is 'catalog'. http://goo.gl/N9cN9Z
0 commit comments