provider

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MPL-2.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IDPattern added in v0.51.0

func IDPattern(prefix string) *regexp.Regexp

IDPattern constructs a regexp pattern for HCP Terraform with the given prefix

func NewFrameworkProvider

func NewFrameworkProvider() provider.Provider

NewFrameworkProvider is a helper function for initializing the portion of the tfe provider implemented via the terraform-plugin-framework.

func NewNoCodeModuleDataSource added in v0.52.0

func NewNoCodeModuleDataSource() datasource.DataSource

NewNoCodeModuleDataSource is a helper function to simplify the implementation.

func NewOrganizationRunTaskDataSource added in v0.54.0

func NewOrganizationRunTaskDataSource() datasource.DataSource

NewOrganizationRunTaskDataSource is a helper function to simplify the provider implementation.

func NewOrganizationRunTaskResource added in v0.54.0

func NewOrganizationRunTaskResource() resource.Resource

func NewRegistryGPGKeyDataSource added in v0.51.0

func NewRegistryGPGKeyDataSource() datasource.DataSource

NewRegistryGPGKeyDataSource is a helper function to simplify the provider implementation.

func NewRegistryGPGKeyResource added in v0.51.0

func NewRegistryGPGKeyResource() resource.Resource

func NewRegistryGPGKeysDataSource added in v0.51.0

func NewRegistryGPGKeysDataSource() datasource.DataSource

NewRegistryGPGKeysDataSource is a helper function to simplify the provider implementation.

func NewRegistryProviderDataSource added in v0.52.0

func NewRegistryProviderDataSource() datasource.DataSource

NewRegistryProviderDataSource is a helper function to simplify the provider implementation.

func NewRegistryProviderResource added in v0.52.0

func NewRegistryProviderResource() resource.Resource

func NewRegistryProvidersDataSource added in v0.52.0

func NewRegistryProvidersDataSource() datasource.DataSource

NewRegistryProvidersDataSource is a helper function to simplify the provider implementation.

func NewResourceVariable

func NewResourceVariable() resource.Resource

NewResourceVariable is a resource function for the framework provider.

func NewResourceWorkspaceSettings added in v0.51.0

func NewResourceWorkspaceSettings() resource.Resource

func NewSAMLSettingsDataSource

func NewSAMLSettingsDataSource() datasource.DataSource

NewSAMLSettingsDataSource is a helper function to simplify the provider implementation.

func NewSAMLSettingsResource

func NewSAMLSettingsResource() resource.Resource

NewSAMLSettingsResource is a resource function for the framework provider.

func NewTestVariableResource added in v0.54.0

func NewTestVariableResource() resource.Resource

func NewWorkspaceRunTaskDataSource added in v0.54.0

func NewWorkspaceRunTaskDataSource() datasource.DataSource

NewWorkspaceRunTaskDataSource is a helper function to simplify the provider implementation.

func NewWorkspaceRunTaskResource added in v0.54.0

func NewWorkspaceRunTaskResource() resource.Resource

func PluginProviderServer

func PluginProviderServer() tfprotov5.ProviderServer

PluginProviderServer returns the implementation of an interface for a lower level usage of the Provider to Terraform protocol. This relies on the terraform-plugin-go library, which provides low level bindings for the Terraform plugin protocol.

func Provider

func Provider() *schema.Provider

Provider returns a schema.Provider

Types

type AttrGettable

type AttrGettable interface {
	GetAttribute(ctx context.Context, path path.Path, target interface{}) diag.Diagnostics
}

AttrGettable is a small enabler for helper functions that need to read one attribute of a Configuration, Plan, or State.

type ConfiguredClient

type ConfiguredClient struct {
	Client       *tfe.Client
	Organization string
}

ConfiguredClient wraps the tfe.Client the provider uses, plus the default organization name to be used by resources that need an organization but don't specify one.

type FrameworkProviderConfig

type FrameworkProviderConfig struct {
	Hostname      types.String `tfsdk:"hostname"`
	Token         types.String `tfsdk:"token"`
	Organization  types.String `tfsdk:"organization"`
	SSLSkipVerify types.Bool   `tfsdk:"ssl_skip_verify"`
}

FrameworkProviderConfig is a helper type for extracting the provider configuration from the provider block.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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