scheduler

package
v0.0.0-...-2a1a1f5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2019 License: MIT, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewScheduler

func NewScheduler(tasks []Task, s storage.StorageApi, e event.EventApi, p pwd.PWDApi) (*scheduler, error)

Types

type SchedulerApi

type SchedulerApi interface {
	Start() error
	Stop()
}

type Task

type Task interface {
	Name() string
	Run(ctx context.Context, instance *types.Instance) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL