package
2.25.2
Repository: https://github.com/pulumi/pulumi.git
Documentation: pkg.go.dev

# Functions

AsObject attempts to coerce an existing value to an object map, returning a non-nil error if it cannot be done.
AsString attempts to coerce an existing value to a string, returning a non-nil error if it cannot be done.
FieldObject looks up a field by name within an object map, coerces it to an object itself, and returns it.
FieldString looks up a field by name within an object map, coerces it to a string, and returns it.
Map decodes an entire map into a target object, using an anonymous decoder and tag-directed mappings.
MapI decodes an entire map into a target object, using an anonymous decoder and tag-directed mappings.
MapIM decodes an entire map into a target object, using an anonymous decoder and tag-directed mappings.
MapIU decodes an entire map into a target object, using an anonymous decoder and tag-directed mappings.
New allocates a new mapper object with the given options.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Unmap translates an already mapped target object into a raw, unmapped form.

# Structs

MissingError is used when a required field is missing on an object of a given type.
Opts controls the way mapping occurs; for default behavior, simply pass an empty struct.
UnrecognizedError is used when a field is unrecognized on the given type.
No description provided by the author

# Interfaces

FieldError represents a failure during decoding of a specific field.
Mapper can map from weakly typed JSON-like property bags to strongly typed structs, and vice versa.
MappingError represents a collection of decoding errors, defined below.

# Type aliases

Decoder is a func that knows how to decode into particular type.
Decoders is a map from type to a decoder func that understands how to decode that type.