Documentation ¶
Overview ¶
Package deviceauth is a library for obtaining credentials on an IoT device for authenticating with some of the cloud services like StateService and CommandQueueService.
Index ¶
Constants ¶
View Source
const DeviceAccessTokenMetadataKey = "heatpump-device-access-token"
DeviceAccessTokenMetadataKey is the gRPC metadata key used to provide a device access token identity secret to the server.
Variables ¶
This section is empty.
Functions ¶
func LoadTLSCredentials ¶
func LoadTLSCredentials(flags *Flags) (credentials.TransportCredentials, error)
LoadTLSCredentials returns the standard transport credentials for connecting to a TLS server.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddDeviceAuthTokenToContext ¶
AddDeviceAuthTokenToContext returns a new context with a device auth token in the metadata.
func (*Client) GracefulStop ¶
func (c *Client) GracefulStop()
GracefulStop attempts to gracefully shut down the server.
Click to show internal directories.
Click to hide internal directories.