39 Commits

Author SHA1 Message Date
Blake Mizerany
f0e6c563e2 x/model: use isValidByte instead of passing string to isValidPart 2024-04-05 22:37:27 -07:00
Blake Mizerany
a187851900 x/model: fast-path CompareFold for unequal lengths 2024-04-05 22:17:56 -07:00
Blake Mizerany
2e600aa398 x/model: update TODOs 2024-04-05 22:14:41 -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
d67ff60643 x/model: remove old comment 2024-04-05 21:34:10 -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
1c04951cac x/model: remove superfluous r.Valid() check 2024-04-05 21:05:30 -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
0b65220936 x/model: remove Has until needed 2024-04-05 19:10:46 -07:00
Blake Mizerany
a5f05236f7 x/model: add test for NamePartKind.String 2024-04-05 18:58:32 -07:00
Blake Mizerany
3cf109ec59 x/model: make Name.String() less annoying when kind is Unknown 2024-04-05 18:54:57 -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
7f1faf6c12 x/model: update package level docs 2024-04-04 16:48:46 -07:00
Blake Mizerany
ad6f020bd8 x/model: doc rule of thumb about valid vs. invalid Names 2024-04-04 16:36:33 -07:00
Blake Mizerany
e052bd8c0f x/mode: more docs 2024-04-04 16:29:35 -07:00
Blake Mizerany
aef832b298 x/mode: doc EqualFold 2024-04-04 16:19:50 -07:00
Blake Mizerany
805a92e6f2 x/model: fix typo 2024-04-04 16:18:14 -07:00
Blake Mizerany
0c46151700 x/model: add docs to Name 2024-04-04 16:16:39 -07:00
Blake Mizerany
bfe89d6fa0 x/model: make equality checks case-insensitive 2024-04-04 16:08:54 -07:00
Blake Mizerany
92b7e40fde x/model: more docs about ParseName 2024-04-04 15:38:21 -07:00
Blake Mizerany
d510a90214 x/model: Registry -> Host, Nick -> Model 2024-04-04 15:26:08 -07:00
Blake Mizerany
a4fd06d603 x/model: doc Merge semantics when dst is not valid 2024-04-04 15:10:06 -07:00
Blake Mizerany
cfe0bb6bb6 x/model: clarify Merge semantics 2024-04-04 15:03:54 -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
Blake Mizerany
42cda9dd46 x/build: fix some build errors 2024-04-04 14:29:03 -07:00
Blake Mizerany
6917865bf3 x/model: ParameterPragma -> ParamPragma 2024-04-04 14:28:22 -07:00
Blake Mizerany
2633fcb149 x/model: disambiguate type names
There are now more than just File to the model package.  This change
disambiguates types like Error to FileError, etc. It also helps line
things up with GoDoc.
2024-04-04 14:12:23 -07:00
Blake Mizerany
58de2b8d4a x/model: move x/build.Ref -> x/model.Path
Also, update names and comments accordingly.
2024-04-04 14:02:31 -07:00
Blake Mizerany
adc23d5f96 Add 'x/' from commit 'a10a11b9d371f36b7c3510da32a1d70b74e27bd1'
git-subtree-dir: x
git-subtree-mainline: 7d05a6ee8f44b314fa697a427439e5fa4d78c3d7
git-subtree-split: a10a11b9d371f36b7c3510da32a1d70b74e27bd1
2024-04-03 10:40:23 -07:00