Documentation ¶
Index ¶
- Constants
- func AssignPrimaryIP(ctx context.Context, c *hcloud.Client, primaryIPID int, serverID int) diag.Diagnostics
- func ByID(t *testing.T, fl *hcloud.PrimaryIP) func(*hcloud.Client, int) bool
- func CreateRandomPrimaryIP(ctx context.Context, c *hcloud.Client, server *hcloud.Server, ...) diag.Diagnostics
- func DataSource() *schema.Resource
- func DataSourceList() *schema.Resource
- func DeletePrimaryIP(ctx context.Context, c *hcloud.Client, p *hcloud.PrimaryIP) diag.Diagnostics
- func Resource() *schema.Resource
- func Sweep(r string) error
- func UnassignPrimaryIP(ctx context.Context, c *hcloud.Client, v int) diag.Diagnostics
- type DData
- type DDataList
- type RData
Constants ¶
View Source
const ( // DataSourceType is the type name of the Hetzner Cloud Primary IP resource. DataSourceType = "hcloud_primary_ip" // DataSourceListType is the type name to receive a list of Hetzner Cloud Primary IPs resources. DataSourceListType = "hcloud_primary_ips" )
View Source
const ResourceType = "hcloud_primary_ip"
ResourceType is the type name of the Hetzner Cloud PrimaryIP resource.
Variables ¶
This section is empty.
Functions ¶
func AssignPrimaryIP ¶ added in v1.35.0
func CreateRandomPrimaryIP ¶ added in v1.35.0
func CreateRandomPrimaryIP(ctx context.Context, c *hcloud.Client, server *hcloud.Server, ipType hcloud.PrimaryIPType) diag.Diagnostics
func DataSource ¶
DataSource creates a new Terraform schema for the hcloud_primary_ip data source.
func DataSourceList ¶
func DeletePrimaryIP ¶ added in v1.35.0
func UnassignPrimaryIP ¶ added in v1.35.0
Types ¶
type DData ¶
type DData struct { testtemplate.DataCommon PrimaryIPID string PrimaryIPName string PrimaryIPIP string LabelSelector string }
DData defines the fields for the "testdata/d/hcloud_primary_ip" template.
type DDataList ¶
type DDataList struct { testtemplate.DataCommon LabelSelector string }
DDataList defines the fields for the "testdata/d/hcloud_primary_ips" template.
Click to show internal directories.
Click to hide internal directories.