template

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Converter

func Converter(plan *ResourceModel, state *ResourceModel, converterType commons.ConverterType) (*template.Template, bool)

func UpdateStateAfterRead

func UpdateStateAfterRead(res *sdkTemplate.Template, state *ResourceModel)

Types

type IacConfigModel added in v1.19.0

type IacConfigModel struct {
	TerraformVersion  types.String `tfsdk:"terraform_version"`
	TerragruntVersion types.String `tfsdk:"terragrunt_version"`
	OpentofuVersion   types.String `tfsdk:"opentofu_version"`
}

type PolicyModel

type PolicyModel struct {
	TtlConfig *TtlConfigModel `tfsdk:"ttl_config"`
}

type ResourceModel

type ResourceModel struct {
	ID                        types.String                    `tfsdk:"id"`
	Name                      types.String                    `tfsdk:"name"`
	IacType                   types.String                    `tfsdk:"iac_type"`
	Description               types.String                    `tfsdk:"description"`
	VcsInfo                   *VcsInfoModel                   `tfsdk:"vcs_info"`
	Policy                    *PolicyModel                    `tfsdk:"policy"`
	SkipStateRefreshOnDestroy types.Bool                      `tfsdk:"skip_state_refresh_on_destroy"`
	IacConfig                 *IacConfigModel                 `tfsdk:"iac_config"`
	RunnerConfig              *cross_models.RunnerConfigModel `tfsdk:"runner_config"`
}

type TtlConfigModel

type TtlConfigModel struct {
	MaxTtl     *TtlDefinitionModel `tfsdk:"max_ttl"`
	DefaultTtl *TtlDefinitionModel `tfsdk:"default_ttl"`
}

type TtlDefinitionModel

type TtlDefinitionModel struct {
	Type  types.String `tfsdk:"type"`
	Value types.Int64  `tfsdk:"value"`
}

type VcsInfoModel

type VcsInfoModel struct {
	ProviderId types.String `tfsdk:"provider_id"`
	RepoName   types.String `tfsdk:"repo_name"`
	Path       types.String `tfsdk:"path"`
	Branch     types.String `tfsdk:"branch"`
}

Jump to

Keyboard shortcuts

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