rdns

package
v1.46.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ResourceType = "hcloud_rdns"

ResourceType is the type name of the Hetzner Cloud SSH Key resource.

Variables

This section is empty.

Functions

func Resource added in v1.24.1

func Resource() *schema.Resource

Resource creates a Terraform schema for the hcloud_rdns resource.

func Sweep

func Sweep(r string) error

Sweep removes all sshkeys from the Hetzner Cloud backend.

Types

type InvalidRDNSIDError added in v1.30.0

type InvalidRDNSIDError struct {
	ID string
}

func (InvalidRDNSIDError) Error added in v1.30.0

func (e InvalidRDNSIDError) Error() string

type RData

type RData struct {
	testtemplate.DataCommon

	ServerID       string
	PrimaryIPID    string
	FloatingIPID   string
	LoadBalancerID string
	IPAddress      string
	DNSPTR         string
}

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

func NewRDataFloatingIP added in v1.30.0

func NewRDataFloatingIP(t *testing.T, rName string, floatingIPID string, ipAddress string, dnsPTR string) *RData

NewRDataFloatingIP creates data for a new rdns resource with floating_ip_id.

func NewRDataLoadBalancer added in v1.30.0

func NewRDataLoadBalancer(t *testing.T, rName string, loadBalancer string, ipAddress string, dnsPTR string) *RData

NewRDataLoadBalancer creates data for a new rdns resource with load_balancer_id.

func NewRDataPrimaryIP added in v1.39.0

func NewRDataPrimaryIP(t *testing.T, rName string, primaryIPID string, ipAddress string, dnsPTR string) *RData

NewRDataPrimaryIP creates data for a new rdns resource with primary_ip_id.

func NewRDataServer added in v1.30.0

func NewRDataServer(t *testing.T, rName string, serverID string, ipAddress string, dnsPTR string) *RData

NewRDataServer creates data for a new rdns resource with server_id.

func (*RData) TFID

func (d *RData) 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