provider

package
v2.64.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: MPL-2.0 Imports: 61 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFrameworkProvider

func NewFrameworkProvider(m *meta.Meta) func() provider.Provider

func NewProviderList

func NewProviderList(ctx context.Context, providerConfig *Config) ([]func() tfprotov6.ProviderServer, error)

func SDKProvider

func SDKProvider(config *Config) plugin.ProviderFunc

SDKProvider returns a terraform.ResourceProvider.

Types

type Config

type Config struct {
	// Meta can be used to override Meta that will be used by the provider.
	// This is useful for tests.
	Meta *meta.Meta
}

Config can be used to provide additional config when creating provider.

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig return default Config struct

type ScalewayProvider

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

func (*ScalewayProvider) Actions

func (p *ScalewayProvider) Actions(_ context.Context) []func() action.Action

func (*ScalewayProvider) Configure

func (*ScalewayProvider) DataSources

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

func (*ScalewayProvider) EphemeralResources

func (p *ScalewayProvider) EphemeralResources(_ context.Context) []func() ephemeral.EphemeralResource

func (*ScalewayProvider) ListResources

func (p *ScalewayProvider) ListResources(_ context.Context) []func() list.ListResource

func (*ScalewayProvider) Metadata

func (*ScalewayProvider) Resources

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

func (*ScalewayProvider) Schema

type ScalewayProviderModel added in v2.64.0

type ScalewayProviderModel struct {
	AccessKey      types.String `tfsdk:"access_key"`
	SecretKey      types.String `tfsdk:"secret_key"`
	Profile        types.String `tfsdk:"profile"`
	ProjectID      types.String `tfsdk:"project_id"`
	OrganizationID types.String `tfsdk:"organization_id"`
	APIURL         types.String `tfsdk:"api_url"`
	Region         types.String `tfsdk:"region"`
	Zone           types.String `tfsdk:"zone"`
}

Jump to

Keyboard shortcuts

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