Documentation
¶
Index ¶
- Constants
- func Bold(text string) string
- func Failed(e *core.Experiment) bool
- func Italic(text string) string
- func Make(t *v2alpha2.TaskSpec) (core.Task, error)
- func Name(e *core.Experiment) string
- func SlackMessage(e *core.Experiment) string
- func Stage(e *core.Experiment) string
- func Versions(e *core.Experiment) string
- func Winner(e *core.Experiment) string
- type Inputs
- type Task
Constants ¶
View Source
const ( // NewLine is a newline character NewLine string = "\n" // Space is a space character Space string = " " )
View Source
const ( // TaskName is the name of the task this file implements TaskName string = "notification/slack" )
Variables ¶
This section is empty.
Functions ¶
func Failed ¶
func Failed(e *core.Experiment) bool
Failed returns true if the experiment has failed; false otherwise
func Name ¶
func Name(e *core.Experiment) string
Name returns the name of the experiment in the form namespace/name
func SlackMessage ¶
func SlackMessage(e *core.Experiment) string
SlackMessage constructs the slack message to post
func Stage ¶
func Stage(e *core.Experiment) string
Stage returns the stage (status.stage) of an experiment
func Versions ¶
func Versions(e *core.Experiment) string
Versions returns a comma separated list of version names
func Winner ¶
func Winner(e *core.Experiment) string
Winner returns the name of the winning version, if one. Otherwise "not found"
Types ¶
type Inputs ¶
type Inputs struct { Channel string `json:"channel" yaml:"channel"` Secret string `json:"secret" yaml:"secret"` VersionInfo []core.VersionInfo `json:"versionInfo,omitempty" yaml:"versionInfo,omitempty"` IgnoreFailure *bool `json:"ignoreFailure,omitempty" yaml:"ignoreFailure,omitempty"` }
Inputs is the object corresponding to the expcted inputs to the task
Click to show internal directories.
Click to hide internal directories.