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 ¶
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
SigKill chan bool
UpdateSigKill chan bool
}
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) DetachFromRunning ¶ added in v0.0.9
func (p *AnsibleJobPool) DetachFromRunning(id bson.ObjectId) bool
func (*AnsibleJobPool) KillJob ¶ added in v0.0.9
func (p *AnsibleJobPool) KillJob(id bson.ObjectId) bool
KillJob will loop through Ansible job queue and Running job queue and kills the job
func (*AnsibleJobPool) Run ¶ added in v0.0.9
func (p *AnsibleJobPool) Run()
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 SystemJobPool ¶ added in v0.0.2
type SystemJobPool struct {
Register chan *SystemJob
// contains filtered or unexported fields
}
func (*SystemJobPool) DetachFromRunning ¶ added in v0.0.9
func (p *SystemJobPool) DetachFromRunning(id bson.ObjectId) bool
Click to show internal directories.
Click to hide internal directories.