customactions

package
v0.0.0-...-f9d50c0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DummyAction = "dummy"
	SlackNotify = "slacknotify"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DummySettings

type DummySettings struct {
	ID string `json:"id" doc-key:"dummy.id"`
}

DummySettings is an empty dummy action to serve as a template

func (DummySettings) Execute

func (settings DummySettings) Execute(sessionState *session.State, actionState *action.State, connection *connection.ConnectionSettings, label string, reset func())

Execute DummySettings action (Implements ActionSettings interface)

func (DummySettings) Validate

func (settings DummySettings) Validate() ([]string, error)

Validate DummySettings action (Implements ActionSettings interface)

type LocalData

type LocalData struct {
	Warnings uint64
}

LocalData used to feed custom data to variable replacer use in go template as {{.Local.warnings}}

type Message

type Message struct {
	Text string `json:"text"`
}

Message slack message structure

type SlackNotifySettings

type SlackNotifySettings struct {
	WebHook string          `json:"webhook" doc-key:"slacknotify.webhook"`
	Msg     synced.Template `json:"msg" doc-key:"slacknotify.msg"`
}

SlackNotifySettings is an empty dummy action to serve as a template

func (SlackNotifySettings) Execute

func (settings SlackNotifySettings) Execute(sessionState *session.State, actionState *action.State, connection *connection.ConnectionSettings, label string, reset func())

Execute SlackNotifySettings action (Implements ActionSettings interface)

func (SlackNotifySettings) Validate

func (settings SlackNotifySettings) Validate() ([]string, error)

Validate SlackNotifySettings action (Implements ActionSettings interface)

Jump to

Keyboard shortcuts

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