storagebox

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: 33 Imported by: 0

Documentation

Index

Constants

View Source
const DataSourceListType = "hcloud_storage_boxes"

DataSourceListType is the type name of the Hetzner Storage Boxes data source.

View Source
const DataSourceType = "hcloud_storage_box"

DataSourceType is the type name of the Hetzner Storage Box data source.

View Source
const ResourceType = "hcloud_storage_box"

ResourceType is the type name of the Hetzner Storage Box resource.

Variables

This section is empty.

Functions

func GeneratePassword

func GeneratePassword(t *testing.T) string

func NewDataSource

func NewDataSource() datasource.DataSource

func NewDataSourceList

func NewDataSourceList() datasource.DataSource

func NewResource

func NewResource() resource.Resource

Types

type DData

type DData struct {
	testtemplate.DataCommon

	ID            string
	Name          string
	LabelSelector string
}

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

func (*DData) TFID

func (d *DData) TFID() string

TFID returns the data source identifier.

type DDataList

type DDataList struct {
	testtemplate.DataCommon

	LabelSelector string
}

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

func (*DDataList) TFID

func (d *DDataList) TFID() string

TFID returns the data source identifier.

type DataSource

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

func (*DataSource) ConfigValidators

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

ConfigValidators returns a list of ConfigValidators. Each ConfigValidator's Validate method will be called when validating the data source.

func (*DataSource) Configure

Configure enables provider-level data or clients to be set in the provider-defined DataSource type. It is separately executed for each ReadDataSource RPC.

func (*DataSource) Metadata

Metadata should return the full name of the data source.

func (*DataSource) Read

Read is called when the provider must read data source values in order to update state. Config values should be read from the ReadRequest and new state values set on the ReadResponse.

func (*DataSource) Schema

Schema should return the schema for this data source.

type DataSourceList

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

func (*DataSourceList) Configure

Configure enables provider-level data or clients to be set in the provider-defined DataSource type. It is separately executed for each ReadDataSource RPC.

func (*DataSourceList) Metadata

Metadata should return the full name of the data source.

func (*DataSourceList) Read

Read is called when the provider must read data source values in order to update state. Config values should be read from the ReadRequest and new state values set on the ReadResponse.

func (*DataSourceList) Schema

Schema should return the schema for this data source.

type RData

type RData struct {
	testtemplate.DataCommon
	schema.StorageBox
	Password string // nolint: gosec
	SSHKeys  []string
	Raw      string
}

RData defines the fields for the "testdata/r/hcloud_storage_box" 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) Configure

Configure enables provider-level data or clients to be set in the provider-defined Resource type. It is separately executed for each ReadResource RPC.

func (*Resource) Create

func (*Resource) Delete

func (*Resource) ImportState

func (*Resource) Metadata

Metadata should return the full name of the resource.

func (*Resource) Read

func (*Resource) Schema

Schema should return the schema for this resource.

func (*Resource) Update

Jump to

Keyboard shortcuts

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