Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerEventTrigger ¶
type DockerEventTrigger struct {
// contains filtered or unexported fields
}
func NewDockerEventTrigger ¶
func NewDockerEventTrigger(dockerCli *client.Client) *DockerEventTrigger
func (*DockerEventTrigger) Reset ¶
func (d *DockerEventTrigger) Reset()
func (*DockerEventTrigger) Start ¶
func (d *DockerEventTrigger) Start(ctx context.Context, eventChan chan<- TriggerEvent)
type IntervalTrigger ¶
type IntervalTrigger struct {
// contains filtered or unexported fields
}
func NewIntervalTrigger ¶
func NewIntervalTrigger(interval time.Duration) *IntervalTrigger
func (*IntervalTrigger) Reset ¶
func (i *IntervalTrigger) Reset()
func (*IntervalTrigger) Start ¶
func (i *IntervalTrigger) Start(ctx context.Context, eventChan chan<- TriggerEvent)
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func NewScheduler ¶
func NewScheduler(task func()) *Scheduler
type Trigger ¶
type Trigger interface { Start(ctx context.Context, eventChan chan<- TriggerEvent) Reset() }
type TriggerEvent ¶
type TriggerEvent struct {
Name string
}
Click to show internal directories.
Click to hide internal directories.