34 Commits

Author SHA1 Message Date
Blake Mizerany
be7fe0d6d8 x/mode: more tests and a quick note 2024-04-07 16:38:50 -07:00
Blake Mizerany
bdff89bc4c x/model: add roundtrip for String test 2024-04-07 16:33:55 -07:00
Blake Mizerany
2100129e83 x/model: add Digest type 2024-04-07 15:38:11 -07:00
Blake Mizerany
4eb7acf84b x/model: prefix NamePart constants with Part 2024-04-07 15:17:02 -07:00
Blake Mizerany
ff68227ca1 x/model: add support for @digest 2024-04-07 15:12:36 -07:00
Blake Mizerany
d2aef85dda x/model: keep TextMarshal tests together 2024-04-07 10:28:49 -07:00
Blake Mizerany
1407fd3d4a x/model: Name: implement sql.Scanner and driver.Valuer 2024-04-07 10:25:44 -07:00
Blake Mizerany
6ba495d4a3 NameParts -> Parts 2024-04-06 23:46:01 -07:00
Blake Mizerany
348378ef56 x/model: make UnmarshalText illegal for an already valid Name 2024-04-06 18:00:03 -07:00
Blake Mizerany
14a6f85e9e x/model: replace part fields with array of parts
This makes building strings and reasoning about parts easier.
2024-04-06 13:59:38 -07:00
Blake Mizerany
45d8d22785 x/model: add MarshalText and UnmarshalText to Name 2024-04-06 00:10:12 -07:00
Blake Mizerany
fb0782b7a9 x/model: NamePartKind -> NamePart 2024-04-05 23:13:22 -07:00
Blake Mizerany
b24f1ad587 x/model: add DisplayFullest example 2024-04-05 22:50:42 -07:00
Blake Mizerany
0bea2b8916 x/model: make DisplayComplete DisplayFullest. 2024-04-05 22:47:39 -07:00
Blake Mizerany
6e464ebef8 x/model: add CompleteNoBuild 2024-04-05 22:41:22 -07:00
Blake Mizerany
f2c17682b0 x/model: add BenchmarkNameDisplay
Also, use range over int in other benchmarks.
2024-04-05 22:37:39 -07:00
Blake Mizerany
0c78e6c23d x/mode: add Name.DisplayFullest and update docs 2024-04-05 22:14:09 -07:00
Blake Mizerany
c0d4f55f3e x/model: add LogValue
Also, fix GoString and test
2024-04-05 22:00:29 -07:00
Blake Mizerany
3cb07b3ac9 x/model: preserve build casing 2024-04-05 21:33:56 -07:00
Blake Mizerany
fc595d89bf x/model: add some clarity to Fill example about what is showing 2024-04-05 21:31:47 -07:00
Blake Mizerany
e1de015fbc x/model: introduce Name.CompareFold with example 2024-04-05 21:31:33 -07:00
Blake Mizerany
95559adee3 x/model: test allocs for complete 2024-04-05 21:04:18 -07:00
Blake Mizerany
9821ca28e8 x/model: remove part getters; these should rarely be needed if ever 2024-04-05 20:55:31 -07:00
Blake Mizerany
c5768ceffe x/model: test Display funcs and add GoString 2024-04-05 20:53:40 -07:00
Blake Mizerany
a5f05236f7 x/model: add test for NamePartKind.String 2024-04-05 18:58:32 -07:00
Blake Mizerany
7c7f56a7fb x/model: limit part len, not entire len
Limiting the whole name length comes naturally with part name length
restrictions. This aligns with Docker's registry behavior.
2024-04-05 18:49:11 -07:00
Blake Mizerany
bf8e0c09c9 x/model: rename func for display with Display prefix 2024-04-05 16:44:14 -07:00
Blake Mizerany
a6b8bdf938 x/model: disallow . in namespace 2024-04-05 16:23:56 -07:00
Blake Mizerany
f51197a814 failing tests 2024-04-05 16:10:43 -07:00
Blake Mizerany
713e2feacf x/model: add MapHash example 2024-04-04 16:54:46 -07:00
Blake Mizerany
bfe89d6fa0 x/model: make equality checks case-insensitive 2024-04-04 16:08:54 -07:00
Blake Mizerany
d510a90214 x/model: Registry -> Host, Nick -> Model 2024-04-04 15:26:08 -07:00
Blake Mizerany
5041000a28 x/model: Name.Short -> Name.Nick 2024-04-04 14:45:15 -07:00
Blake Mizerany
7cd939690a x/mode: Path -> Name 2024-04-04 14:40:01 -07:00