template

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MPL-2.0 Imports: 5 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 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"`
}

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