Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TestResources = []schema.ResourceLink{ { Href: platform.ResourceURI, ResourceTypes: []string{platform.ResourceType}, Interfaces: []string{interfaces.OC_IF_R, interfaces.OC_IF_BASELINE}, Policy: &schema.Policy{ BitMask: 3, }, }, { Href: schemaDevice.ResourceURI, ResourceTypes: []string{types.DEVICE_CLOUD, schemaDevice.ResourceType}, Interfaces: []string{interfaces.OC_IF_R, interfaces.OC_IF_BASELINE}, Policy: &schema.Policy{ BitMask: 3, }, }, { Href: configuration.ResourceURI, ResourceTypes: []string{configuration.ResourceType}, Interfaces: []string{interfaces.OC_IF_RW, interfaces.OC_IF_BASELINE}, Policy: &schema.Policy{ BitMask: 3, }, }, { Href: "/light/1", ResourceTypes: []string{types.CORE_LIGHT}, Interfaces: []string{interfaces.OC_IF_RW, interfaces.OC_IF_BASELINE}, Policy: &schema.Policy{ BitMask: 3, }, }, { Href: "/switches", ResourceTypes: []string{collection.ResourceType}, Interfaces: []string{interfaces.OC_IF_LL, interfaces.OC_IF_CREATE, interfaces.OC_IF_B, interfaces.OC_IF_BASELINE}, Policy: &schema.Policy{ BitMask: 3, }, }, { Href: maintenance.ResourceURI, ResourceTypes: []string{maintenance.ResourceType}, Interfaces: []string{interfaces.OC_IF_RW, interfaces.OC_IF_BASELINE}, Policy: &schema.Policy{ BitMask: 1, }, }, { Href: plgdtime.ResourceURI, ResourceTypes: []string{plgdtime.ResourceType}, Interfaces: []string{interfaces.OC_IF_RW, interfaces.OC_IF_BASELINE}, Policy: &schema.Policy{ BitMask: 3, }, }, { Href: softwareupdate.ResourceURI, ResourceTypes: []string{softwareupdate.ResourceType}, Interfaces: []string{interfaces.OC_IF_RW, interfaces.OC_IF_BASELINE}, Policy: &schema.Policy{ BitMask: 3, }, }, }
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
device.BaseDevice
}
func (*Device) GetDefaultResources ¶
func (d *Device) GetDefaultResources() schema.ResourceLinks
Click to show internal directories.
Click to hide internal directories.