Documentation ¶
Index ¶
- Constants
- Variables
- func AttachmentResource() *schema.Resource
- func ByID(t *testing.T, fl *hcloud.Volume) func(*hcloud.Client, int) bool
- func DataSource() *schema.Resource
- func DataSourceList() *schema.Resource
- func Resource() *schema.Resource
- func Sweep(r string) error
- type DData
- type DDataList
- type RData
- type RDataAttachment
Constants ¶
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" )
const AttachmentResourceType = "hcloud_volume_attachment"
AttachmentResourceType is the type name of the Hetzner Cloud Volume attachment resource.
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.
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.