serde

package
v0.0.0-...-659fc9f Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 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 a resource.PropertyMap into via

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