notifier

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChannelIDs

func GetChannelIDs(names []string) ([]string, error)

GetChannelIDs returns the list of channel ID from given channel name or ID.

func GetUserIDs

func GetUserIDs(names []string) ([]string, error)

GetUserIDs returns the list of user ID from given user name.

func Send

func Send(channel, ts, customMsg string, event watch.EventType, job *batchv1.Job, pods []corev1.Pod) (newTS string, unlock func(), err error)

Send sends a message to the specified channel.

func SendLogs

func SendLogs(channel, ts string, pod corev1.Pod, logs map[string]string) (string, error)

SendLogs sends the container log.

func SetToken

func SetToken(token string)

SetToken set the slack API token.

Types

This section is empty.

Jump to

Keyboard shortcuts

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