hcloud

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: 44 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "not build yet"
	Commit  = "not build yet"
)

Build coordinates..

Functions

func GetMuxedProvider added in v1.45.0

func GetMuxedProvider(ctx context.Context) (func() tfprotov6.ProviderServer, error)

func NewPluginProvider added in v1.44.0

func NewPluginProvider() provider.Provider

func Provider

func Provider() *schema.Provider

Provider returns the hcloud terraform provider.

Types

type PluginProvider added in v1.44.0

type PluginProvider struct{}

func (*PluginProvider) Configure added in v1.44.0

Configure is called at the beginning of the provider lifecycle, when Terraform sends to the provider the values the user specified in the provider configuration block. These are supplied in the ConfigureProviderRequest argument. Values from provider configuration are often used to initialize an API client, which should be stored on the struct to initialize an Provider interface.

func (*PluginProvider) DataSources added in v1.44.0

func (p *PluginProvider) DataSources(_ context.Context) []func() datasource.DataSource

DataSources returns a slice of functions to instantiate each DataSource implementation.

The data source type name is determined by the DataSource implementing the Metadata method. All data sources must have unique names.

func (*PluginProvider) Metadata added in v1.44.0

Metadata should return the metadata for the provider, such as a type name and version data.

Implementing the MetadataResponse.TypeName will populate the datasource.MetadataRequest.ProviderTypeName and resource.MetadataRequest.ProviderTypeName fields automatically.

func (*PluginProvider) Resources added in v1.44.0

func (p *PluginProvider) Resources(_ context.Context) []func() resource.Resource

Resources returns a slice of functions to instantiate each Resource implementation.

The resource type name is determined by the Resource implementing the Metadata method. All resources must have unique names.

func (*PluginProvider) Schema added in v1.44.0

Schema should return the schema for this provider.

type PluginProviderModel added in v1.44.0

type PluginProviderModel struct {
	Token        types.String `tfsdk:"token"`
	Endpoint     types.String `tfsdk:"endpoint"`
	PollInterval types.String `tfsdk:"poll_interval"`
	PollFunction types.String `tfsdk:"poll_function"`
}

PluginProviderModel describes the provider data model.

Jump to

Keyboard shortcuts

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