notify

package module
v0.0.0-...-180239a Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

README

Cloud Build Notify

Getting Started

  1. GCP / Bucket / Slack それぞれ必須項目を terraform/terraform.tfvars に設定
  2. cloud function にdeploy
make terraform.init
make terraform.apply

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCloudBuild

func NewCloudBuild(m *pubsub.PubsubMessage) (*cloudbuild.Build, error)

func NotifyCloudBuild

func NotifyCloudBuild(ctx context.Context, m *pubsub.PubsubMessage) error

Types

type Slack

type Slack struct {
	ProjectID string
	Token     string
	ChannelID string
}

func NewSlack

func NewSlack() (*Slack, error)

func (*Slack) Notify

func (sl *Slack) Notify(msg string) error

Jump to

Keyboard shortcuts

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