coreutils

package
v1.14.0 Latest Latest
Warning

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

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

Documentation

Overview

Contains convenience methods for constructing core types.

Index

Constants

View Source
const FlyteUseOldDcFormat = "FLYTE_USE_OLD_DC_FORMAT"
View Source
const MESSAGEPACK = "msgpack"

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