Documentation ¶
Index ¶
- Constants
- Variables
- func AssertJobStatus(job *Job)
- func ContextsHandlerInit(planLocation string, contextLocation string)
- func CreateJobContext(vendor int, credentials map[string]string, statefiles map[string]string) map[string]string
- func CreateNewJobContext() uuid.UUID
- func JobHandler(job *Job)
- func JobHandlerInit(plan_location string, context_location string)
- func QueryJobStatus(jobId uuid.UUID) int
- func SetCredentials(contextID uuid.UUID, credentials map[string]string)
- func SetStateFiles(contextID uuid.UUID, statefiles map[string]string)
- func SetVendor(contextID uuid.UUID, vendor int)
- type Job
- type JobContext
- type JobInstructions
- type JobRequest
- type JobResponse
- type JsonJobContext
- type StatefileLocations
- type Vendor
Constants ¶
View Source
const ( APPLY = iota PLAN DESTROY )
View Source
const ( CREATED = iota QUEUED //Job is queued for execution by Terraform RUNNING //Terraform is currently running this Job ASSERTING //working out whether there was an error in Terraform execution COMPLETE //Job completed successfully JOBERROR //There was an error outside of Terraform execution TFERROR //Terrform returned errors TFWARNING //Terraform returned warnings but no errors )
View Source
const ( AWS = iota AZURE GCP )
Variables ¶
View Source
var JobContexts map[uuid.UUID]JobContext
View Source
var Jobs map[uuid.UUID]*Job
Functions ¶
func AssertJobStatus ¶
func AssertJobStatus(job *Job)
func ContextsHandlerInit ¶
func CreateJobContext ¶
func CreateNewJobContext ¶
func JobHandler ¶
func JobHandler(job *Job)
func JobHandlerInit ¶
func QueryJobStatus ¶
Types ¶
type Job ¶
type Job struct { JobID uuid.UUID ContextID uuid.UUID Request JobRequest Response JobResponse Status int }
func CreateJob ¶
func CreateJob(jobInstructions JobInstructions, jobContext JobContext, action int, stage string) *Job
type JobContext ¶
type JobInstructions ¶
type JobRequest ¶
type JobResponse ¶
func GetJobResponse ¶
func GetJobResponse(jobId uuid.UUID) JobResponse
type JsonJobContext ¶
type StatefileLocations ¶
Click to show internal directories.
Click to hide internal directories.