Documentation ¶
Overview ¶
Contains convenience methods for constructing core types.
Index ¶
- func ExtractFromLiteral(literal *core.Literal) (interface{}, error)
- func MakeBinaryLiteral(v []byte) *core.Literal
- func MakeDefaultLiteralForType(typ *core.LiteralType) (*core.Literal, error)
- func MakeGenericLiteral(v *structpb.Struct) *core.Literal
- func MakeLiteral(v interface{}) (*core.Literal, error)
- func MakeLiteralForBlob(path storage.DataReference, isDir bool, format string) *core.Literal
- func MakeLiteralForCollection(v []interface{}) (*core.Literal, error)
- func MakeLiteralForMap(v map[string]interface{}) (*core.Literal, error)
- func MakeLiteralForSchema(path storage.DataReference, columns []*core.SchemaType_SchemaColumn) *core.Literal
- func MakeLiteralForSimpleType(t core.SimpleType, s string) (*core.Literal, error)
- func MakeLiteralForType(t *core.LiteralType, v interface{}) (*core.Literal, error)
- func MakeLiteralMap(v map[string]interface{}) (*core.LiteralMap, error)
- func MakePrimitive(v interface{}) (*core.Primitive, error)
- func MakePrimitiveForType(t core.SimpleType, s string) (*core.Primitive, error)
- func MakePrimitiveLiteral(v interface{}) (*core.Literal, error)
- func MustMakeDefaultLiteralForType(typ *core.LiteralType) *core.Literal
- func MustMakeLiteral(v interface{}) *core.Literal
- func MustMakePrimitive(v interface{}) *core.Primitive
- func MustMakePrimitiveLiteral(v interface{}) *core.Literal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractFromLiteral ¶ added in v0.18.15
func MakeBinaryLiteral ¶
func MakeDefaultLiteralForType ¶
func MakeDefaultLiteralForType(typ *core.LiteralType) (*core.Literal, error)
func MakeGenericLiteral ¶ added in v0.18.15
func MakeLiteral ¶
func MakeLiteralForBlob ¶ added in v0.18.15
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 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 MakePrimitiveForType ¶ added in v0.18.15
func MakePrimitiveLiteral ¶
func MustMakeDefaultLiteralForType ¶
func MustMakeDefaultLiteralForType(typ *core.LiteralType) *core.Literal
func MustMakeLiteral ¶
func MustMakePrimitive ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.