Documentation ¶
Index ¶
Constants ¶
const AttachmentResourceType = "hcloud_volume_attachment"
AttachmentResourceType is the type name of the Hetzner Cloud Volume attachment resource.
const DataSourceType = "hcloud_volume"
DataSourceType is the type name of the Hetzner Cloud Volume data source.
const ResourceType = "hcloud_volume"
ResourceType is the type name of the Hetzner Cloud Volume resource.
Variables ¶
var Basic = &RData{
Name: "basic-volume",
LocationName: "nbg1",
Size: 10,
}
Basic Volume for use in volume related test.
Do not modify!
Functions ¶
func AttachmentResource ¶ added in v1.25.0
AttachmentResource creates a Terraform schema for the hcloud_volume_attachmetn resource.
func DataSource ¶ added in v1.24.1
DataSource creates a Terraform schema for the hcloud_volume data source.
Types ¶
type DData ¶
type DData struct { testtemplate.DataCommon Name string VolumeID string VolumeName string LabelSelector string }
DData defines the fields for the "testdata/d/hcloud_volume" template.
type RData ¶
type RData struct { testtemplate.DataCommon Name string Size int LocationName string Labels map[string]string ServerID string }
RData defines the fields for the "testdata/r/hcloud_volume" template.
type RDataAttachment ¶
type RDataAttachment struct { testtemplate.DataCommon VolumeID string ServerID string }
RDataAttachment defines the fields for the "testdata/r/hcloud_volume_attachment" template.
func (*RDataAttachment) TFID ¶
func (d *RDataAttachment) TFID() string
TFID returns the resource identifier.