Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct { Error string `json:"error"` IsValid bool `json:"isValid"` Message string `json:"message"` Timestamp int64 `json:"timestamp"` }
func (Result) GithubFormat ¶
func (Result) WriteToGithubOutput ¶
func (r Result) WriteToGithubOutput()
type TimeWindow ¶
type TimeWindow struct { CronExpression string `yaml:"cronExpression"` Duration time.Duration `yaml:"duration"` Name string `yaml:"name"` CronSchedule cron.Schedule }
func NewTimeWindows ¶
func NewTimeWindows(config string) ([]*TimeWindow, error)
type Validator ¶
type Validator struct { Allowed []*TimeWindow Blocked []*TimeWindow CommitMessage string ForceValidRegexp *regexp.Regexp }
func NewValidator ¶
Click to show internal directories.
Click to hide internal directories.