Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigSpec ¶
type ConfigSpec struct { ApiVersion string `yaml:"apiVersion"` Kind string `yaml:"kind"` Metadata MetadataSpec `yaml:"metadata"` Spec SpecificationSpec `yaml:"spec"` }
ConfigSpec TODO
type CoordinatesSpec ¶
type CoordinatesSpec struct { Latitude float64 `yaml:"latitude"` Longitude float64 `yaml:"longitude"` }
CoordinatesSpec TODO
type DeviceSpec ¶
type DeviceSpec struct { Type string `yaml:"type"` ActiveHours int `yaml:"activeHours"` Integrations IntegrationsSpec `yaml:"integrations"` }
DeviceSpec TODO
type GlobalSpec ¶
type GlobalSpec struct {
IgnorePassedHours bool `yaml:"ignorePassedHours,omitempty"`
}
GlobalSpec TODO
type IntegrationsSpec ¶
type IntegrationsSpec struct { // TODO TapoSmartPlug TapoSmartPlugSpec `yaml:"tapoSmartPlug,omitempty"` // TODO Webhook WebhookSpec `yaml:"webhook,omitempty"` }
IntegrationsSpec TODO
type SpecificationSpec ¶
type SpecificationSpec struct { Global GlobalSpec `yaml:"global"` Device DeviceSpec `yaml:"device"` Weather WeatherSpec `yaml:"weather"` Price PriceSpec `yaml:"price"` }
SpecificationSpec TODO
type TapoSmartPlugSpec ¶
type TapoSmartPlugSpec struct { Address string `yaml:"address"` Auth struct { Username string `yaml:"username"` Password string `yaml:"password"` } `yaml:"auth"` }
--
type TemperatureSpec ¶
type TemperatureSpec struct { Type string `yaml:"type"` Unit string `yaml:"unit"` Threshold int `yaml:"threshold"` }
TemperatureSpec TODO
type WeatherSpec ¶
type WeatherSpec struct { Enabled bool `yaml:"enabled"` Coordinates CoordinatesSpec `yaml:"coordinates,omitempty"` Temperature TemperatureSpec `yaml:"temperature,omitempty"` }
WeatherSpec TODO
type WebhookSpec ¶
type WebhookSpec struct { URL string `yaml:"url"` Auth struct { Username string `yaml:"username"` Password string `yaml:"password"` } `yaml:"auth"` }
--
Click to show internal directories.
Click to hide internal directories.