cloudevent

package
v0.0.0-...-b380f87 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudEvent

type CloudEvent struct {
	Url       string
	StartTime uint64
	Counter   uint64
	// contains filtered or unexported fields
}

Webhook handler implements handler.Handler interface, Notify event to Webhook channel

func (*CloudEvent) Handle

func (m *CloudEvent) Handle(e event.StatemonitorEvent)

func (*CloudEvent) Init

func (m *CloudEvent) Init(c *config.Config) error

type CloudEventMessageData

type CloudEventMessageData struct {
	Operation   string `json:"operation"`
	Kind        string `json:"kind"`
	ClusterUid  string `json:"clusterUid"`
	Description string `json:"description"`
	ApiVersion  string `json:"apiVersion"`
	Diff        string `json:"diff"`
}

EventMeta containes the meta data about the event occurred

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL