Documentation ¶
Index ¶
- Constants
- func IsInstanceState(s shim.InstanceState) (*terraform.InstanceState, bool)
- func NewInstanceState(s *terraform.InstanceState) shim.InstanceState
- func NewInstanceStateForResource(s *terraform.InstanceState, resource *schema.Resource) shim.InstanceState
- func NewProvider(p *schema.Provider, opts ...providerOption) shim.Provider
- func NewResource(r *schema.Resource) shim.Resource
- func NewSchema(s *schema.Schema) shim.Schema
- func NewSchemaMap(m map[string]*schema.Schema) shim.SchemaMap
- func SetInstanceStateStrategy(resource shim.Resource, strategy InstanceStateStrategy)
- func WithDiffStrategy(s DiffStrategy) providerOption
- type DiffStrategy
- type InstanceStateStrategy
Constants ¶
View Source
const UnknownVariableValue = "74D93920-ED26-11E3-AC10-0800200C9A66"
UnknownVariableValue is the sentinal defined in github.com/hashicorp/terraform/configs/hcl2shim, representing a variable whose value is not known at some particular time. The value is duplicated here in order to prevent an additional dependency - it is unlikely to ever change upstream since that would break rather a lot of things.
Variables ¶
This section is empty.
Functions ¶
func IsInstanceState ¶
func IsInstanceState(s shim.InstanceState) (*terraform.InstanceState, bool)
func NewInstanceState ¶
func NewInstanceState(s *terraform.InstanceState) shim.InstanceState
func NewInstanceStateForResource ¶
func NewInstanceStateForResource(s *terraform.InstanceState, resource *schema.Resource) shim.InstanceState
func SetInstanceStateStrategy ¶
func SetInstanceStateStrategy(resource shim.Resource, strategy InstanceStateStrategy)
func WithDiffStrategy ¶
func WithDiffStrategy(s DiffStrategy) providerOption
Types ¶
type DiffStrategy ¶
type DiffStrategy int
Configures how the provider performs Diff. Since this is a sensitive method that can result in unexpected breaking changes, using a configurable DiffStrategy as a feature flag assists gradual rollout.
const ( // Uses the strategy from pulumi-terraform-bridge v3.41.0 and before. ClassicDiff DiffStrategy = 0 // An experimental strategy that mimics the behavior of Terraform CLI to compute PlannedState as part of the // diff, and performs better than ClassicDiff in complicated cases of set-nested blocks. PlanState DiffStrategy = 1 // This strategy would run both PlanState and ClassicDiff strategies and compare their result, generating a // warning if they mismatch. It always behaves as ClassicDiff execept for the warnings. TryPlanState DiffStrategy = 2 )
func ParseDiffStrategy ¶
func ParseDiffStrategy(text string) (DiffStrategy, error)
func ParseDiffStrategyFromEnv ¶
func ParseDiffStrategyFromEnv() (DiffStrategy, bool, error)
func (DiffStrategy) String ¶
func (s DiffStrategy) String() string
type InstanceStateStrategy ¶
type InstanceStateStrategy int
Feature flag to configures how the provider reads instance state.
const ( // The legacy strategy. ClassicInstanceState InstanceStateStrategy = iota // The strategy based on transcoding to cty.Value. CtyInstanceState )
func GetInstanceStateStrategy ¶
func GetInstanceStateStrategy(resource shim.Resource) InstanceStateStrategy
func ParseInstanceStateStrategy ¶
func ParseInstanceStateStrategy(text string) (InstanceStateStrategy, error)
func ParseInstanceStateStrategyFromEnv ¶
func ParseInstanceStateStrategyFromEnv() (InstanceStateStrategy, bool, error)
func (InstanceStateStrategy) String ¶
func (s InstanceStateStrategy) String() string
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
tf/configs/configschema
Code copied from https://github.com/hashicorp/terraform.git by go generate; DO NOT EDIT.
|
Code copied from https://github.com/hashicorp/terraform.git by go generate; DO NOT EDIT. |
tf/plans/objchange
Code copied from https://github.com/hashicorp/terraform.git by go generate; DO NOT EDIT.
|
Code copied from https://github.com/hashicorp/terraform.git by go generate; DO NOT EDIT. |
Click to show internal directories.
Click to hide internal directories.