Allow clients to determine the difference between create or update on PUT

PUT allows an object to be created (http 201).  This allows REST code to
indicate an object has been created and clients to react to it.

Plan on using this for some oauth / user level interactions in the future.
Agree, will put something together.


> On Oct 16, 2014, at 1:42 AM, Daniel Smith <notifications@github.com> wrote:
> 
> In pkg/apiserver/resthandler.go:
> 
> > @@ -29,6 +29,22 @@ import (
> >  	"github.com/golang/glog"
> >  )
> >  
> > +// createOrUpdate may be returned by a handler to distingush between a PUT
> > +// that creates an object and a PUT that updates an object.
> > +type createOrUpdate struct {
> Yeah I realized after I got home that you did this because it has to go through the channel. I guess I would prefer to change the type of the thing we put through the channel (to a struct of runtime.Object, suggested return code?), even though that's pretty awful, too. It seems less hacky than pretending to be an api object.
> 
> —
> Reply to this email directly or view it on GitHub.