dockeron

package module
v0.0.0-...-e9b6579 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2015 License: MIT Imports: 5 Imported by: 1

README

dockeron

timed execution of docker images

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartJobs

func StartJobs(jobs []*Job)

Types

type Dockeron

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

func (*Dockeron) MakeContainer

func (d *Dockeron) MakeContainer(job *Job) (string, error)

func (*Dockeron) StartContainer

func (d *Dockeron) StartContainer(containerId string, job *Job) error

type Environment

type Environment struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type Job

type Job struct {
	Name        string        `json:"name"`
	Image       string        `json:"image"`
	Command     string        `json:"command"`
	Environment []Environment `json:"environment"`
	Interval    int64         `json:"interval"`
	Links       []string      `json:"links"`
	Binds       []string      `json:"binds"`
}

type Jobs

type Jobs []*Job

Jump to

Keyboard shortcuts

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