Documentation ¶
Index ¶
- Constants
- func ByID(t *testing.T, nw *hcloud.Network) func(*hcloud.Client, int) bool
- func DataSource() *schema.Resource
- func ParseSubnetID(s string) (int, *net.IPNet, error)
- func Resource() *schema.Resource
- func RouteResource() *schema.Resource
- func SubnetResource() *schema.Resource
- func Sweep(r string) error
- type DData
- type RData
- type RDataRoute
- type RDataSubnet
Constants ¶
const DataSourceType = "hcloud_network"
DataSourceType is the type name of the Hetzner Cloud Network resource.
const ResourceType = "hcloud_network"
ResourceType is the type name of the Hetzner Cloud Network resource.
const RouteResourceType = "hcloud_network_route"
RouteResourceType is the type name of the Hetzner Cloud Network Route resource.
const SubnetResourceType = "hcloud_network_subnet"
SubnetResourceType is the type name of the Hetzner Cloud Network Subnet resource.
Variables ¶
This section is empty.
Functions ¶
func DataSource ¶ added in v1.24.1
DataSource creates a new Terraform schema for the hcloud_network resource.
func ParseSubnetID ¶ added in v1.24.1
ParseSubnetID parses the faux subnet ID we from s.
The faux subnet ID is created by the hcloud_network_subnet resource during creation. Using this method it can be read from the state and used in the implementation of other resources.
func Resource ¶ added in v1.24.1
Resource creates a Terraform schema for the hcloud_network resource.
func RouteResource ¶ added in v1.24.1
RouteResource creates a Terraform schema for the hcloud_network_route resource.
func SubnetResource ¶ added in v1.24.1
SubnetResource creates a Terraform schema for the hcloud_network_subnet resource.
Types ¶
type DData ¶
type DData struct { testtemplate.DataCommon NetworkID string NetworkName string LabelSelector string }
DData defines the fields for the "testdata/d/hcloud_network" template.
type RData ¶
type RData struct { testtemplate.DataCommon Name string IPRange string Labels map[string]string }
RData defines the fields for the "testdata/r/hcloud_network" template.
type RDataRoute ¶
type RDataRoute struct { testtemplate.DataCommon NetworkID string Destination string Gateway string }
RDataRoute defines the fields for the "testdata/r/hcloud_network_route" template.
type RDataSubnet ¶
type RDataSubnet struct { testtemplate.DataCommon Type string NetworkID string NetworkZone string IPRange string VSwitchID string }
RDataSubnet defines the fields for the "testdata/r/hcloud_network_subnet" template.
func (*RDataSubnet) TFID ¶
func (d *RDataSubnet) TFID() string
TFID returns the resource identifier.