slack

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

README

Slack plugin

The Slack plugin will send notifications to a slack channel via the webook API to notify upon success/failure of a backup or restore operation.

Configuration:
[[notifiers.slack]]
  username = "Kargo"
  url = "https://hooks.slack.com/services/uuid"
Fields
  • url
  • channel
  • username

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier struct {
	URL      string `toml:"url"`
	Channel  string `toml:"channel"`
	Username string `toml:"username"`

	HTTP *http.Client
}

Notifier is a Slack notifier

func (*Notifier) Init

func (n *Notifier) Init() error

func (*Notifier) Name

func (n *Notifier) Name() string

func (*Notifier) Send

func (n *Notifier) Send(
	ctx *context.Context, notif notification.Notification,
) error

Jump to

Keyboard shortcuts

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