windowcontrol

package module
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README

tado-window-control

DeepSource

Cloud function to control the window state of a tado zone.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseWindow

func CloseWindow(w http.ResponseWriter, r *http.Request)

CloseWindow closes the window in the given tado° zone

Types

type SecretManager

type SecretManager struct {
	// contains filtered or unexported fields
}

SecretManager allows to access secrets

func NewSecretManager

func NewSecretManager(ctx context.Context) (*SecretManager, error)

NewSecretManager creates a new SecretManager object

func (*SecretManager) AccessSecret

func (sm *SecretManager) AccessSecret(ctx context.Context, projectID, secretName string) (string, error)

AccessSecret requests and returns a secret with the given name in the given project

type TadoWindowCloseAction

type TadoWindowCloseAction struct {
	Token    string `json:"token"`
	HomeName string `json:"home_name"`
	ZoneName string `json:"zone_name"`
}

TadoWindowCloseAction holds tado° zone in which a window was closed

Jump to

Keyboard shortcuts

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