Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for device alias lookups #419

Merged
merged 1 commit into from
May 1, 2019
Merged

Conversation

edaniszewski
Copy link
Contributor

fixes #414

adds an AliasCache to the device manager. When devices are registered with the manager, it maps tha alias to the device.

When resolving a device via Selector, it will check if the specified ID corresponds to a device. If not, it will try to use that ID as the alias key for lookups. This means anything calling the gRPC API can use device ID / device alias interchangeably.

@edaniszewski edaniszewski merged commit 96f9fce into v3/staging May 1, 2019
@edaniszewski edaniszewski deleted the v3/alias-lookup branch May 1, 2019 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant