bot

package
v0.0.0-...-42d989b Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultAttachments

func DefaultAttachments(deploy api.Deployment) []slack.Attachment

func DefaultDeployMsgOpts

func DefaultDeployMsgOpts() []slack.MsgOption

Types

type Bot

type Bot struct {
	L hclog.Logger
	// contains filtered or unexported fields
}

func NewBot

func NewBot(cfg Config) (*Bot, error)

func (*Bot) UpsertDeployMsg

func (b *Bot) UpsertDeployMsg(deploy api.Deployment) error

type Config

type Config struct {
	Token   string
	Channel string
}

Jump to

Keyboard shortcuts

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