Documentation ¶
Overview ¶
Helpers to execute OS commands.
Index ¶
- type TFChange
- type TFDriver
- func (d *TFDriver) Apply(t pulcheck.T, plan *TFPlan) error
- func (d *TFDriver) GetOutput(t pulcheck.T, outputName string) string
- func (d *TFDriver) GetState(t pulcheck.T) string
- func (*TFDriver) ParseChangesFromTFPlan(plan *TFPlan) TFChange
- func (d *TFDriver) Plan(t pulcheck.T) (*TFPlan, error)
- func (d *TFDriver) Show(t pulcheck.T, planFile string) string
- func (d *TFDriver) Write(t pulcheck.T, program string)
- type TFPlan
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TFDriver ¶ added in v3.95.0
type TFDriver struct {
// contains filtered or unexported fields
}
func NewTfDriver ¶
This takes a sdkv2 schema.Provider or a providerv6
func (*TFDriver) ParseChangesFromTFPlan ¶ added in v3.95.0
Still discovering the structure of JSON-serialized TF plans. The information required from these is, primarily, is whether the resource is staying unchanged, being updated or replaced. Secondarily, would be also great to know detailed paths of properties causing the change, though that is more difficult to cross-compare with Pulumi.
For now this is code is similar to `jq .resource_changes[0].change.actions[0] plan.json`.
Click to show internal directories.
Click to hide internal directories.