resources

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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

type WorkflowsPayload

type WorkflowsPayload struct {
	TaskSets []Workflow `json:"taskSets"`
	Meta     struct {
		Offset int `json:"offset"`
		Max    int `json:"max"`
		Size   int `json:"size"`
		Total  int `json:"total"`
	} `json:"meta"`
}

WorkflowsPayload defines a Morpheus workflow objects

Jump to

Keyboard shortcuts

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