type EventExpansion … // CreateWithEventNamespace makes a new event. // Returns the copy of the event the server returns, or an error. // The namespace to create the event within is deduced from the event. // it must either match this event client's namespace, or this event client must // have been created with the "" namespace. func (e *events) CreateWithEventNamespace(event *v1beta1.Event) (*v1beta1.Event, error) { … } // UpdateWithEventNamespace modifies an existing event. // It returns the copy of the event that the server returns, or an error. // The namespace and key to update the event within is deduced from the event. // The namespace must either match this event client's namespace, or this event client must have been // created with the "" namespace. // Update also requires the ResourceVersion to be set in the event object. func (e *events) UpdateWithEventNamespace(event *v1beta1.Event) (*v1beta1.Event, error) { … } // PatchWithEventNamespace modifies an existing event. // It returns the copy of the event that the server returns, or an error. // The namespace and name of the target event is deduced from the event. // The namespace must either match this event client's namespace, or this event client must // have been created with the "" namespace. func (e *events) PatchWithEventNamespace(event *v1beta1.Event, data []byte) (*v1beta1.Event, error) { … }