notifier

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 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 SetOption added in v0.2.1

func SetOption(opt Option)

SetOption set options

Types

type Option added in v0.2.1

type Option struct {
	Token    string
	Username string
}

Option is the struct to configure the notifier.

Jump to

Keyboard shortcuts

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