primaryip

package
v1.62.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MPL-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const DataSourceListType = "hcloud_primary_ips"
View Source
const DataSourceType = "hcloud_primary_ip"
View Source
const ResourceType = "hcloud_primary_ip"

Variables

This section is empty.

Functions

func AssignPrimaryIP added in v1.35.0

func AssignPrimaryIP(ctx context.Context, c *hcloud.Client, primaryIPID int64, assigneeID int64, assigneeType string) diag.Diagnostics

func ByID

func ByID(t *testing.T, fl *hcloud.PrimaryIP) func(*hcloud.Client, int64) bool

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

func CreateRandomPrimaryIP added in v1.35.0

func CreateRandomPrimaryIP(ctx context.Context, c *hcloud.Client, server *hcloud.Server, ipType hcloud.PrimaryIPType) diag.Diagnostics

func DeletePrimaryIP added in v1.35.0

func DeletePrimaryIP(ctx context.Context, c *hcloud.Client, p *hcloud.PrimaryIP) diag.Diagnostics

func NewDataSource added in v1.61.0

func NewDataSource() datasource.DataSource

func NewDataSourceList added in v1.61.0

func NewDataSourceList() datasource.DataSource

func NewResource added in v1.61.0

func NewResource() resource.Resource

func UnassignPrimaryIP added in v1.35.0

func UnassignPrimaryIP(ctx context.Context, c *hcloud.Client, v int64) diag.Diagnostics

Types

type DData

type DData struct {
	testtemplate.DataCommon

	PrimaryIPID   string
	PrimaryIPName string
	PrimaryIPIP   string
	LabelSelector string

	Raw string
}

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

func (*DData) TFID

func (d *DData) TFID() string

TFID returns the data source identifier.

type DDataList

type DDataList struct {
	testtemplate.DataCommon

	LabelSelector string

	Raw string
}

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

func (*DDataList) TFID

func (d *DDataList) TFID() string

TFID DDataList the data source identifier.

type DataSource

type DataSource struct {
	// contains filtered or unexported fields
}

func (*DataSource) ConfigValidators added in v1.61.0

func (d *DataSource) ConfigValidators(_ context.Context) []datasource.ConfigValidator

func (*DataSource) Configure added in v1.61.0

func (*DataSource) Metadata added in v1.61.0

func (*DataSource) Read added in v1.61.0

func (*DataSource) Schema added in v1.61.0

type DataSourceList

type DataSourceList struct {
	// contains filtered or unexported fields
}

func (*DataSourceList) Configure added in v1.61.0

func (*DataSourceList) Metadata added in v1.61.0

func (*DataSourceList) Read added in v1.61.0

func (*DataSourceList) Schema added in v1.61.0

type RData

type RData struct {
	testtemplate.DataCommon

	Name             string
	Type             string
	Location         string
	Datacenter       string
	AssigneeType     string
	AssigneeID       string
	Labels           map[string]string
	AutoDelete       bool
	DeleteProtection bool

	Raw string
}

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

func (*RData) TFID

func (d *RData) TFID() string

TFID returns the resource identifier.

type Resource

type Resource struct {
	// contains filtered or unexported fields
}

func (*Resource) ConfigValidators added in v1.61.0

func (r *Resource) ConfigValidators(_ context.Context) []resource.ConfigValidator

func (*Resource) Configure added in v1.61.0

func (*Resource) Create added in v1.61.0

func (*Resource) Delete added in v1.61.0

func (*Resource) ImportState added in v1.61.0

func (*Resource) Metadata added in v1.61.0

func (*Resource) Read added in v1.61.0

func (*Resource) Schema added in v1.61.0

func (*Resource) Update added in v1.61.0

func (*Resource) ValidateConfig added in v1.62.0

Jump to

Keyboard shortcuts

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