serde

package
v0.0.0-...-b5b3c56 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffOldsAndNews

func DiffOldsAndNews(req *pulumirpc.DiffRequest) ([]string, error)

DiffOldsAndNews unmarshals a DiffRequest and runs a diff on them. It returns any keys changed

func FromProperties

func FromProperties(props *structpb.Struct, structTagName string, out interface{}) error

func FromPropertyMap

func FromPropertyMap(properties resource.PropertyMap, structTagName string, out interface{}) error

FromPropertyMap unmarshals properties into out.

func ToProperties

func ToProperties(obj interface{}, structTagName string) (*structpb.Struct, error)

func ToPropertyMap

func ToPropertyMap(obj interface{}, structTagName string) resource.PropertyMap

ToPropertyMap marshals a struct into a resource.PropertyMap. It obtains the resource.PropertyKey() values for each struct field by grabbing value of the structTagKey

Types

This section is empty.

Jump to

Keyboard shortcuts

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