Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Credentials struct { HostName string DeviceID string // contains filtered or unexported fields }
Credentials contains all the required credentials to access iothub from a device's prospective.
func ParseConnectionString ¶
func ParseConnectionString(cs string) (*Credentials, error)
ParseConnectionString parses the given string into a Credentials struct. If you use a shared access policy DeviceId is needed to be added manually.
func (*Credentials) GenerateToken ¶
GenerateToken generates a SAS token for the given uri and duration.
Click to show internal directories.
Click to hide internal directories.