scheduler

package
v0.0.0-...-5bae4c0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: 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