Documentation ¶
Index ¶
- func CompareActions(current, next plans.Action) plans.Action
- func ProcessSlice[Input any](before, after []Input, process ProcessIndices, isObjType IsObjType[Input])
- func TransformMap[Input any](before, after map[string]Input, process ProcessKey) (map[string]computed.Diff, plans.Action)
- func TransformSlice[Input any](before, after []Input, process TransformIndices, isObjType IsObjType[Input]) ([]computed.Diff, plans.Action)
- type IsObjType
- type ProcessIndices
- type ProcessKey
- type TransformIndices
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareActions ¶
CompareActions will compare current and next, and return plans.Update if they are different, and current if they are the same.
func ProcessSlice ¶
func ProcessSlice[Input any](before, after []Input, process ProcessIndices, isObjType IsObjType[Input])
func TransformMap ¶
func TransformSlice ¶
Types ¶
type ProcessIndices ¶
type ProcessIndices func(before, after int)
type ProcessKey ¶
type TransformIndices ¶
Click to show internal directories.
Click to hide internal directories.