Documentation ¶
Overview ¶
Package versioned contains the versioned types for watch. This is the first serialization version unless otherwise noted.
Index ¶
- Constants
- func AddToGroupVersion(scheme *runtime.Scheme, groupVersion unversioned.GroupVersion)
- func Convert_versioned_Event_to_versioned_InternalEvent(in *Event, out *InternalEvent, s conversion.Scope) error
- func Convert_versioned_Event_to_watch_Event(in *Event, out *watch.Event, s conversion.Scope) error
- func Convert_versioned_InternalEvent_to_versioned_Event(in *InternalEvent, out *Event, s conversion.Scope) error
- func Convert_watch_Event_to_versioned_Event(in *watch.Event, out *Event, s conversion.Scope) error
- type Event
- type InternalEvent
Constants ¶
View Source
const WatchEventKind = "WatchEvent"
WatchEventKind is name reserved for serializing watch events.
Variables ¶
This section is empty.
Functions ¶
func AddToGroupVersion ¶
func AddToGroupVersion(scheme *runtime.Scheme, groupVersion unversioned.GroupVersion)
AddToGroupVersion registers the watch external and internal kinds with the scheme, and ensures the proper conversions are in place.
func Convert_versioned_Event_to_versioned_InternalEvent ¶
func Convert_versioned_Event_to_versioned_InternalEvent(in *Event, out *InternalEvent, s conversion.Scope) error
func Convert_versioned_InternalEvent_to_versioned_Event ¶
func Convert_versioned_InternalEvent_to_versioned_Event(in *InternalEvent, out *Event, s conversion.Scope) error
Types ¶
type Event ¶
type Event struct { Type string `json:"type" protobuf:"bytes,1,opt,name=type"` // Object is: // * If Type is Added or Modified: the new state of the object. // * If Type is Deleted: the state of the object immediately before deletion. // * If Type is Error: *api.Status is recommended; other types may make sense // depending on context. Object runtime.RawExtension `json:"object" protobuf:"bytes,2,opt,name=object"` }
Event represents a single event to a watched resource.
+protobuf=true
func (*Event) GetObjectKind ¶
func (e *Event) GetObjectKind() unversioned.ObjectKind
type InternalEvent ¶
InternalEvent makes watch.Event versioned
func (*InternalEvent) GetObjectKind ¶
func (e *InternalEvent) GetObjectKind() unversioned.ObjectKind
Click to show internal directories.
Click to hide internal directories.