utils

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: BSD-3-Clause Imports: 7 Imported by: 18

Documentation

Overview

* Copyright © 2018. TIBCO Software Inc. * This file is subject to the license terms contained * in the license file that is distributed with this file.

* Copyright © 2018. TIBCO Software Inc. * This file is subject to the license terms contained * in the license file that is distributed with this file.

* Copyright © 2018. TIBCO Software Inc. * This file is subject to the license terms contained * in the license file that is distributed with this file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractDecoratorArgsFromSchema

func ExtractDecoratorArgsFromSchema(decorator string, schema string) ([]interface{}, error)

func FindValueInMap

func FindValueInMap(input map[string]interface{}, attrpath string) (interface{}, error)

func GetContainerStub

func GetContainerStub(context activity.Context) (dtsvc.ContainerService, error)

func GetDecoratorArgs

func GetDecoratorArgs(decoratorName string, schema map[string]interface{}) []interface{}

func GetDecoratorsByPrefix

func GetDecoratorsByPrefix(decoratorName string, schema map[string]interface{}) []map[string]interface{}

func GetInputData

func GetInputData(assetValue *data.ComplexObject, isArray bool) ([]interface{}, error)

func IntCompare

func IntCompare(expected, actual int) int

func IsPrimitive

func IsPrimitive(datatype string) bool

func ParseRecord

func ParseRecord(record []byte) (map[string]interface{}, error)

func ParseRecords

func ParseRecords(records [][]byte) ([]interface{}, error)

func ParseSchemaCollections

func ParseSchemaCollections(schema string) (map[string]map[string]interface{}, error)

func ParseSchemaMetadata

func ParseSchemaMetadata(schema string) (map[string]interface{}, error)

func StringCompare

func StringCompare(expected, actual string) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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