scheduler

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

The scheduler package provides a client to run jobs on a cron schedule and managed running jobs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(scheduleConfigPath, scheduleConfigName string) (*client, error)

Types

type ClientInterface

type ClientInterface interface {
	AsyncAddScheduledJob(Job, func())
	JobList() jobList
	Start()
	Stop()
	Running(string, Job) bool
	StartJob(string, Job)
	FinishJob(string, Job)
}

type Job

type Job struct {
	Cron        string `yaml:"cron"`
	Template    string `yaml:"template"`
	Description string `yaml:"description"`
	//Allows overriding the image given in the job spec
	Image     string   `yaml:"image"`
	Args      []string `yaml:"args"`
	Namespace string   `yaml:"namespace"`
}

Jump to

Keyboard shortcuts

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