provider

package
v0.68.2 Latest Latest
Warning

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

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

Documentation

Overview

Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0

Index

Constants

View Source
const (
	RemoteExecutionMode = "remote"
	LocalExecutionMode  = "local"
	AgentExecutionMode  = "agent"

	DefaultExecutionMode = RemoteExecutionMode
)

Variables

Functions

func DontDeleteEmptyObject added in v0.57.0

func DontDeleteEmptyObject() basetypes.ObjectValue

func NewAgentTokenEphemeralResource added in v0.65.0

func NewAgentTokenEphemeralResource() ephemeral.EphemeralResource

func NewAuditTrailTokenEphemeralResource added in v0.65.0

func NewAuditTrailTokenEphemeralResource() ephemeral.EphemeralResource

func NewAuditTrailTokenResource added in v0.61.0

func NewAuditTrailTokenResource() resource.Resource

func NewDataRetentionPolicyResource added in v0.57.0

func NewDataRetentionPolicyResource() resource.Resource

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 NewFrameworkProviderWithDefaultOrg added in v0.65.0

func NewFrameworkProviderWithDefaultOrg(defaultOrgName string) provider.Provider

NewFrameworkProviderWithDefaultOrg is a helper function for initializing a framework provider with a default organization name.

func NewNoCodeModuleDataSource added in v0.52.0

func NewNoCodeModuleDataSource() datasource.DataSource

NewNoCodeModuleDataSource is a helper function to simplify the implementation.

func NewNotificationConfigurationResource added in v0.65.0

func NewNotificationConfigurationResource() resource.Resource

NewNotificationConfigurationResource

func NewOrganizationDefaultSettings added in v0.65.0

func NewOrganizationDefaultSettings() resource.Resource

func NewOrganizationRunTaskDataSource added in v0.54.0

func NewOrganizationRunTaskDataSource() datasource.DataSource

NewOrganizationRunTaskDataSource is a helper function to simplify the provider implementation.

func NewOrganizationRunTaskGlobalSettingsDataSource added in v0.57.0

func NewOrganizationRunTaskGlobalSettingsDataSource() datasource.DataSource

func NewOrganizationRunTaskGlobalSettingsResource added in v0.57.0

func NewOrganizationRunTaskGlobalSettingsResource() resource.Resource

func NewOrganizationRunTaskResource added in v0.54.0

func NewOrganizationRunTaskResource() resource.Resource

func NewOrganizationTokenEphemeralResource added in v0.65.0

func NewOrganizationTokenEphemeralResource() ephemeral.EphemeralResource

func NewOutputsDataSource added in v0.65.0

func NewOutputsDataSource() datasource.DataSource

func NewOutputsEphemeralResource added in v0.65.0

func NewOutputsEphemeralResource() ephemeral.EphemeralResource

func NewPolicySetParameterResource added in v0.65.0

func NewPolicySetParameterResource() resource.Resource

func NewProjectDataSource added in v0.65.0

func NewProjectDataSource() datasource.DataSource

func NewProjectResource added in v0.65.0

func NewProjectResource() resource.Resource

func NewProjectsDataSource added in v0.60.0

func NewProjectsDataSource() datasource.DataSource

NewProjectsDataSource is a helper function to simplify the provider implementation.

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 NewRegistryModuleDataSource added in v0.65.0

func NewRegistryModuleDataSource() datasource.DataSource

NewModuleDataSource is a helper function to simplify the 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 NewSSHKey added in v0.65.0

func NewSSHKey() resource.Resource

func NewStackResource added in v0.57.0

func NewStackResource() resource.Resource

func NewTeamNotificationConfigurationResource added in v0.63.0

func NewTeamNotificationConfigurationResource() resource.Resource

func NewTeamTokenEphemeralResource added in v0.65.0

func NewTeamTokenEphemeralResource() ephemeral.EphemeralResource

func NewTeamTokenResource added in v0.65.0

func NewTeamTokenResource() resource.Resource

func NewTestVariableResource added in v0.54.0

func NewTestVariableResource() resource.Resource

func NewVariablesDataSource added in v0.65.0

func NewVariablesDataSource() datasource.DataSource

NewVariablesDataSource is a helper function to simplify the provider implementation.

func NewWorkspaceRunTaskDataSource added in v0.54.0

func NewWorkspaceRunTaskDataSource() datasource.DataSource

func NewWorkspaceRunTaskResource added in v0.54.0

func NewWorkspaceRunTaskResource() resource.Resource

func Provider

func Provider() *schema.Provider

Provider returns a schema.Provider

Types

type AgentTokenEphemeralResource added in v0.65.0

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

func (*AgentTokenEphemeralResource) Configure added in v0.65.0

Configure adds the provider configured client to the data source.

func (*AgentTokenEphemeralResource) Metadata added in v0.65.0

func (*AgentTokenEphemeralResource) Open added in v0.65.0

The request contains the configuration supplied to Terraform for the ephemeral resource. The response contains the ephemeral result data. The data is defined by the schema of the ephemeral resource.

func (*AgentTokenEphemeralResource) Schema added in v0.65.0

defines a schema describing what data is available in the ephemeral resource's configuration and result data.

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 AuditTrailTokenEphemeralResource added in v0.65.0

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

func (*AuditTrailTokenEphemeralResource) Configure added in v0.65.0

Configure adds the provider configured client to the data source.

func (*AuditTrailTokenEphemeralResource) Metadata added in v0.65.0

func (*AuditTrailTokenEphemeralResource) Open added in v0.65.0

func (*AuditTrailTokenEphemeralResource) Schema added in v0.65.0

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.

type OrganizationTokenEphemeralResource added in v0.65.0

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

func (*OrganizationTokenEphemeralResource) Configure added in v0.65.0

Configure adds the provider configured client to the data source.

func (*OrganizationTokenEphemeralResource) Metadata added in v0.65.0

func (*OrganizationTokenEphemeralResource) Open added in v0.65.0

func (*OrganizationTokenEphemeralResource) Schema added in v0.65.0

type TeamTokenEphemeralResource added in v0.65.0

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

func (*TeamTokenEphemeralResource) Close added in v0.66.0

func (*TeamTokenEphemeralResource) Configure added in v0.65.0

Configure adds the provider configured client to the data source.

func (*TeamTokenEphemeralResource) Metadata added in v0.65.0

func (*TeamTokenEphemeralResource) Open added in v0.65.0

func (*TeamTokenEphemeralResource) Schema added in v0.65.0

type TeamTokenEphemeralResourceModel added in v0.65.0

type TeamTokenEphemeralResourceModel struct {
	ID        types.String      `tfsdk:"id"`
	TeamID    types.String      `tfsdk:"team_id"`
	Token     types.String      `tfsdk:"token"`
	ExpiredAt timetypes.RFC3339 `tfsdk:"expired_at"`
}

type TeamTokenPrivateData added in v0.66.0

type TeamTokenPrivateData struct {
	ID     string `json:"id"`
	TeamID string `json:"team_id"`
}

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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