notify

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Path string
}

type NoopNotify

type NoopNotify struct {
}

func (NoopNotify) Failed

func (n NoopNotify) Failed(target, comment string) error

func (NoopNotify) Finish

func (n NoopNotify) Finish(target, comment string) error

func (NoopNotify) Init

func (n NoopNotify) Init() error

func (NoopNotify) Start

func (n NoopNotify) Start(target, comment string) error

type Notifier

type Notifier interface {
	Start(target, comment string) error
	Finish(target, comment string) error
	Failed(target, comment string) error
}

func NewNotify

func NewNotify(t, configPath string) (Notifier, error)

type SlackConfig

type SlackConfig struct {
	Token     string `yaml:"token"`
	ChannelID string `yaml:"channelID"`
}

type SlackNotify

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

func NewSlackNotify

func NewSlackNotify(configPath string) (SlackNotify, error)

func (SlackNotify) Failed

func (n SlackNotify) Failed(target, comment string) error

func (SlackNotify) Finish

func (n SlackNotify) Finish(target, comment string) error

func (SlackNotify) Start

func (n SlackNotify) Start(target, comment string) error

func (SlackNotify) Test

func (n SlackNotify) Test() error

Jump to

Keyboard shortcuts

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