automator

package
v0.3.0-prep Latest Latest
Warning

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

Go to latest
Published: May 4, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package automator implements continuous deployment. The automator sits on top of the service and asks it to upgrade service from time to time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Automator

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

Automator orchestrates continuous deployment for specific services.

func New

func New(cfg Config) (*Automator, error)

New creates a new automator.

func (*Automator) Handle

func (a *Automator) Handle(j *jobs.Job, updater jobs.JobUpdater) ([]jobs.Job, error)

func (*Automator) Start

func (a *Automator) Start(errorLogger log.Logger)

type Config

type Config struct {
	Jobs       jobs.JobReadPusher
	InstanceDB instance.DB
	Instancer  instance.Instancer
	Logger     log.Logger
}

Config collects the parameters to the automator. All fields are mandatory.

func (Config) Validate

func (cfg Config) Validate() error

Validate returns an error if the config is underspecified.

Jump to

Keyboard shortcuts

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