util

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const RawPrefix = prefix + "raw:"

Variables

This section is empty.

Functions

func HandleRequest

func HandleRequest[T any](ctx context.Context, model T, g ModelGetter, s ModelSetter, diags *diag.Diagnostics, h func(m T) bool)

func RawString

func RawString(v basetypes.StringValue) string

func StringifyStatements added in v0.0.6

func StringifyStatements(vs []attr.Value) string

func StringifyValue

func StringifyValue(v attr.Value) string

func StringifyValues

func StringifyValues(vs []attr.Value) []string

Types

type ModelGetter

type ModelGetter interface {
	Get(ctx context.Context, target any) diag.Diagnostics
}

type ModelSetter

type ModelSetter interface {
	Set(ctx context.Context, val any) diag.Diagnostics
}

Jump to

Keyboard shortcuts

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