coreutils

package
v1.13.9 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 13 Imported by: 10

Documentation

Overview

Contains convenience methods for constructing core types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractFromLiteral

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

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

func MakeLiteral

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

func MakeLiteralForBlob

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

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

func MakeLiteralForSimpleType

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

func MakeLiteralForStructuredDataSet

func MakeLiteralForStructuredDataSet(path storage.DataReference, columns []*core.StructuredDatasetType_DatasetColumn, format string) *core.Literal

func MakeLiteralForType

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

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