slack

package
v0.0.0-...-bd68b61 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	Fields []*Field `json:"fields"`
	Title  string   `json:"title"`
}

Attachment ...

type Client

type Client interface {
	PostMessage(*Message) error
}

Client ...

func NewClient

func NewClient(url *url.URL) Client

NewClient ...

type Field

type Field struct {
	Title string      `json:"title"`
	Value interface{} `json:"value"`
	Short *bool       `json:"short"`
}

Field ...

func GetPodFields

func GetPodFields(eye *v1alpha1.Eye, pod *corev1.Pod, ns string) (fields []*Field)

GetPodFields ...

func NewField

func NewField(title string, value interface{}, short *bool) *Field

NewField ...

type Message

type Message struct {
	Text        string       `json:"text"`
	Attachments []Attachment `json:"attachments"`
}

Message ...

func NewInvalidPodsMessage

func NewInvalidPodsMessage(eye *v1alpha1.Eye, nn types.NamespacedName, pods []corev1.Pod) *Message

NewInvalidPodsMessage ...

func NewMessage

func NewMessage(text string, attachments []Attachment) *Message

NewMessage ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳