v1alpha1

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

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 Context

type Context struct {
	Config *ConfigSpec
	Logger *zap.SugaredLogger
}

Context 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 MetadataSpec

type MetadataSpec struct {
	Name string `yaml:"name"`
}

MetadataSpec TODO

type PriceSpec

type PriceSpec struct {
	Zone string `yaml:"zone"`
}

PriceSpec 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 {
	Client  string `yaml:"client"`
	Address string `yaml:"address"`
	Auth    struct {
		Username string `yaml:"username" env:"TAPO_SMARTPLUG_USERNAME"`
		Password string `yaml:"password" env:"TAPO_SMARTPLUG_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" env:"WEBHOOK_USERNAME"`
		Password string `yaml:"password" env:"WEBHOOK_PASSWORD"`
	} `yaml:"auth"`
}

--

Jump to

Keyboard shortcuts

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