Documentation ¶
Index ¶
Constants ¶
View Source
const ID = "actions"
Variables ¶
View Source
var Actions = actionList{}
Functions ¶
func InitPlugin ¶
func InitPlugin(c *types.PluginConfig) error
func RegisterActions ¶
func RegisterActions(actions ...*Action)
Simple helper function to register an action
Types ¶
type Action ¶
type Action struct { Name string Description string ConfirmDialog string // If unset, no confirm dialog will be shown Handler func(*ActionContext) (*ActionResponse, error) `json:"-"` }
type ActionContext ¶
type ActionResponse ¶
Click to show internal directories.
Click to hide internal directories.