pipelines

package
v0.0.0-...-3a4d408 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	Image        string   `json:"image,omitempty"`
	Tag          string   `json:"tag,omitempty"`
	Args         []string `json:"args,omitempty"`
	Dependencies []Job    `json:"dependencies,omitempty"`
}

Job stores the information about a Docker image that contain the job to run, the arguments to pass to it and the dependencies it relies on.

func (*Job) String

func (j *Job) String() string

type Scheduler

type Scheduler struct {
	// contains filtered or unexported fields
}

Scheduler is the structure responsible of running the jobs in order, accordingly to their dependency graph, and stores information about their status.

func NewScheduler

func NewScheduler(name string) (*Scheduler, error)

NewScheduler returns a properly configured Scheduler.

func (*Scheduler) Close

func (s *Scheduler) Close()

Close should be called at the end of every program using a Scheduler.

func (*Scheduler) Run

func (s *Scheduler) Run(job *Job)

Run starts the scheduling of jobs.

Jump to

Keyboard shortcuts

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