Documentation
¶
Index ¶
- func CreateTags(ctx context.Context, params *CreateTagsParams, cred *config.Credentials) error
- func DeleteTags(ctx context.Context, params *DeleteTagsParams, cred *config.Credentials) error
- func TagsInfo(tags map[string]interface{}) ([]string, error)
- type CreateTagsParams
- type DeleteTagsParams
- type ResourceType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTags ¶
func CreateTags(ctx context.Context, params *CreateTagsParams, cred *config.Credentials) error
CreateTags allows to create or overwrite tags on a resource of Arduino IoT Cloud.
func DeleteTags ¶
func DeleteTags(ctx context.Context, params *DeleteTagsParams, cred *config.Credentials) error
DeleteTags command is used to delete tags of a device from Arduino IoT Cloud.
Types ¶
type CreateTagsParams ¶
type CreateTagsParams struct { ID string // Resource ID Tags map[string]string // Map of tags to create Resource ResourceType }
CreateTagsParams contains the parameters needed to create or overwrite tags on a resource of Arduino IoT Cloud.
type DeleteTagsParams ¶
type DeleteTagsParams struct { ID string Keys []string // Keys of tags to delete Resource ResourceType }
DeleteTagsParams contains the parameters needed to delete tags of a device from Arduino IoT Cloud.
type ResourceType ¶
type ResourceType int
ResourceType specifies which resource the tag command refers to. Valid resources are the entities of the cloud that have a 'tags' field.
const ( None ResourceType = iota Device Thing )
Click to show internal directories.
Click to hide internal directories.