Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DataSourceType is the type name of the Hetzner Cloud Volume data source. DataSourceType = "hcloud_volume" // DataSourceListType is the type name to receive a list of Hetzner Cloud Volume data source. DataSourceListType = "hcloud_volumes" )
View Source
const AttachmentResourceType = "hcloud_volume_attachment"
AttachmentResourceType is the type name of the Hetzner Cloud Volume attachment resource.
View Source
const ResourceType = "hcloud_volume"
ResourceType is the type name of the Hetzner Cloud Volume resource.
Variables ¶
This section is empty.
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.
func DataSourceList ¶ added in v1.31.0
Types ¶
type DData ¶
type DData struct {
testtemplate.DataCommon
VolumeID string
VolumeName string
LabelSelector string
}
DData defines the fields for the "testdata/d/hcloud_volume" template.
type DDataList ¶ added in v1.31.0
type DDataList struct {
testtemplate.DataCommon
LabelSelector string
}
DData defines the fields for the "testdata/d/hcloud_volumes" template.
type RData ¶
type RData struct {
testtemplate.DataCommon
Name string
Size int
LocationName string
Labels map[string]string
ServerID string
DeleteProtection bool
}
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.
Click to show internal directories.
Click to hide internal directories.