linode

package
v2.20.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MPL-2.0 Imports: 90 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFrameworkProvider

func CreateFrameworkProvider(version string) provider.ProviderWithValidateConfig

func CreateFrameworkProviderWithMeta added in v2.15.0

func CreateFrameworkProviderWithMeta(version string, meta *helper.ProviderMeta) provider.ProviderWithValidateConfig

CreateFrameworkProviderWithMeta is used by the crossplane provider

func GetIntFromEnv

func GetIntFromEnv(
	key string,
	defaultValue basetypes.Int64Value,
	diags *diag.Diagnostics,
) basetypes.Int64Value

func GetStringFromEnv

func GetStringFromEnv(key string, defaultValue basetypes.StringValue) basetypes.StringValue

func Provider

func Provider() *schema.Provider

Provider creates and manages the resources in a Linode configuration.

Types

type FrameworkProvider

type FrameworkProvider struct {
	ProviderVersion string
	Meta            *helper.FrameworkProviderMeta
}

func (*FrameworkProvider) Configure

func (*FrameworkProvider) DataSources

func (p *FrameworkProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*FrameworkProvider) HandleDefaults

func (fp *FrameworkProvider) HandleDefaults(
	lpm *helper.FrameworkProviderModel,
	diags *diag.Diagnostics,
)

func (*FrameworkProvider) InitProvider

func (fp *FrameworkProvider) InitProvider(
	ctx context.Context,
	lpm *helper.FrameworkProviderModel,
	tfVersion string,
	diags *diag.Diagnostics,
	meta *helper.FrameworkProviderMeta,
)

func (*FrameworkProvider) Metadata

func (*FrameworkProvider) Resources

func (p *FrameworkProvider) Resources(ctx context.Context) []func() resource.Resource

func (*FrameworkProvider) Schema

func (*FrameworkProvider) ValidateConfig

We should replace this with an official validator if HashiCorp decide to implement it in the future feature request track: https://github.com/hashicorp/terraform-plugin-framework-validators/issues/125

Jump to

Keyboard shortcuts

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