Versions in this module Expand all Collapse all v0 v0.1.0 Sep 23, 2022 Changes in this version + const CurrentFormatVersion + func AreCompatible(left Action, right Action) bool + func IsRelevant(rc *tfjson.ResourceChange) (bool, error) + func ParsePlan(data []byte) (*tfjson.Plan, error) + func ReadPlan(path string) (*tfjson.Plan, error) + func ReadPlans(paths []string) ([]*tfjson.Plan, error) + type Action string + const ActionCreate + const ActionCreateBeforeDestroy + const ActionDelete + const ActionDestroyBeforeCreate + const ActionInvalid + const ActionNoOp + const ActionRead + const ActionUpdate + func ConvertAction(actions *tfjson.Actions) Action + func (a Action) Pretty() string + type Address string + type FilterResults struct + Changes map[Address]Action + Errors map[Address]Action + PlanFilter *PlanFilter + func CheckPlan(filter *PlanFilter, plan *tfjson.Plan) (*FilterResults, error) + func NewFilterResults(filter *PlanFilter) *FilterResults + func (fr *FilterResults) HasChanges() bool + func (fr *FilterResults) HasErrors() bool + type PlanFilter struct + AllowedActions map[Address][]Action + FormatVersion string + func MergePlanFilters(filters []*PlanFilter) (*PlanFilter, error) + func NewFilterFromPlan(plan *tfjson.Plan) (*PlanFilter, error) + func NewFilterFromPlanPaths(paths []string) (*PlanFilter, error) + func NewFilterFromPlans(plans []*tfjson.Plan) (*PlanFilter, error) + func ParsePlanFilter(data []byte) (*PlanFilter, error) + func ReadPlanFilter(path string) (*PlanFilter, error) + func ReadPlanFilters(paths []string) ([]*PlanFilter, error) + func (f *PlanFilter) HasAction(address Address, action Action) bool + func (pf *PlanFilter) WriteJSON(path string) error