package
3.4.0-alpha.3
Repository: https://github.com/turbot/steampipe-plugin-sdk.git
Documentation: pkg.go.dev

# Functions

ConstantValue is intended for the start of a transform chain This returns the value passed as d.Param.
EnsureStringArray convert the input value from transform data into a string array.
FieldValue function is intended for the start of a transform chain.
FieldValueCamelCase is intended for the start of a transform chain This converts the column name to camel case and call FieldValue.
FieldValueGo is intended for the start of a transform chain This converts the column name to camel case, with common initialisms upper case, and call FieldValue.
FieldValueTag is intended for the start of a transform chain This finds the data value with the tag matching the column name.
From generate a value by calling 'transformFunc'.
FromCamel generates a value by converting the given field name to camel case and retrieving from the source item.
FromConstant returns a constant value (specified by 'param').
FromField generates a value by retrieving a field or a set of fields from the source item.
FromGo generates a value by converting the given field name to camel case and retrieving from the source item.
FromJSONTag generates a value by finding a struct property with the json tag matching the column name.
FromMatrixItem takes key from transform data and generates the value from Matrix Items.
FromMethod invokes a function on the hydrate item coming from transform data.
FromP generates a value by calling 'transformFunc' passing param.
FromQual takes the specific column and generates it's values from key column quals.
FromTag generates a value by finding a struct property with the tag 'tagName' matching the column name.
FromValue generates a value by returning the raw hydrate item.
MatrixItemValue is intended for the start of a transform chain This retrieves a value from the matrix item, using the param from transform data as a key.
MethodValue function takes the transform data and invokes specified method on the hydrate item.
NullIfEqualParam returns nil if the input Value equals the transform param.
NullIfZeroValue takes the transform data and returns nil if the input value equals the zero value of its type.
QualValue takes the column name from the transform data param and retrieves any quals for it If the quals is a single equals quals it returns it If there are any other quals and error is returned.
RawValue is intended for the start of a transform chain This returns the whole hydrate item as it is.
StringArrayToMap converts a string array to a map where the keys are the array elements.
ToBool converts the (string) value to a bool This returns nil if value is not a string.
ToDouble convert the value from transform data to float64.
ToInt convert the value from transform data to an int64.
ToLower converts the (string or *string) value to lower case returns unaltered value if value is not a string.
ToString convert the value from transform data to a string.
ToUpper converts the (string or *string) value to upper case, returns unaltered value if value from the transform data is not a string.
UnixMsToTimestamp convert unix time in milliseconds to go time object (which will later be converted to RFC3339 format by the FDW).
UnixToTimestamp convert unix time format to go time object (which will later be converted to RFC3339 format by the FDW).
UnmarshalYAML parse the yaml-encoded data and return the result.

# Structs

ColumnTransforms struct defines the data transforms required to map from a JSON value to a column value.
TransformCall is a transform function and parameter to invoke it with.
TransformData is the input to a transform function.

# Type aliases

No description provided by the author
TransformFunc is a function to transform a data value from the api value to a column value parameters are: value, parent json object, param returns the transformed HydrateItem.