placementgroup

package
v1.49.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DataSourceType is the type name of the Hetzner Cloud Placement Group resource.
	DataSourceType = "hcloud_placement_group"

	// DataSourceListType is the type name to receive a list of Hetzner Cloud Placement Group resources.
	DataSourceListType = "hcloud_placement_groups"
)
View Source
const ResourceType = "hcloud_placement_group"

Variables

This section is empty.

Functions

func ByID

func ByID(t *testing.T, placementGroup *hcloud.PlacementGroup) func(*hcloud.Client, int) bool

ByID returns a function that obtains a placement_group by its ID.

func DataSource

func DataSource() *schema.Resource

func DataSourceList added in v1.31.0

func DataSourceList() *schema.Resource

func Resource

func Resource() *schema.Resource

Types

type DData

type DData struct {
	testtemplate.DataCommon

	PlacementGroupID   string
	PlacementGroupName string
	LabelSelector      string
}

DData defines the fields for the "testdata/d/hcloud_placement_group" 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
}

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

func (*DDataList) TFID added in v1.31.0

func (d *DDataList) TFID() string

TFID returns the data source identifier.

type RData

type RData struct {
	testtemplate.DataCommon

	Name   string
	Labels map[string]string
	Type   string
}

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

func NewRData

func NewRData(t *testing.T, name string, groupType string) *RData

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