msteams

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0, CC-BY-4.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fact

type Fact struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

Fact is field where we can put content

type Message

type Message struct {
	Type       string            `json:"@type"`
	Context    string            `json:"@context"`
	ThemeColor event.StatusColor `json:"themeColor"`
	Title      string            `json:"title"`
	Sections   []Section         `json:"sections"`
	Summary    string            `json:"summary"`
}

Message is representation of json message structure

type Section

type Section struct {
	Facts []Fact `json:"facts"`
	Text  string `json:"text"`
}

Section is MS Teams message section

type Teams

type Teams struct {
	// contains filtered or unexported fields
}

Teams is a Microsoft MicrosoftTeams notification service

func New

func New(k8sClient k8sclient.Client, config v1alpha2.Notification, httpClient http.Client) *Teams

New returns instance of Teams

func (Teams) Send

func (t Teams) Send(e event.Event) error

Send is function for sending directly to API

Jump to

Keyboard shortcuts

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