unstructured

package
v1.1.52 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteKey

func DeleteKey(u Unstructured, key string)

func FromListValue

func FromListValue(value *structpb.ListValue) interface{}

func FromProtoMessage

func FromProtoMessage(u Unstructured, msg proto.Message) error

func FromValue

func FromValue(v *structpb.Value) interface{}

func Keys

func Keys(u Unstructured) []string

func MergeInto

func MergeInto(u Unstructured, un Unstructured, nested bool)

func MergeOut

func MergeOut(u Unstructured, un Unstructured, nested bool)

func NewStructValue

func NewStructValue(v interface{}) (*structpb.Value, error)

func ToProperties

func ToProperties(u Unstructured) (map[string]*structpb.Value, error)

func ToProtoMessage

func ToProtoMessage(u Unstructured, msg proto.Message) error

func ToRecord

func ToRecord(u Unstructured) (*model.Record, error)

Types

type Unstructured

type Unstructured = map[string]interface{}

func FromStructValue

func FromStructValue(v *structpb.Struct) Unstructured

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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