func (e *events) Get(name string) (*api.Event, error) {
	result := &api.Event{}
	err := e.client.Get().
		Namespace(e.namespace).
		Resource("events").
		Name(name).
		Do().
		Into(result)
	return result, err
}
Get returns the given event, or an error.
package unversioned
import (
	"fmt"
	"k8s.io/kubernetes/pkg/api"
	"k8s.io/kubernetes/pkg/fields"
	"k8s.io/kubernetes/pkg/runtime"
	"k8s.io/kubernetes/pkg/watch"
)
type EventNamespacer interface {
	Events(namespace string) EventInterface
}
type EventInterface interface {
	Create(event *api.Event) (*api.Event, error)
	Update(event *api.Event) (*api.Event, error)
	Patch(event *api.Event, data []byte) (*api.Event, error)
	List(opts api.ListOptions) (*api.EventList, error)
	Get(name string) (*api.Event, error)
	Watch(opts api.ListOptions) (watch.Interface, error)
	Search(objOrRef runtime.Object) (*api.EventList, error)
	Delete(name string) error
	DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error
	GetFieldSelector(involvedObjectName, involvedObjectNamespace, involvedObjectKind, involvedObjectUID *string) fields.Selector
}
type events struct {
	client    *Client
	namespace string
}
func newEvents(c *Client, ns string) *events {
	return &events{
		client:    c,
		namespace: ns,
	}
}
func (e *events) Create(event *api.Event) (*api.Event, error) {
	if e.namespace != "" && event.Namespace != e.namespace {
		return nil, fmt.Errorf("can't create an event with namespace '%v' in namespace '%v'", event.Namespace, e.namespace)
	}
	result := &api.Event{}
	err := e.client.Post().
		Namespace(event.Namespace).
		Resource("events").
		Body(event).
		Do().
		Into(result)
	return result, err
}
func (e *events) Update(event *api.Event) (*api.Event, error) {
	result := &api.Event{}
	err := e.client.Put().
		Namespace(event.Namespace).
		Resource("events").
		Name(event.Name).
		Body(event).
		Do().
		Into(result)
	return result, err
}
func (e *events) Patch(incompleteEvent *api.Event, data []byte) (*api.Event, error) {
	result := &api.Event{}
	err := e.client.Patch(api.StrategicMergePatchType).
		Namespace(incompleteEvent.Namespace).
		Resource("events").
		Name(incompleteEvent.Name).
		Body(data).
		Do().
		Into(result)
	return result, err
}
func (e *events) List(opts api.ListOptions) (*api.EventList, error) {
	result := &api.EventList{}
	err := e.client.Get().
		Namespace(e.namespace).
		Resource("events").
		VersionedParams(&opts, api.ParameterCodec).
		Do().
		Into(result)
	return result, err
}