-
-
Notifications
You must be signed in to change notification settings - Fork 4
Add create/delete commands for device/thing tags [IOT-1481] #53
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added just some suggestions for minor improvements, overall it's ok for me.
Kudos for command/tag
, it's great! 😁
|
||
// CreateTags allows to create or overwrite tags | ||
// on a resource of Arduino IoT Cloud | ||
func CreateTags(params *CreateTagsParams) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could add a validation of params.Resource
here so that if it doesn't have a valid value we avoid loading the configuration and instantiating the iot client for nothing.
What do you think?
Co-authored-by: Giuseppe Lumia <[email protected]>
Introduce tags for things and devices. Implements the following commands: - device create-tags - device delete-tags - thing create-tags - thing delete-tags
Introduce tags for things and devices. Implements the following commands: - device create-tags - device delete-tags - thing create-tags - thing delete-tags
Motivation
As per #48 we want to introduce tags for things and devices. This pr implements the create and delete commands for both thing and device tags
Change description
Add commands:
Additional Notes
Reviewer checklist
main
.CONTRIBUTING.md
) and are well formatted.