runners

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2016 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AnsiblePool = AnsibleJobPool{

	Register: make(chan *AnsibleJob),
	// contains filtered or unexported fields
}
View Source
var SystemPool = SystemJobPool{

	Register: make(chan *SystemJob),
	// contains filtered or unexported fields
}

Functions

func CanCancel added in v0.0.3

func CanCancel(id bson.ObjectId) bool

func CancelJob added in v0.0.3

func CancelJob(id bson.ObjectId) bool

func StartAnsibleRunner

func StartAnsibleRunner()

func StartSystemRunner added in v0.0.2

func StartSystemRunner()

func UpdateProject added in v0.0.3

func UpdateProject(p models.Project) (error, bson.ObjectId)

Types

type AnsibleJob

type AnsibleJob struct {
	Job         models.Job
	Template    models.JobTemplate
	MachineCred models.Credential
	NetworkCred models.Credential
	CloudCred   models.Credential
	Inventory   models.Inventory
	Project     models.Project
	User        models.User
	Token       string
	JobPaths    JobPaths
}

type AnsibleJobPool

type AnsibleJobPool struct {
	Register chan *AnsibleJob
	// contains filtered or unexported fields
}

func (*AnsibleJobPool) CanCancel added in v0.0.3

func (p *AnsibleJobPool) CanCancel(id bson.ObjectId) bool

func (*AnsibleJobPool) RemoveFromPool added in v0.0.3

func (p *AnsibleJobPool) RemoveFromPool(id bson.ObjectId) bool

func (*AnsibleJobPool) RemoveFromRunning added in v0.0.4

func (p *AnsibleJobPool) RemoveFromRunning(job *AnsibleJob) bool

type JobPaths

type JobPaths struct {
	EtcTower        string
	Tmp             string
	VarLib          string
	VarLibJobStatus string
	VarLibProjects  string
	VarLog          string
	TmpRand         string
	ProjectRoot     string
	AnsiblePath     string
	CredentialPath  string
}

JobPaths

type SystemJob added in v0.0.2

type SystemJob struct {
	Job            models.SystemJob
	Project        models.Project
	Credential     models.Credential
	CredentialPath string
}

type SystemJobPool added in v0.0.2

type SystemJobPool struct {
	Register chan *SystemJob
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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