Pārlūkot izejas kodu

x/model: update doc showing option name parts

Blake Mizerany 1 gadu atpakaļ
vecāks
revīzija
aca112a308
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      x/model/name.go

+ 1 - 1
x/model/name.go

@@ -106,7 +106,7 @@ type Name struct {
 // ParseName parses s into a Name. The input string must be a valid string
 // representation of a model name in the form:
 //
-//	<host>/<namespace>/<model>:<tag>+<build>@<digest-type>-<digest>
+//	[host/][namespace/]<model>[:tag][+build][@<digest-type>-<digest>]
 //
 // The name part is required, all others are optional. If a part is missing,
 // it is left empty in the returned Name. If a part is invalid, the zero Ref