Documentation ¶
Index ¶
- func GenerateContacts(client *morpheus.Client) (output []string)
- func GenerateEnvironments(client *morpheus.Client) (output []string)
- func GenerateExecuteSchedules(client *morpheus.Client) (output []string)
- func GenerateFileTemplates(client *morpheus.Client) (output []string)
- func GenerateGroups(client *morpheus.Client) (output []string)
- func GenerateOptionLists(client *morpheus.Client)
- func GenerateOptionTypes(client *morpheus.Client)
- func GeneratePolicies(client *morpheus.Client)
- func GenerateScriptTemplates(client *morpheus.Client) (output []string)
- func GenerateSpecTemplates(client *morpheus.Client)
- func GenerateTasks(client *morpheus.Client)
- func GenerateTenants(client *morpheus.Client) (output []string)
- func GenerateWikis(client *morpheus.Client) (output []string)
- func GenerateWorkflows(client *morpheus.Client)
- func InstallProvider()
- type Workflow
- type WorkflowsPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateContacts ¶
func GenerateContacts(client *morpheus.Client) (output []string)
GenerateContacts generates terraform code for Morpheus contacts
func GenerateEnvironments ¶
func GenerateEnvironments(client *morpheus.Client) (output []string)
GenerateEnvironments generates terraform code for Morpheus environments
func GenerateExecuteSchedules ¶
func GenerateExecuteSchedules(client *morpheus.Client) (output []string)
GenerateExecuteSchedules generates terraform code for Morpheus execute schedules
func GenerateFileTemplates ¶
func GenerateFileTemplates(client *morpheus.Client) (output []string)
GenerateFileTemplates generates terraform code for Morpheus file templates
func GenerateGroups ¶
func GenerateGroups(client *morpheus.Client) (output []string)
GenerateGroups generates terraform code for Morpheus groups
func GenerateOptionLists ¶
func GenerateOptionLists(client *morpheus.Client)
GenerateOptionLists generates terraform code for Morpheus option lists
func GenerateOptionTypes ¶
func GenerateOptionTypes(client *morpheus.Client)
GenerateOptionTypes generates terraform code for Morpheus option types
func GeneratePolicies ¶
func GeneratePolicies(client *morpheus.Client)
GenerateOptionLists generates terraform code for Morpheus option lists
func GenerateScriptTemplates ¶
func GenerateScriptTemplates(client *morpheus.Client) (output []string)
GenerateScriptTemplates generates terraform code for Morpheus script templates
func GenerateSpecTemplates ¶
func GenerateSpecTemplates(client *morpheus.Client)
GenerateSpecTemplates generates terraform code for Morpheus spec templates
func GenerateTasks ¶
func GenerateTasks(client *morpheus.Client)
GenerateTasks generates terraform code for Morpheus tasks
func GenerateTenants ¶
func GenerateTenants(client *morpheus.Client) (output []string)
GenerateTenants generates terraform code for Morpheus tenants
func GenerateWikis ¶
func GenerateWikis(client *morpheus.Client) (output []string)
GenerateWikis generates terraform code for Morpheus wikis
func GenerateWorkflows ¶
func GenerateWorkflows(client *morpheus.Client)
GenerateWorkflows generates terraform code for Morpheus workflows
func InstallProvider ¶
func InstallProvider()
InstallProvider downloads and installs the Morpheus Terraform provider to the local system
Types ¶
type Workflow ¶
type Workflow struct { Accountid int `json:"accountId"` Allowcustomconfig bool `json:"allowCustomConfig"` Datecreated time.Time `json:"dateCreated"` Description string `json:"description"` ID int `json:"id"` Lastupdated time.Time `json:"lastUpdated"` Name string `json:"name"` Optiontypes []struct { Advanced bool `json:"advanced"` Code string `json:"code"` Config struct { } `json:"config,omitempty"` Contextualdefault bool `json:"contextualDefault"` Creatable bool `json:"creatable"` Defaultvalue interface{} `json:"defaultValue"` Dependsoncode interface{} `json:"dependsOnCode"` Description string `json:"description"` Displayorder int `json:"displayOrder"` Displayvalueondetails bool `json:"displayValueOnDetails"` Editable bool `json:"editable"` Enabled bool `json:"enabled"` Exportmeta bool `json:"exportMeta"` Fieldaddon interface{} `json:"fieldAddOn"` Fieldclass interface{} `json:"fieldClass"` Fieldcode interface{} `json:"fieldCode"` Fieldcomponent interface{} `json:"fieldComponent"` Fieldcontext string `json:"fieldContext"` Fieldgroup interface{} `json:"fieldGroup"` Fieldinput interface{} `json:"fieldInput"` Fieldlabel string `json:"fieldLabel"` Fieldname string `json:"fieldName"` Helpblock interface{} `json:"helpBlock"` Helpblockfieldcode interface{} `json:"helpBlockFieldCode"` ID int `json:"id"` Name string `json:"name"` Noblank bool `json:"noBlank"` Optionlist interface{} `json:"optionList"` Optionsource interface{} `json:"optionSource"` Optionsourcetype interface{} `json:"optionSourceType"` Placeholder interface{} `json:"placeHolder"` Requireoncode interface{} `json:"requireOnCode"` Required bool `json:"required"` Showoncreate bool `json:"showOnCreate"` Showonedit bool `json:"showOnEdit"` Type string `json:"type"` Verifypattern interface{} `json:"verifyPattern"` Visibleoncode interface{} `json:"visibleOnCode"` Wrapperclass interface{} `json:"wrapperClass"` } `json:"optionTypes"` Platform string `json:"platform"` Tasksettasks []struct { ID int `json:"id"` Task struct { Accountid int `json:"accountId"` Allowcustomconfig bool `json:"allowCustomConfig"` Code string `json:"code"` Datecreated time.Time `json:"dateCreated"` Executetarget string `json:"executeTarget"` File struct { Content string `json:"content"` Contentpath interface{} `json:"contentPath"` Contentref interface{} `json:"contentRef"` ID int `json:"id"` Repository interface{} `json:"repository"` Sourcetype string `json:"sourceType"` } `json:"file"` ID int `json:"id"` Lastupdated time.Time `json:"lastUpdated"` Name string `json:"name"` Resulttype interface{} `json:"resultType"` Retrycount int `json:"retryCount"` Retrydelayseconds int `json:"retryDelaySeconds"` Retryable bool `json:"retryable"` Taskoptions struct { Host interface{} `json:"host"` Localscriptgitid interface{} `json:"localScriptGitId"` Localscriptgitref interface{} `json:"localScriptGitRef"` Password interface{} `json:"password"` Port interface{} `json:"port"` Pythonadditionalpackages string `json:"pythonAdditionalPackages"` Pythonargs interface{} `json:"pythonArgs"` Pythonbinary string `json:"pythonBinary"` Sshkey interface{} `json:"sshKey"` Username interface{} `json:"username"` } `json:"taskOptions"` Tasktype struct { Code string `json:"code"` ID int `json:"id"` Name string `json:"name"` } `json:"taskType"` } `json:"task"` Taskorder int `json:"taskOrder"` Taskphase string `json:"taskPhase"` } `json:"taskSetTasks"` Tasks []int `json:"tasks"` Type string `json:"type"` Visibility string `json:"visibility"` }
Workflow defines a Morpheus workflow object