Clayton Coleman
ea32b89e5e
Allow map[string][]string to be converted to an object
...
Will allow query parameters to be converted to versioned objects.
2015-03-24 17:25:45 -04:00
Clayton Coleman
dc3b327951
Allow runtime.SetList() on an api.List
...
SetList doesn't allow api.List
2015-02-14 23:37:23 -05:00
Clayton Coleman
a7c9a12286
Add name generation and normalize common create flows
...
Adds `ObjectMeta.GenerateName`, an optional string field that defines
name generation behavior if a Name is not provided.
Adds `pkg/api/rest`, which defines the default Kubernetes API pattern
for creation (and will cover update as well). Will allow registries
and REST objects to be merged by moving logic on api out of those places.
Add `pkg/api/rest/resttest`, which will be the test suite that verifies
a RESTStorage object follows the Kubernetes API conventions and begin
reducing our duplicated tests.
2015-02-02 14:44:53 -05:00
Michal Fojtik
ae3f10a397
Ensure the ptr is pointing to reflect.Slice in ExtractList
2015-01-27 18:02:37 +01:00
Michal Fojtik
e7df8aa098
Fix ExtractList to support extraction from generic api.List{}
2015-01-23 22:13:37 +01:00
Tim Hockin
95a9098311
fix 'go vet' warnings
2014-11-21 09:45:28 +08:00
Daniel Smith
b28234fac6
Fix self linking of objects returned in lists.
2014-10-30 15:04:11 -07:00
Vojtech Vitek (V-Teq)
90809c270d
Use conversion.EnforcePtr() where appropriate
...
Signed-off-by: Vojtech Vitek (V-Teq) <vvitek@redhat.com>
2014-10-28 16:36:09 +01:00
Daniel Smith
957b16053a
restore test that somehow vanished + add SetList
2014-09-25 12:07:07 -07:00
Daniel Smith
52d2c221b8
pkg/runtime now has a well defined api pluggability model.
2014-09-15 13:15:46 -07:00
Daniel Smith
7d50aa8ba8
Add ExtractList to runtime.
2014-09-12 16:51:07 -07:00
Daniel Smith
1c2b65788d
Rename Codec and ResourceVersioner to add Default in front, to allow for types of those names
2014-09-07 22:19:24 -07:00
Daniel Smith
77edb91032
Add Object type to runtime, make runtime test pass.
2014-09-07 22:19:24 -07:00
Joe Beda
3c0a736908
Fix/expand kubecfg unit tests
2014-09-04 13:25:39 -07:00
Daniel Smith
a63966e73c
Combine pkg/apitools and pkg/api/common and call the result pkg/runtime
2014-09-02 11:15:44 -07:00