Documentation ¶
Overview ¶
Package cloud implements Cloud Configuration Resource. https://github.com/openconnectivityfoundation/cloud-services/blob/master/swagger2.0/oic.r.coapcloudconf.swagger.json
Index ¶
Constants ¶
View Source
const ( // ResourceType is the resource type of the Cloud Configuration Resource. ResourceType = "oic.r.coapcloudconf" // ResourceURI is the URI of the Cloud Configuration Resource. ResourceURI = "/CoapCloudConfResURI" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { ResourceTypes []string `json:"rt"` Interfaces []string `json:"if"` Name string `json:"n"` AuthorizationProvider string `json:"apn"` CloudID string `json:"sid"` URL string `json:"cis"` LastErrorCode int `json:"clec"` ProvisioningStatus ProvisioningStatus `json:"cps"` Endpoints []Endpoint `json:"x.org.iotivity.servers"` }
Configuration contains the supported fields of the Cloud Configuration Resource.
type ConfigurationUpdateRequest ¶
type ConfigurationUpdateRequest struct { AuthorizationProvider string `json:"apn,omitempty"` URL string `json:"cis"` AuthorizationCode string `json:"at,omitempty"` CloudID string `json:"sid,omitempty"` Endpoints []Endpoint `json:"x.org.iotivity.servers,omitempty"` }
ConfigurationUpdateRequest is used to update the Cloud Configuration Resource.
type ProvisioningStatus ¶
type ProvisioningStatus string
ProvisioningStatus indicates the Cloud Provisioning status of the Device.
const ( ProvisioningStatus_UNINITIALIZED ProvisioningStatus = "uninitialized" ProvisioningStatus_READY_TO_REGISTER ProvisioningStatus = "readytoregister" ProvisioningStatus_REGISTERING ProvisioningStatus = "registering" ProvisioningStatus_REGISTERED ProvisioningStatus = "registered" ProvisioningStatus_FAILED ProvisioningStatus = "failed" )
Click to show internal directories.
Click to hide internal directories.