Documentation ¶
Index ¶
Constants ¶
View Source
const ( PlanContent = "plan_content" PlanContentJSON = "plan_content_json" )
View Source
const (
DestroyAction = "destroy"
)
View Source
const ( // e.g. "2006-01-02T15:04:05Z" TimeFormat = time.RFC3339 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InResponse ¶
type Metadata ¶
type Metadata []MetadataField
type MetadataField ¶
type OutRequest ¶
type OutResponse ¶
type Source ¶
type Terraform ¶
type Terraform struct { Source string `json:"terraform_source"` Vars map[string]interface{} `json:"vars,omitempty"` // optional VarFiles []string `json:"var_files,omitempty"` // optional Env map[string]string `json:"env,omitempty"` // optional DeleteOnFailure bool `json:"delete_on_failure,omitempty"` // optional PlanOnly bool `json:"plan_only,omitempty"` // optional PlanRun bool `json:"plan_run,omitempty"` // optional OutputModule string `json:"output_module,omitempty"` // optional ImportFiles []string `json:"import_files,omitempty"` // optional OverrideFiles []string `json:"override_files,omitempty"` // optional ModuleOverrideFiles []map[string]string `json:"module_override_files,omitempty"` // optional PluginDir string `json:"plugin_dir,omitempty"` // optional BackendType string `json:"backend_type,omitempty"` // optional BackendConfig map[string]interface{} `json:"backend_config,omitempty"` // optional PrivateKey string `json:"private_key,omitempty"` PlanFileLocalPath string `json:"-"` // not specified pipeline JSONPlanFileLocalPath string `json:"-"` // not specified pipeline PlanFileRemotePath string `json:"-"` // not specified pipeline StateFileLocalPath string `json:"-"` // not specified pipeline StateFileRemotePath string `json:"-"` // not specified pipeline Imports map[string]string `json:"-"` // not specified pipeline ConvertedVarFiles []string `json:"-"` // not specified pipeline DownloadPlugins bool `json:"-"` // not specified pipeline }
func (*Terraform) ConvertVarFiles ¶
The resource supports input files in JSON, YAML, and HCL formats. Terraform supports JSON and HCL but not YAML. This method converts all YAML files to JSON and writes Vars to the first file to ensure precedence rules are respected.
func (*Terraform) ParseImportsFromFile ¶
type Version ¶
type Version struct { Serial string `json:"serial"` EnvName string `json:"env_name"` Lineage string `json:"lineage,omitempty"` // omitted on older version LastModified string `json:"last_modified,omitempty"` // optional PlanOnly string `json:"plan_only,omitempty"` //optional PlanChecksum string `json:"plan_checksum,omitempty"` //optional }
func (Version) LastModifiedTime ¶
Click to show internal directories.
Click to hide internal directories.