Documentation ¶
Index ¶
- Constants
- func HandleRequest[T any](ctx context.Context, model T, g ModelGetter, s ModelSetter, ...)
- func Raw(v basetypes.StringValue) basetypes.StringValue
- func RawString(v basetypes.StringValue) string
- func StringifyStatements(vs []attr.Value) string
- func StringifyValue(v attr.Value) string
- func StringifyValues(vs []attr.Value) []string
- type ModelGetter
- type ModelSetter
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 Raw ¶
func Raw(v basetypes.StringValue) basetypes.StringValue
func RawString ¶
func RawString(v basetypes.StringValue) string
func StringifyStatements ¶ added in v0.0.6
func StringifyValue ¶
func StringifyValues ¶
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
}
Click to show internal directories.
Click to hide internal directories.