Versions in this module Expand all Collapse all v0 v0.1.58 Apr 8, 2021 Changes in this version + const ADDRESSABLE + const Acknowledged + const Base64Encoding + const Critical + const DEVICE + const DebugLog + const Disabled + const ENotation + const Email + const Enabled + const EncAes + const EncNone + const ErrorLog + const Escalated + const Failed + const Hwhealth + const InfoLog + const Locked + const New + const Normal + const PROFILE + const PROVISIONWATCHER + const Processed + const REPORT + const Rest + const SCHEDULE + const SCHEDULEEVENT + const SERVICE + const Security + const Sent + const Swhealth + const TraceLog + const Trxescalated + const Unlocked + const VALUEDESCRIPTOR + const ValidateTag + const ValueTypeBinary + const ValueTypeBool + const ValueTypeBoolArray + const ValueTypeFloat32 + const ValueTypeFloat32Array + const ValueTypeFloat64 + const ValueTypeFloat64Array + const ValueTypeInt16 + const ValueTypeInt16Array + const ValueTypeInt32 + const ValueTypeInt32Array + const ValueTypeInt64 + const ValueTypeInt64Array + const ValueTypeInt8 + const ValueTypeInt8Array + const ValueTypeString + const ValueTypeStringArray + const ValueTypeUint16 + const ValueTypeUint16Array + const ValueTypeUint32 + const ValueTypeUint32Array + const ValueTypeUint64 + const ValueTypeUint64Array + const ValueTypeUint8 + const ValueTypeUint8Array + const WarnLog + func IsNotificationsCategory(as string) bool + func IsNotificationsSeverity(as string) bool + func IsNotificationsStatus(as string) bool + func IsTransmissionStatus(as string) bool + func NewErrContractInvalid(message string) error + type Action struct + Path string + Responses []Response + URL string + func (a Action) String() string + type ActionType string + type Addressable struct + Address string + HTTPMethod string + Id string + Name string + Password string + Path string + Port int + Protocol string + Publisher string + Topic string + User string + func (a *Addressable) UnmarshalJSON(data []byte) error + func (a Addressable) GetBaseURL() string + func (a Addressable) GetCallbackURL() string + func (a Addressable) MarshalJSON() ([]byte, error) + func (a Addressable) String() string + func (a Addressable) Validate() (bool, error) + type AdminState string + func GetAdminState(as string) (AdminState, bool) + func (as *AdminState) UnmarshalJSON(data []byte) error + func (as AdminState) Validate() (bool, error) + type AutoEvent struct + Frequency string + OnChange bool + Resource string + func (a AutoEvent) String() string + type CallbackAlert struct + ActionType ActionType + Id string + func (ca CallbackAlert) String() string + type Channel struct + MailAddresses []string + Type ChannelType + Url string + func (c Channel) String() string + type ChannelType string + func (as *ChannelType) UnmarshalJSON(data []byte) error + func (as ChannelType) Validate() (bool, error) + type Command struct + Get Get + Id string + Name string + Put Put + func (c *Command) AllAssociatedValueDescriptors(vdNames *map[string]string) + func (c *Command) UnmarshalJSON(data []byte) error + func (c Command) MarshalJSON() ([]byte, error) + func (c Command) String() string + func (c Command) Validate() (bool, error) + type CommandResponse struct + AdminState AdminState + Commands []Command + Id string + Labels []string + LastConnected int64 + LastReported int64 + Location interface{} + Name string + OperatingState OperatingState + func CommandResponseFromDevice(d Device, commands []Command, cmdURL string) CommandResponse + func (d CommandResponse) String() string + type DescribedObject struct + Description string + func (o DescribedObject) String() string + type Device struct + AdminState AdminState + AutoEvents []AutoEvent + Id string + Labels []string + LastConnected int64 + LastReported int64 + Location interface{} + Name string + OperatingState OperatingState + Profile DeviceProfile + Protocols map[string]ProtocolProperties + Service DeviceService + func (d *Device) AllAssociatedValueDescriptors(vdNames *[]string) + func (d *Device) UnmarshalJSON(data []byte) error + func (d Device) MarshalJSON() ([]byte, error) + func (d Device) String() string + func (d Device) Validate() (bool, error) + type DeviceProfile struct + CoreCommands []Command + DeviceCommands []ProfileResource + DeviceResources []DeviceResource + Id string + Labels []string + Manufacturer string + Model string + Name string + func (dp *DeviceProfile) UnmarshalJSON(data []byte) error + func (dp DeviceProfile) String() string + func (dp DeviceProfile) Validate() (bool, error) + type DeviceReport struct + Action string + Device string + Expected []string + Id string + Name string + func (dr DeviceReport) String() string + type DeviceResource struct + Attributes map[string]string + Description string + Name string + Properties ProfileProperty + Tag string + func (do DeviceResource) MarshalJSON() ([]byte, error) + func (do DeviceResource) String() string + type DeviceService struct + Addressable Addressable + AdminState AdminState + Id string + Labels []string + LastConnected int64 + LastReported int64 + Name string + OperatingState OperatingState + func (ds *DeviceService) UnmarshalJSON(data []byte) error + func (ds DeviceService) MarshalJSON() ([]byte, error) + func (ds DeviceService) String() string + func (ds DeviceService) Validate() (bool, error) + type EncryptionDetails struct + Algo string + InitVector string + Key string + type ErrContractInvalid struct + func (e ErrContractInvalid) Error() string + type Event struct + Created int64 + Device string + ID string + Modified int64 + Origin int64 + Pushed int64 + Readings []Reading + func (e *Event) UnmarshalJSON(data []byte) error + func (e Event) CBOR() []byte + func (e Event) String() string + func (e Event) Validate() (bool, error) + type Filter struct + DeviceIDs []string + ValueDescriptorIDs []string + type Get struct + func (g *Get) AllAssociatedValueDescriptors(vdNames *map[string]string) + func (g Get) String() string + type Interval struct + Cron string + End string + Frequency string + ID string + Name string + RunOnce bool + Start string + Timestamps Timestamps + func (i *Interval) UnmarshalJSON(data []byte) error + func (i Interval) MarshalJSON() ([]byte, error) + func (i Interval) String() string + func (i Interval) Validate() (bool, error) + type IntervalAction struct + Address string + Created int64 + HTTPMethod string + ID string + Interval string + Modified int64 + Name string + Origin int64 + Parameters string + Password string + Path string + Port int + Protocol string + Publisher string + Target string + Topic string + User string + func (ia *IntervalAction) UnmarshalJSON(data []byte) error + func (ia IntervalAction) GetBaseURL() string + func (ia IntervalAction) String() string + func (ia IntervalAction) Validate() (bool, error) + type LogEntry struct + Args []interface{} + Created int64 + Level string + Message string + OriginService string + func (le *LogEntry) UnmarshalJSON(data []byte) error + func (le LogEntry) Validate() (bool, error) + type Notification struct + Category NotificationsCategory + Content string + ContentType string + Description string + ID string + Labels []string + Sender string + Severity NotificationsSeverity + Slug string + Status NotificationsStatus + func (n *Notification) UnmarshalJSON(data []byte) error + func (n Notification) MarshalJSON() ([]byte, error) + func (n Notification) String() string + func (n Notification) Validate() (bool, error) + type NotificationsCategory string + func (as *NotificationsCategory) UnmarshalJSON(data []byte) error + type NotificationsSeverity string + func (as *NotificationsSeverity) UnmarshalJSON(data []byte) error + type NotificationsStatus string + func (as *NotificationsStatus) UnmarshalJSON(data []byte) error + type OperatingState string + func GetOperatingState(os string) (OperatingState, bool) + func (os *OperatingState) UnmarshalJSON(data []byte) error + func (os OperatingState) Validate() (bool, error) + type Operation struct + Action string + Services []string + func (o *Operation) UnmarshalJSON(data []byte) error + func (o Operation) String() string + type ProfileProperty struct + Units Units + Value PropertyValue + func (pp ProfileProperty) MarshalJSON() ([]byte, error) + func (pp ProfileProperty) String() string + type ProfileResource struct + Get []ResourceOperation + Name string + Set []ResourceOperation + func (pr ProfileResource) String() string + type PropertyValue struct + Assertion string + Base string + DefaultValue string + FloatEncoding string + Mask string + Maximum string + MediaType string + Minimum string + Offset string + Precision string + ReadWrite string + RequestType string + Scale string + Shift string + Size string + Type string + func (pv PropertyValue) String() string + type ProtocolProperties map[string]string + type ProvisionWatcher struct + AdminState AdminState + BlockingIdentifiers map[string][]string + Id string + Identifiers map[string]string + Name string + OperatingState OperatingState + Profile DeviceProfile + Service DeviceService + func (pw *ProvisionWatcher) UnmarshalJSON(data []byte) error + func (pw ProvisionWatcher) MarshalJSON() ([]byte, error) + func (pw ProvisionWatcher) String() string + func (pw ProvisionWatcher) Validate() (bool, error) + type Put struct + ParameterNames []string + func (p *Put) AllAssociatedValueDescriptors(vdNames *map[string]string) + func (p Put) String() string + type Reading struct + BinaryValue []byte + Created int64 + Device string + FloatEncoding string + Id string + MediaType string + Modified int64 + Name string + Origin int64 + Pushed int64 + RequestType string + Value string + ValueType string + func (r *Reading) UnmarshalJSON(data []byte) error + func (r Reading) String() string + func (r Reading) Validate() (bool, error) + type ResourceOperation struct + DeviceCommand string + DeviceResource string + Index string + Mappings map[string]string + Object string + Operation string + Parameter string + Resource string + Secondary []string + func (ro *ResourceOperation) UnmarshalJSON(data []byte) error + func (ro ResourceOperation) MarshalJSON() ([]byte, error) + func (ro ResourceOperation) String() string + func (ro ResourceOperation) Validate() (bool, error) + type Response struct + Code string + Description string + ExpectedValues []string + func (r Response) Equals(r2 Response) bool + func (r Response) String() string + type Subscription struct + Channels []Channel + Description string + ID string + Receiver string + Slug string + SubscribedCategories []NotificationsCategory + SubscribedLabels []string + func (s Subscription) String() string + type Timestamps struct + Created int64 + Modified int64 + Origin int64 + func (ts *Timestamps) String() string + type Transmission struct + Channel Channel + ID string + Notification Notification + Receiver string + Records []TransmissionRecord + ResendCount int + Status TransmissionStatus + func (t *Transmission) UnmarshalJSON(data []byte) error + func (t Transmission) MarshalJSON() ([]byte, error) + func (t Transmission) String() string + func (t Transmission) Validate() (bool, error) + type TransmissionRecord struct + Response string + Sent int64 + Status TransmissionStatus + func (t TransmissionRecord) String() string + type TransmissionStatus string + func (as *TransmissionStatus) UnmarshalJSON(data []byte) error + func (as TransmissionStatus) Validate() (bool, error) + type Units struct + DefaultValue string + ReadWrite string + Type string + func (u Units) String() string + type Validator interface + Validate func() (bool, error) + type ValueDescriptor struct + Created int64 + DefaultValue interface{} + Description string + FloatEncoding string + Formatting string + Id string + Labels []string + Max interface{} + MediaType string + Min interface{} + Modified int64 + Name string + Origin int64 + RequestType string + Type string + UomLabel string + func From(dr DeviceResource) ValueDescriptor + func (a ValueDescriptor) String() string + func (v *ValueDescriptor) UnmarshalJSON(data []byte) error + func (v ValueDescriptor) Validate() (bool, error)