Add Event to api types

We could write one up for API spec - I was looking for maximum simplicity and compatibility with js clients so I went with the literal JS one would invoke to access that field if it were loaded.

> On Sep 24, 2014, at 6:17 PM, Tim Hockin <notifications@github.com> wrote:
> 
> In pkg/api/types.go:
> 
> > @@ -621,3 +613,58 @@ type ServerOpList struct {
> >  }
> >  
> >  func (*ServerOpList) IsAnAPIObject() {}
> > +
> > +// ObjectReference contains enough information to let you inspect or modify the referred object.
> > +type ObjectReference struct {
> > +	Kind            string `json:"kind,omitempty" yaml:"kind,omitempty"`
> > +	Name            string `json:"name,omitempty" yaml:"name,omitempty"`
> > +	UID             string `json:"uid,omitempty" yaml:"uid,omitempty"`
> > +	APIVersion      string `json:"apiVersion,omitempty" yaml:"apiVersion,omitempty"`
> > +	ResourceVersion uint64 `json:"resourceVersion,omitempty" yaml:"resourceVersion,omitempty"`
> > +
> > +	// Optional. If referring to a piece of an object instead of an entire object, this string
> > +	// should contain a valid field access statement. For example,
> > +	// if the object reference is to a container within a pod, this would take on a value like:
> > +	// "desiredState.manifest.containers[2]". Such statements are valid language constructs in
> Is there a reference you can link to for a spec on valid syntax?
> 
> —
> Reply to this email directly or view it on GitHub.