Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataSourceTemplateDir ¶
DataSourceTemplateDir returns the path to the directory where the templates for individual data sources are kept.
Inside the data source template directory exists a template file with a name of the format <data_source_name>.tf.tmpl for each data source provided by the Hetzner Cloud Terraform provider.
The individual templates must define a valid HCL snippet for the data source. They must not reference other resources or data sources and they must not import other templates.
func ResourceTemplateDir ¶
ResourceTemplateDir returns the path to the directory where the templates for individual resources are kept.
Inside the resource template directory exists a template file with a name of the format <resource_name>.tf.tmpl for each resource provided by the Hetzner Cloud Terraform provider.
The individual templates must define a valid HCL snippet for the resource. They must not reference other resources or data sources and they must not import other templates.
Types ¶
type DataCommon ¶
type DataCommon struct {
// contains filtered or unexported fields
}
DataCommon contains fields required by all template data types.
func (*DataCommon) SetRName ¶
func (tdc *DataCommon) SetRName(n string)
SetRName sets a resource name.