Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the notification v1 API group +kubebuilder:object:generate=true +groupName=notification.sealos.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "notification.sealos.io", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type Notification ¶
type Notification struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NotificationSpec `json:"spec,omitempty"` Status NotificationStatus `json:"status,omitempty"` }
Notification is the Schema for the notifications API
func (*Notification) DeepCopy ¶
func (in *Notification) DeepCopy() *Notification
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Notification.
func (*Notification) DeepCopyInto ¶
func (in *Notification) DeepCopyInto(out *Notification)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Notification) DeepCopyObject ¶
func (in *Notification) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NotificationList ¶
type NotificationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Notification `json:"items"` }
NotificationList contains a list of Notification
func (*NotificationList) DeepCopy ¶
func (in *NotificationList) DeepCopy() *NotificationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationList.
func (*NotificationList) DeepCopyInto ¶
func (in *NotificationList) DeepCopyInto(out *NotificationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NotificationList) DeepCopyObject ¶
func (in *NotificationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NotificationSpec ¶
type NotificationSpec struct { Title string `json:"title"` Message string `json:"message"` Timestamp int64 `json:"timestamp"` From string `json:"from,omitempty"` Importance Type `json:"importance,omitempty"` DesktopPopup bool `json:"desktopPopup,omitempty"` I18n map[string]I18n `json:"i18ns,omitempty"` }
NotificationSpec defines the desired state of Notification UserName and whether read will be set in label,because set in label is ease to query
func (*NotificationSpec) DeepCopy ¶
func (in *NotificationSpec) DeepCopy() *NotificationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationSpec.
func (*NotificationSpec) DeepCopyInto ¶
func (in *NotificationSpec) DeepCopyInto(out *NotificationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NotificationStatus ¶
type NotificationStatus struct { }
NotificationStatus defines the observed state of Notification
func (*NotificationStatus) DeepCopy ¶
func (in *NotificationStatus) DeepCopy() *NotificationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationStatus.
func (*NotificationStatus) DeepCopyInto ¶
func (in *NotificationStatus) DeepCopyInto(out *NotificationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.