k3s/pkg/watch
Yu-Ju Hong 4a72addaeb Factor out API defaulting from validation logic
Currently, the validation logic validates fields in an object and supply default
values wherever applies. This change factors out defaulting to a set of
defaulting callback functions for decoding (see #1502 for more discussion).

 * This change is based on pull request 2587.

 * Most defaulting has been migrated to defaults.go where the defaulting
   functions are added.

 * validation_test.go and converter_test.go have been adapted to not testing the
   default values.

 * Fixed all tests with that create invalid objects with the absence of
   defaulting logic.
2015-02-03 00:55:42 -08:00
..
json Factor out API defaulting from validation logic 2015-02-03 00:55:42 -08:00
doc.go Add watch mechanism to apiserver 2014-07-18 16:47:17 -07:00
filter.go Make tests pass again 2014-09-07 22:26:42 -07:00
filter_test.go Make tests pass again 2014-09-07 22:26:42 -07:00
iowatcher.go Log ErrUnexpectedEOF from watches as warnings 2014-12-05 15:03:07 -05:00
iowatcher_test.go Make tests pass again 2014-09-07 22:26:42 -07:00
mux.go Add a unit test for watch.Broadcaster DropIfChannelFull and a couple small fixes 2015-01-14 04:36:29 +00:00
mux_test.go Add a unit test for watch.Broadcaster DropIfChannelFull and a couple small fixes 2015-01-14 04:36:29 +00:00
watch.go When connections are broken on Watch, write fewer errors to logs 2014-12-18 16:15:51 -05:00
watch_test.go When connections are broken on Watch, write fewer errors to logs 2014-12-18 16:15:51 -05:00