unstructured

package
v1.3.85 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 7 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteKey

func DeleteKey(u Unstructured, key string)

func FromProtoMessage

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

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 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)

func ToValue added in v1.2.21

func ToValue(v Any) (*structpb.Value, error)

Types

type Any added in v1.2.21

type Any = interface{}

func FromListValue

func FromListValue(value *structpb.ListValue) Any

func FromValue

func FromValue(v *structpb.Value) Any

type Unstructured

type Unstructured = map[string]Any

func FromRecord added in v1.3.15

func FromRecord(record *model.Record) (Unstructured, error)

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