Documentation ¶
Overview ¶
Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0
Index ¶
- Constants
- func NewFrameworkProvider() provider.Provider
- func NewLoggingTransport(name string, t http.RoundTripper) *loggingTransport
- func NewResourceVariable() resource.Resource
- func NewSAMLSettingsDataSource() datasource.DataSource
- func NewSAMLSettingsResource() resource.Resource
- func PluginProviderServer() tfprotov5.ProviderServer
- func Provider() *schema.Provider
- type AttrGettable
- type Config
- type ConfigHost
- type ConfiguredClient
- type FrameworkProviderConfig
Constants ¶
const (
EnvLog = "TF_LOG"
)
const RunTasksURLEnvName = "RUN_TASKS_URL"
Variables ¶
This section is empty.
Functions ¶
func NewFrameworkProvider ¶ added in v0.45.0
NewFrameworkProvider is a helper function for initializing the portion of the tfe provider implemented via the terraform-plugin-framework.
func NewLoggingTransport ¶ added in v0.31.0
func NewLoggingTransport(name string, t http.RoundTripper) *loggingTransport
NewLoggingTransport wraps the given transport with a logger that logs request and response details
func NewResourceVariable ¶ added in v0.45.0
NewResourceVariable is a resource function for the framework provider.
func NewSAMLSettingsDataSource ¶ added in v0.47.0
func NewSAMLSettingsDataSource() datasource.DataSource
NewSAMLSettingsDataSource is a helper function to simplify the provider implementation.
func NewSAMLSettingsResource ¶ added in v0.48.0
NewSAMLSettingsResource is a resource function for the framework provider.
func PluginProviderServer ¶ added in v0.26.0
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.
Types ¶
type AttrGettable ¶ added in v0.45.0
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 Plan or State.
type Config ¶
type Config struct { Hosts map[string]*ConfigHost `hcl:"host"` Credentials map[string]map[string]interface{} `hcl:"credentials"` }
Config is the structure of the configuration for the Terraform CLI.
type ConfigHost ¶
type ConfigHost struct {
Services map[string]interface{} `hcl:"services"`
}
ConfigHost is the structure of the "host" nested block within the CLI configuration, which can be used to override the default service host discovery behavior for a particular hostname.
type ConfiguredClient ¶ added in v0.42.0
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 ¶ added in v0.45.0
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 ¶
- agent_pool_helpers.go
- client_mock_workspaces.go
- config_unix.go
- data_source_agent_pool.go
- data_source_github_app_installation.go
- data_source_ip_ranges.go
- data_source_oauth_client.go
- data_source_organization.go
- data_source_organization_members.go
- data_source_organization_membership.go
- data_source_organization_run_task.go
- data_source_organization_tags.go
- data_source_organizations.go
- data_source_outputs.go
- data_source_policy_set.go
- data_source_project.go
- data_source_saml_settings.go
- data_source_slug.go
- data_source_ssh_key.go
- data_source_team.go
- data_source_team_access.go
- data_source_team_project_access.go
- data_source_variable_set.go
- data_source_variables.go
- data_source_workspace.go
- data_source_workspace_ids.go
- data_source_workspace_run_task.go
- github_app_installation_helpers.go
- id_helpers.go
- logging.go
- oauth_client_helpers.go
- organization_members_helpers.go
- plugin_provider.go
- provider.go
- provider_next.go
- resource_tfe_admin_organization_settings.go
- resource_tfe_agent_pool.go
- resource_tfe_agent_pool_allowed_workspaces.go
- resource_tfe_agent_token.go
- resource_tfe_no_code_module.go
- resource_tfe_notification_configuration.go
- resource_tfe_oauth_client.go
- resource_tfe_organization.go
- resource_tfe_organization_membership.go
- resource_tfe_organization_module_sharing.go
- resource_tfe_organization_run_task.go
- resource_tfe_organization_token.go
- resource_tfe_policy.go
- resource_tfe_policy_set.go
- resource_tfe_policy_set_parameter.go
- resource_tfe_project.go
- resource_tfe_project_policy_set.go
- resource_tfe_project_variable_set.go
- resource_tfe_registry_module.go
- resource_tfe_run_trigger.go
- resource_tfe_saml_settings.go
- resource_tfe_sentinel_policy.go
- resource_tfe_ssh_key.go
- resource_tfe_team.go
- resource_tfe_team_access.go
- resource_tfe_team_access_migrate.go
- resource_tfe_team_member.go
- resource_tfe_team_members.go
- resource_tfe_team_organization_member.go
- resource_tfe_team_organization_members.go
- resource_tfe_team_project_access.go
- resource_tfe_team_token.go
- resource_tfe_terraform_version.go
- resource_tfe_variable.go
- resource_tfe_variable_set.go
- resource_tfe_workspace.go
- resource_tfe_workspace_migrate.go
- resource_tfe_workspace_policy_set.go
- resource_tfe_workspace_run.go
- resource_tfe_workspace_run_task.go
- resource_tfe_workspace_variable_set.go
- run_task_helpers.go
- team_helpers.go
- testing.go
- tool_helpers.go
- workspace_helpers.go
- workspace_run_helpers.go