Documentation ¶
Index ¶
Constants ¶
View Source
const (
MinimumTaskFrequency = time.Duration(1 * time.Minute)
)
View Source
const (
NoOpTaskType = "no-op"
)
View Source
const (
TravisTaskType = "travis-re-run"
)
View Source
const (
URLGetTaskType = "url-get"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseTask ¶
type BaseTask struct {
// contains filtered or unexported fields
}
func (*BaseTask) SetEntryID ¶
func (t *BaseTask) SetEntryID(entryID cron.EntryID)
func (*BaseTask) SetSchedule ¶
type BaseTaskJson ¶
type NoOpTask ¶
type NoOpTask struct { BaseTask // contains filtered or unexported fields }
func NewNoOpTask ¶
type NoOpTaskJSON ¶
type NoOpTaskJSON struct { BaseTaskJson SleepDuration string `json:"sleepDuration"` }
type TravisTask ¶
type TravisTask struct { BaseTask // contains filtered or unexported fields }
func NewTravisTask ¶
func NewTravisTask(schedule, token string, buildID uint, logger lager.Logger) *TravisTask
func (TravisTask) AsJSON ¶
func (t TravisTask) AsJSON() TaskJSON
func (TravisTask) Run ¶
func (t TravisTask) Run()
type TravisTaskJSON ¶
type TravisTaskJSON struct { BaseTaskJson BuildID uint `json:"buildID"` }
type URLGetTask ¶
type URLGetTask struct { BaseTask // contains filtered or unexported fields }
func NewURLGetTask ¶
func NewURLGetTask(schedule, url string, logger lager.Logger) *URLGetTask
func (URLGetTask) AsJSON ¶
func (t URLGetTask) AsJSON() TaskJSON
func (URLGetTask) Run ¶
func (t URLGetTask) Run()
type URLGetTaskJSON ¶
type URLGetTaskJSON struct { BaseTaskJson URL string `json:"url"` }
Click to show internal directories.
Click to hide internal directories.