Documentation ¶
Index ¶
- Constants
- func ByID(t *testing.T, srv *hcloud.Server) func(*hcloud.Client, int) bool
- func DataSource() *schema.Resource
- func DataSourceList() *schema.Resource
- func NetworkResource() *schema.Resource
- func Resource() *schema.Resource
- func Sweep(r string) error
- type DData
- type DDataList
- type RData
- type RDataInlineNetwork
- type RDataNetwork
Constants ¶
const ( // DataSourceType is the type name of the Hetzner Cloud server resource. DataSourceType = "hcloud_server" // DataSourceListType is the type name to receive a list of Hetzner Cloud server resources. DataSourceListType = "hcloud_servers" )
const NetworkResourceType = "hcloud_server_network"
NetworkResourceType is the type name of the Hetzner Cloud Server network resource.
const ResourceType = "hcloud_server"
ResourceType is the type name of the Hetzner Cloud Server resource.
Variables ¶
This section is empty.
Functions ¶
func DataSource ¶ added in v1.24.1
DataSource creates a new Terraform schema for the hcloud_server resource.
func DataSourceList ¶ added in v1.31.0
DataSourceList creates a new Terraform schema for the hcloud_servers resource.
func NetworkResource ¶ added in v1.24.1
NetworkResource creates a Terraform schema for the hcloud_server_network resource.
Types ¶
type DData ¶
type DData struct { testtemplate.DataCommon ServerID string ServerName string LabelSelector string }
DData defines the fields for the "testdata/d/hcloud_server" template.
type DDataList ¶ added in v1.31.0
type DDataList struct { testtemplate.DataCommon LabelSelector string }
DDataList defines the fields for the "testdata/d/hcloud_servers" template.
type RData ¶
type RData struct { testtemplate.DataCommon Name string Type string Image string LocationName string Datacenter string PublicNet map[string]interface{} SSHKeys []string KeepDisk bool Rescue bool Backups bool ISO string Labels map[string]string UserData string Networks []RDataInlineNetwork FirewallIDs []string DependsOn []string PlacementGroupID string DeleteProtection bool RebuildProtection bool AllowDeprecatedImages bool }
RData defines the fields for the "testdata/r/hcloud_server" template.
type RDataInlineNetwork ¶ added in v1.24.0
RDataInlineNetwork defines the information required to attach a server to a network directly in the server resource.
type RDataNetwork ¶
type RDataNetwork struct { testtemplate.DataCommon Name string ServerID string NetworkID string SubNetID string IP string AliasIPs []string DependsOn []string }
RDataNetwork defines the fields for the "testdata/r/hcloud_server_network" template.