coreutils

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 13 Imported by: 6

Documentation

Overview

Contains convenience methods for constructing core types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractFromLiteral added in v0.18.15

func ExtractFromLiteral(literal *core.Literal) (interface{}, error)

func MakeBinaryLiteral

func MakeBinaryLiteral(v []byte) *core.Literal

func MakeDefaultLiteralForType

func MakeDefaultLiteralForType(typ *core.LiteralType) (*core.Literal, error)

func MakeGenericLiteral added in v0.18.15

func MakeGenericLiteral(v *structpb.Struct) *core.Literal

func MakeLiteral

func MakeLiteral(v interface{}) (*core.Literal, error)

func MakeLiteralForBlob added in v0.18.15

func MakeLiteralForBlob(path storage.DataReference, isDir bool, format string) *core.Literal

func MakeLiteralForCollection

func MakeLiteralForCollection(v []interface{}) (*core.Literal, error)

func MakeLiteralForMap

func MakeLiteralForMap(v map[string]interface{}) (*core.Literal, error)

func MakeLiteralForSchema added in v0.21.2

func MakeLiteralForSchema(path storage.DataReference, columns []*core.SchemaType_SchemaColumn) *core.Literal

func MakeLiteralForSimpleType added in v0.18.15

func MakeLiteralForSimpleType(t core.SimpleType, s string) (*core.Literal, error)

func MakeLiteralForType added in v0.18.22

func MakeLiteralForType(t *core.LiteralType, v interface{}) (*core.Literal, error)

func MakeLiteralMap

func MakeLiteralMap(v map[string]interface{}) (*core.LiteralMap, error)

func MakePrimitive

func MakePrimitive(v interface{}) (*core.Primitive, error)

func MakePrimitiveForType added in v0.18.15

func MakePrimitiveForType(t core.SimpleType, s string) (*core.Primitive, error)

func MakePrimitiveLiteral

func MakePrimitiveLiteral(v interface{}) (*core.Literal, error)

func MustMakeDefaultLiteralForType

func MustMakeDefaultLiteralForType(typ *core.LiteralType) *core.Literal

func MustMakeLiteral

func MustMakeLiteral(v interface{}) *core.Literal

func MustMakePrimitive

func MustMakePrimitive(v interface{}) *core.Primitive

func MustMakePrimitiveLiteral

func MustMakePrimitiveLiteral(v interface{}) *core.Literal

Types

This section is empty.

Jump to

Keyboard shortcuts

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