floatingip

package
v1.34.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2022 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DataSourceType is the type name of the Hetzner Cloud Floating IP resource.
	DataSourceType = "hcloud_floating_ip"

	// DataSourceListType is the type name to receive a list of Hetzner Cloud Floating IPs resources.
	DataSourceListType = "hcloud_floating_ips"
)
View Source
const AssignmentResourceType = "hcloud_floating_ip_assignment"

AssignmentResourceType is the type name of the Hetzner Cloud FloatingIP resource.

View Source
const ResourceType = "hcloud_floating_ip"

ResourceType is the type name of the Hetzner Cloud FloatingIP resource.

Variables

This section is empty.

Functions

func AssignmentResource added in v1.24.1

func AssignmentResource() *schema.Resource

AssignmentResource creates a new Terraform schema for the hcloud_floating_ip_assignment resource.

func ByID

func ByID(t *testing.T, fl *hcloud.FloatingIP) func(*hcloud.Client, int) bool

ByID returns a function that obtains a Floating IP by its ID.

func DataSource added in v1.24.1

func DataSource() *schema.Resource

DataSource creates a new Terraform schema for the hcloud_floating_ip data source.

func DataSourceList added in v1.31.0

func DataSourceList() *schema.Resource

func Resource added in v1.24.1

func Resource() *schema.Resource

Resource creates a new Terraform schema for the hcloud_floating_ip resource.

func Sweep

func Sweep(r string) error

Sweep removes all Floating IPs from the Hetzner Cloud backend.

Types

type DData

type DData struct {
	testtemplate.DataCommon

	FloatingIPID   string
	FloatingIPName string
	LabelSelector  string
}

DData defines the fields for the "testdata/d/hcloud_floating_ip" template.

func (*DData) TFID

func (d *DData) TFID() string

TFID returns the data source identifier.

type DDataList added in v1.31.0

type DDataList struct {
	testtemplate.DataCommon

	LabelSelector string
}

DDataList defines the fields for the "testdata/d/hcloud_floating_ips" template.

func (*DDataList) TFID added in v1.31.0

func (d *DDataList) TFID() string

TFID DDataList the data source identifier.

type RData

type RData struct {
	testtemplate.DataCommon

	Name             string
	Type             string
	HomeLocationName string
	ServerID         string
	Labels           map[string]string
	DeleteProtection bool
}

RData defines the fields for the "testdata/r/hcloud_floating_ip" template.

func (*RData) TFID

func (d *RData) TFID() string

TFID returns the resource identifier.

type RDataAssignment

type RDataAssignment struct {
	testtemplate.DataCommon

	FloatingIPID string
	ServerID     string
}

RDataAssignment defines the fields for the "testdata/r/hcloud_floating_ip_assignment" template.

func (*RDataAssignment) TFID

func (d *RDataAssignment) TFID() string

TFID returns the resource identifier.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL