tfutils

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFourPartId

func BuildFourPartId(a, b, c, d string) string

func BuildThreePartId

func BuildThreePartId(a, b, c string) string

func BuildTwoPartId

func BuildTwoPartId(a, b string) string

func ImportStateFourPartId

func ImportStateFourPartId(ctx context.Context, part1 string, part2 string, part3 string, req resource.ImportStateRequest, resp *resource.ImportStateResponse)

func ImportStateThreePartId

func ImportStateThreePartId(ctx context.Context, part1 string, part2 string, req resource.ImportStateRequest, resp *resource.ImportStateResponse)

func ImportStateTwoPartId

func ImportStateTwoPartId(ctx context.Context, part1 string, req resource.ImportStateRequest, resp *resource.ImportStateResponse)

func MergeDiagnostics

func MergeDiagnostics[T any](v T, diagsOut diag.Diagnostics) func(diags *diag.Diagnostics) T

MergeDiagnostics is a utility function that merges the given diagnostics into the provided diagnostics and returns the original value.

func SplitFourPartId

func SplitFourPartId(id, a, b, c, d string) (string, string, string, string, error)

func SplitThreePartId

func SplitThreePartId(id, a, b, c string) (string, string, string, error)

func SplitTwoPartId

func SplitTwoPartId(id, a, b string) (string, string, error)

func WithEnumStringAttribute

func WithEnumStringAttribute(base schema.StringAttribute, choices []string) schema.StringAttribute

func WithMutuallyExclusiveValidator

func WithMutuallyExclusiveValidator(attributes map[string]schema.SingleNestedAttribute) map[string]schema.Attribute

Types

This section is empty.

Jump to

Keyboard shortcuts

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