target

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderMessage

func RenderMessage(message string, meta place.Metadata) (string, error)

Project: {{ or .project "none"}} URL: {{ or .url "none"}} Branch: {{ or .branch "none"}} CommitSHA: {{ or .sha "none"}} Author: {{ or .author "none"}}

Types

type Cli

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

func (*Cli) Flags

func (c *Cli) Flags() []cli.Flag

func (*Cli) Name

func (c *Cli) Name() string

func (*Cli) Send

func (c *Cli) Send(m place.Metadata) error

func (*Cli) Usage

func (c *Cli) Usage() string

type Grafana

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

func (*Grafana) Flags

func (g *Grafana) Flags() []cli.Flag

func (*Grafana) Name

func (g *Grafana) Name() string

func (*Grafana) Send

func (g *Grafana) Send(m place.Metadata) error

func (*Grafana) Usage

func (g *Grafana) Usage() string

type Slack

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

func (*Slack) Flags

func (s *Slack) Flags() []cli.Flag

func (*Slack) Name

func (s *Slack) Name() string

func (*Slack) Send

func (s *Slack) Send(m place.Metadata) error

func (*Slack) Usage

func (s *Slack) Usage() string

type Target

type Target interface {
	Name() string
	Usage() string
	Send(meta place.Metadata) error
	Flags() []cli.Flag
}

Jump to

Keyboard shortcuts

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