mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2026-10-20 08:16:40 +00:00
26 lines
547 B
Go
26 lines
547 B
Go
package core
|
|
|
|
type ITrigger interface {
|
|
Manifest() WorkflowSpecs
|
|
Init() (chan ITriggerEvent, error)
|
|
}
|
|
|
|
type IAction interface {
|
|
Manifest() WorkflowSpecs
|
|
Execute(params map[string]string, input map[string]string) (map[string]string, error)
|
|
}
|
|
|
|
type ITriggerEvent interface {
|
|
WorkflowID() string
|
|
Input() map[string]string
|
|
}
|
|
|
|
type WorkflowSpecs struct {
|
|
Name string `json:"name"`
|
|
Title string `json:"title"`
|
|
Subtitle string `json:"subtitle"`
|
|
Icon string `json:"icon"`
|
|
Specs Form `json:"specs"`
|
|
Order int `json:"-"`
|
|
}
|