package
Version:
v0.0.0-...-32a469f
Opens a new window with list of versions in this module.
Published: Dec 14, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type EventMeta struct {
Kind string `json:"kind"`
Name string `json:"name"`
Namespace string `json:"namespace"`
Reason string `json:"reason"`
}
EventMeta containes the meta data about the event occurred
type Webhook struct {
Url string
}
Webhook handler implements handler.Handler interface,
Notify event to Webhook channel
func (*Webhook) Handle ¶
Handle handles an event.
Init prepares Webhook configuration
type WebhookMessage struct {
EventMeta EventMeta `json:"eventmeta"`
Text string `json:"text"`
Time time.Time `json:"time"`
}
WebhookMessage for messages
Source Files
¶
Click to show internal directories.
Click to hide internal directories.