Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CumulocityProperties = map[string]bool{ "additionParents": true, "assetParents": true, "childAdditions": true, "childAssets": true, "childDevices": true, "deviceParents": true, "creationTime": true, "lastUpdated": true, "self": true, }
CumulocityProperties contain a map of the static properties which are generally read-only and only controlled internally by Cumulocity or by other API calls
Functions ¶
func ExtractVersion ¶
ExtractVersion extracts a version from a string
func RemoveCumulocityProperties ¶
RemoveCumulocityProperties removes cumulocity properties from a map so it can be re-used in further Cumulocity requests, or the data view can be simplified
Types ¶
type AddChildAddition ¶
AddChildAddition adds a child addition relationship based ona c8y response
func (*AddChildAddition) Run ¶
func (a *AddChildAddition) Run(v interface{}) (resp interface{}, err error)
type TransformRelativeTimestamp ¶ added in v2.17.0
type TransformRelativeTimestamp struct {
Encode bool
}
func (*TransformRelativeTimestamp) Run ¶ added in v2.17.0
func (t *TransformRelativeTimestamp) Run(v interface{}) (resp interface{}, err error)
Click to show internal directories.
Click to hide internal directories.