cloud

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 0 Imported by: 3 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 Endpoint added in v2.4.0

type Endpoint struct {
	ID  string `json:"id"`
	URI string `json:"uri"`
}

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"
)

Jump to

Keyboard shortcuts

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