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 chainable is better


> On Oct 15, 2014, at 9:08 PM, Daniel Smith <notifications@github.com> wrote:
> 
> In pkg/client/request.go:
> 
> > @@ -315,6 +317,15 @@ func (r Result) Into(obj runtime.Object) error {
> >  	return r.codec.DecodeInto(r.body, obj)
> >  }
> >  
> > +// IntoCreated stores the result into obj, if possible, and returns whether
> > +// the object was created.
> > +func (r Result) IntoCreated(obj runtime.Object) (created bool, err error) {
> How about a chainable function like func (r Result) WasCreated(wasCreated *bool) Result { ... }?
> 
> —
> Reply to this email directly or view it on GitHub.