terraform

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ImportTemplateString = `import   {{"{"}}
	to = {{.GetType}}.{{.GetResourceId}}
	id = "{{.GetId}}"
{{"}\n"}}`
View Source
const TerraformAppEntilementType = "conductorone_app_entitlement"
View Source
const TerraformAppType = "conductorone_app"
View Source
const TerraformPolicyType = "conductorone_policy"

Variables

This section is empty.

Functions

func ApplyTemplate

func ApplyTemplate(data TemplateData, tmpl string) (string, error)

func ApplyTemplates

func ApplyTemplates(data []TemplateData, templates ...string) (string, error)

func ObjectNameToTerraformType

func ObjectNameToTerraformType(objectName string) string

Types

type AppEntitlementTemplate

type AppEntitlementTemplate struct {
	AppEntitlement shared.AppEntitlement
}

func (AppEntitlementTemplate) GetId

func (ae AppEntitlementTemplate) GetId() string

func (AppEntitlementTemplate) GetOutputId

func (ae AppEntitlementTemplate) GetOutputId() string

func (AppEntitlementTemplate) GetRequired

func (ae AppEntitlementTemplate) GetRequired() map[string]string

func (AppEntitlementTemplate) GetResourceId

func (ae AppEntitlementTemplate) GetResourceId() string

func (AppEntitlementTemplate) GetType

func (ae AppEntitlementTemplate) GetType() string

type AppTemplate

type AppTemplate struct {
	App shared.App
}

func (AppTemplate) GetId

func (a AppTemplate) GetId() string

func (AppTemplate) GetOutputId

func (a AppTemplate) GetOutputId() string

func (AppTemplate) GetRequired

func (a AppTemplate) GetRequired() map[string]string

func (AppTemplate) GetResourceId

func (a AppTemplate) GetResourceId() string

func (AppTemplate) GetType

func (a AppTemplate) GetType() string

type PolicyTemplate

type PolicyTemplate struct {
	Policy shared.Policy
}

func (PolicyTemplate) GetId

func (p PolicyTemplate) GetId() string

func (PolicyTemplate) GetOutputId

func (p PolicyTemplate) GetOutputId() string

func (PolicyTemplate) GetRequired

func (p PolicyTemplate) GetRequired() map[string]string

func (PolicyTemplate) GetResourceId

func (p PolicyTemplate) GetResourceId() string

func (PolicyTemplate) GetType

func (p PolicyTemplate) GetType() string

type TemplateData

type TemplateData interface {
	GetRequired() map[string]string
	GetType() string
	GetId() string
	GetResourceId() string
	GetOutputId() string
}

Jump to

Keyboard shortcuts

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