hook

package
v0.0.0-...-3e26616 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(h types.Hook, t types.Tsuru)

Execute runs all hooks that have been configured on config file with your options

Types

type HangoutsChat

type HangoutsChat struct {
	WebhookUrl string
}

func (HangoutsChat) CallHook

func (s HangoutsChat) CallHook(deploy []types.Deploy) error

func (HangoutsChat) ValidatesFields

func (s HangoutsChat) ValidatesFields() error

type NewRelic

type NewRelic struct {
	Host          string
	ApplicationId string
	ApiKey        string
	Revision      string
}

NewRelic represents a single struct to notify New Relic about a new deploy

func (NewRelic) CallHook

func (s NewRelic) CallHook(deploys []types.Deploy) error

CallHook will notify New Relic about a new deploy It returns any errors encountered

func (NewRelic) ValidatesFields

func (s NewRelic) ValidatesFields() error

ValidatesFields checks if there are some field on NewRelic struct invalid It returns an error if there are some invalid field and if there are no, returns nil

type Rollbar

type Rollbar struct {
	AccessToken string
	Env         string
}

Rollbar represents a single struct to notify Rollbar about a new deploy

func (Rollbar) CallHook

func (r Rollbar) CallHook(deploys []types.Deploy) error

CallHook creates a new deploy on Rollbar It returns any errors encountered

func (Rollbar) ValidatesFields

func (r Rollbar) ValidatesFields() error

ValidatesFields checks if there are some field on Rollbar struct invalid It returns an error if there are some invalid field and if there are no, returns nil

type Sentry

type Sentry struct {
	Host             string
	OrganizationSlug string
	ProjectSlug      string
	AuthToken        string
	Env              string
	ReleaseVersion   string
}

Sentry represents a single struct to notify Sentry about a new deploy

func (Sentry) CallHook

func (s Sentry) CallHook(deploys []types.Deploy) error

CallHook creates a new release and deploy on Sentry It returns any errors encountered

func (Sentry) ValidatesFields

func (s Sentry) ValidatesFields() error

ValidatesFields checks if there are some field on Sentry struct invalid It returns an error if there are some invalid field and if there are no, returns nil

type Slack

type Slack struct {
	WebhookUrl string
}

Slack represents a single struct to notify Slack about a new deploy

func (Slack) CallHook

func (s Slack) CallHook(deploy []types.Deploy) error

CallHook creates a new release and deploy on Slack It returns any errors encountered

func (Slack) ValidatesFields

func (s Slack) ValidatesFields() error

ValidatesFields checks if there are some field on Slack struct invalid It returns an error if there are some invalid field and if there are no, returns nil

Jump to

Keyboard shortcuts

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