Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
func Validate(config Configuration) error
Types ¶
type Configuration ¶
type Configuration struct {
Triggers []Trigger `json:"triggers,omitempty" yaml:"triggers,omitempty" mapstructure:"Triggers"`
}
func LoadBytes ¶
func LoadBytes(configBytes []byte) (Configuration, error)
func LoadFile ¶
func LoadFile(filePath string) (Configuration, error)
type Trigger ¶
type Trigger struct { Name string `json:"name," yaml:"name" mapstructure:"Name"` Event string `json:"event,omitempty" yaml:"event" mapstructure:"Event"` Rules TriggerRule `json:"rules,omitempty" yaml:"rules,omitempty" mapstructure:"Rules"` Run TriggerRun `json:"run,omitempty" yaml:"run,omitempty" mapstructure:"Run"` }
type TriggerRule ¶
type TriggerRun ¶
Click to show internal directories.
Click to hide internal directories.