Documentation
¶
Index ¶
- type EventNotification
- type EventNotificationList
- type Handler
- func (h *Handler) CreateEventNotification(data []byte) (*EventNotification, error)
- func (h *Handler) DeleteEventNotification(id string) error
- func (h *Handler) DeleteResourceNotification(id string) error
- func (h *Handler) GetEventNotification(id string) (*EventNotification, error)
- func (h *Handler) GetResourceNotification(id string) (*ResourceNotification, error)
- func (h *Handler) ListEventNotifications(notificationType string) (*EventNotificationList, error)
- func (h *Handler) ListResourceNotifications(notificationType, resourceID string) (*ResourceNotificationList, error)
- type ResourceNotification
- type ResourceNotificationList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventNotification ¶
type EventNotification struct {
ID string `json:"id" table:"ID"`
NotificationType string `json:"notificationType" table:"TYPE"`
Enabled bool `json:"enabled" table:"ENABLED"`
AppID string `json:"appId,omitempty" table:"APP_ID,wide"`
Owner string `json:"owner,omitempty" table:"OWNER,wide"`
TriggerConfig map[string]any `json:"triggerConfig,omitempty" table:"-"`
ActionConfig map[string]any `json:"actionConfig,omitempty" table:"-"`
}
EventNotification represents an event notification (CLI version with table tags).
type EventNotificationList ¶
type EventNotificationList struct {
Results []EventNotification `json:"results"`
Count int `json:"count"`
}
EventNotificationList represents a list of event notifications.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles notification resources. It delegates to the SDK handler.
func NewHandler ¶
NewHandler creates a new notification handler.
func (*Handler) CreateEventNotification ¶
func (h *Handler) CreateEventNotification(data []byte) (*EventNotification, error)
CreateEventNotification creates a new event notification.
func (*Handler) DeleteEventNotification ¶
DeleteEventNotification deletes an event notification.
func (*Handler) DeleteResourceNotification ¶
DeleteResourceNotification deletes a resource notification.
func (*Handler) GetEventNotification ¶
func (h *Handler) GetEventNotification(id string) (*EventNotification, error)
GetEventNotification gets a specific event notification by ID.
func (*Handler) GetResourceNotification ¶
func (h *Handler) GetResourceNotification(id string) (*ResourceNotification, error)
GetResourceNotification gets a specific resource notification by ID.
func (*Handler) ListEventNotifications ¶
func (h *Handler) ListEventNotifications(notificationType string) (*EventNotificationList, error)
ListEventNotifications lists event notifications.
func (*Handler) ListResourceNotifications ¶
func (h *Handler) ListResourceNotifications(notificationType, resourceID string) (*ResourceNotificationList, error)
ListResourceNotifications lists resource notifications.
type ResourceNotification ¶
type ResourceNotification struct {
ID string `json:"id" table:"ID"`
NotificationType string `json:"notificationType" table:"TYPE"`
ResourceID string `json:"resourceId" table:"RESOURCE_ID"`
AppID string `json:"appId,omitempty" table:"APP_ID,wide"`
}
ResourceNotification represents a resource notification (CLI version with table tags).
type ResourceNotificationList ¶
type ResourceNotificationList struct {
Results []ResourceNotification `json:"results"`
Count int `json:"count"`
}
ResourceNotificationList represents a list of resource notifications.