modifiers

package
v1.2.11 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DescriptionPlanModifier

type DescriptionPlanModifier struct{}

DescriptionPlanModifier is a custom plan modifier that sets the `description` attribute to match the `name` attribute if `description` is not explicitly set by the user.

func (DescriptionPlanModifier) Description

func (m DescriptionPlanModifier) Description(ctx context.Context) string

Description provides a plain text description of the plan modifier's behavior.

func (DescriptionPlanModifier) MarkdownDescription

func (m DescriptionPlanModifier) MarkdownDescription(ctx context.Context) string

MarkdownDescription a markdown-formatted description of the plan modifier's behavior.

func (DescriptionPlanModifier) PlanModifyString

PlanModifyString adjusts the `description` attribute during the planning phase.

type SuppressDiffOnEqualJSON

type SuppressDiffOnEqualJSON struct{}

SuppressDiffOnEqualJSON is a custom plan modifier that suppresses diffs when JSON strings are logically equivalent.

func (SuppressDiffOnEqualJSON) Description

func (m SuppressDiffOnEqualJSON) Description(ctx context.Context) string

Returns a plain text description of the plan modifier's behavior

func (SuppressDiffOnEqualJSON) MarkdownDescription

func (m SuppressDiffOnEqualJSON) MarkdownDescription(ctx context.Context) string

Returns a markdown-formatted description of the plan modifier's behavior

func (SuppressDiffOnEqualJSON) PlanModifyString

Applies the plan modification by suppressing the diff if both JSON strings are semantically equal

type TagPlanModifier

type TagPlanModifier struct{}

TagPlanModifier is a custom plan modifier that ensures the `tags` attribute is always initialized.

func (TagPlanModifier) Description

func (m TagPlanModifier) Description(ctx context.Context) string

Description provides a plain text description of the plan modifier's behavior.

func (TagPlanModifier) MarkdownDescription

func (m TagPlanModifier) MarkdownDescription(ctx context.Context) string

MarkdownDescription provides a markdown-formatted description of the plan modifier's behavior.

func (TagPlanModifier) PlanModifyMap

PlanModifyMap adjusts the planned value of the `tags` attribute during the planning phase.

Jump to

Keyboard shortcuts

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