Documentation
¶
Index ¶
- Constants
- func GetAdditionalProperties() map[string]interface{}
- func GetDataSchemaForAdditionalProperties() map[string]thingDescription.DataSchema
- func GetPropertyDescriptionForTestResource() thingDescription.PropertyElement
- func GetTestResourceHref(id int) string
- func GetThingDescription(path string, numResources int) (thingDescription.ThingDescription, error)
- func PatchTestResourcePropertyElement(pe thingDescription.PropertyElement, deviceID uuid.UUID, href string, ...) (thingDescription.PropertyElement, error)
- type CloudConfig
- type Config
- type CredentialConfig
- type LogConfig
- type TLSConfig
- type ThingDescriptionConfig
Constants ¶
View Source
const ( DeviceResourceType = "oic.d.virtual" TestResourcePropertyKey = "my-property" TestResourceType = "x.plgd.test" )
Variables ¶
This section is empty.
Functions ¶
func GetAdditionalProperties ¶
func GetAdditionalProperties() map[string]interface{}
func GetDataSchemaForAdditionalProperties ¶
func GetDataSchemaForAdditionalProperties() map[string]thingDescription.DataSchema
func GetPropertyDescriptionForTestResource ¶
func GetPropertyDescriptionForTestResource() thingDescription.PropertyElement
func GetTestResourceHref ¶
func GetThingDescription ¶
func GetThingDescription(path string, numResources int) (thingDescription.ThingDescription, error)
func PatchTestResourcePropertyElement ¶
func PatchTestResourcePropertyElement(pe thingDescription.PropertyElement, deviceID uuid.UUID, href string, contentType message.MediaType, createForms bridgeTD.CreateFormsFunc) (thingDescription.PropertyElement, error)
Types ¶
type CloudConfig ¶
type CloudConfig struct {
Enabled bool `yaml:"enabled" json:"enabled" description:"enable cloud connection"`
CloudID string `yaml:"cloudID" json:"cloudID" description:"cloud id"`
TLS TLSConfig `yaml:"tls" json:"tls"`
}
func (*CloudConfig) Validate ¶
func (c *CloudConfig) Validate() error
type Config ¶
type Config struct {
service.Config `yaml:",inline"`
Log LogConfig `yaml:"log" json:"log"`
Cloud CloudConfig `yaml:"cloud" json:"cloud"`
Credential CredentialConfig `yaml:"credential" json:"credential"`
ThingDescription ThingDescriptionConfig `yaml:"thingDescription" json:"thingDescription"`
NumGeneratedBridgedDevices int `yaml:"numGeneratedBridgedDevices"`
NumResourcesPerDevice int `yaml:"numResourcesPerDevice"`
}
func LoadConfig ¶
type CredentialConfig ¶
type CredentialConfig struct {
Enabled bool `yaml:"enabled" json:"enabled" description:"enable credential manager"`
}
type TLSConfig ¶
type TLSConfig struct {
CAPoolPath string `yaml:"caPoolPath" json:"caPool" description:"file path to the root certificates in PEM format"`
KeyPath string `yaml:"keyPath" json:"keyFile" description:"file path to the private key in PEM format"`
CertPath string `yaml:"certPath" json:"certFile" description:"file path to the certificate in PEM format"`
UseSystemCAPool bool `yaml:"useSystemCAPool" json:"useSystemCaPool" description:"use system certification pool"`
}
type ThingDescriptionConfig ¶
Click to show internal directories.
Click to hide internal directories.