cloud/

directory
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: Apache-2.0

README

To integrate with Google Home, we need a cloud service.

Command farm

Server

bazel run --run_under="cd $PWD &&" //cmd/queueserver -- --alsologtostderr --alsologtostderr --server-cert secrets/server-cert.pem --server-private-key secrets/server-key.pem  --client-ca-cert secrets/client-signer-cert-authority-cert.pem

Client

bazel run --run_under="cd $PWD &&" //cmd/cloud-listener -- --alsologtostderr --client-cert secrets/client-cert.pem --client-private-key secrets/client-key.pem --command-queue-addr "0.0.0.0:8083" --server-ca-cert secrets/server-ca-cert.pem

Debug: Send a message

gcloud pubsub topics publish iot-commands --message "hello there again" --attribute user-id=redshouse

Directories

Path Synopsis
Package acls is the main library used by cloud services to authenticate clients and check that they have access to named resources.
Package acls is the main library used by cloud services to authenticate clients and check that they have access to named resources.
deviceauth
Package deviceauth is a library for obtaining credentials on an IoT device for authenticating with some of the cloud services like StateService and CommandQueueService.
Package deviceauth is a library for obtaining credentials on an IoT device for authenticating with some of the cloud services like StateService and CommandQueueService.
server2serverauth
Package server2serverauth is used for sending gRPC requests between Google Cloud hosted services (like Cloud Run instances).
Package server2serverauth is used for sending gRPC requests between Google Cloud hosted services (like Cloud Run instances).
cmd
google
server/fulfilment
Package fulfillment implements a server that responds to Google Smart Home "fulfilment" requests.
Package fulfillment implements a server that responds to Google Smart Home "fulfilment" requests.
Package httpendpoint is an OAuth 2 server for operating a home's fan coil units using Google Asistant.
Package httpendpoint is an OAuth 2 server for operating a home's fan coil units using Google Asistant.
queue
queueclient
Package queueclient provides a rich client library wrapping the gRPC client for CommandQueueService.
Package queueclient provides a rich client library wrapping the gRPC client for CommandQueueService.
queueserver
Package queueserver implements a gRPC service run on a (cloud) server that relays Pub/Sub messages to IoT devices.
Package queueserver implements a gRPC service run on a (cloud) server that relays Pub/Sub messages to IoT devices.
Package secrets is a utility library for retrieving secrets from Google Secret Manager.
Package secrets is a utility library for retrieving secrets from Google Secret Manager.
Package stateservice implements a centralized IoT device state storage service.
Package stateservice implements a centralized IoT device state storage service.

Jump to

Keyboard shortcuts

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