Documentation
¶
Index ¶
- func Create(opts *Options) (int32, error)
- func DeleteSubGroup(deviceGroup *models.DeviceGroup, name string, client *client.LMSdkGo) error
- func Exists(parentID int32, name string, client *client.LMSdkGo) bool
- func ExistsByID(groupID int32, client *client.LMSdkGo) bool
- func Find(parentID int32, name string, client *client.LMSdkGo) (*models.DeviceGroup, error)
- type AppliesToBuilder
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteSubGroup ¶
DeleteSubGroup deletes a subgroup from a device group with the specified name.
func Exists ¶ added in v1.0.1
Exists returns true if the specified device group exists in the account
func ExistsByID ¶ added in v1.0.1
ExistsByID returns true if we could get the group by id
Types ¶
type AppliesToBuilder ¶
type AppliesToBuilder interface {
HasCategory(string) AppliesToBuilder
Auto(string) AppliesToBuilder
And() AppliesToBuilder
Or() AppliesToBuilder
Equals(string) AppliesToBuilder
String() string
}
AppliesToBuilder is an interface for building an appliesTo string.
func NewAppliesToBuilder ¶
func NewAppliesToBuilder() AppliesToBuilder
NewAppliesToBuilder is the builder for appliesTo.
type Options ¶
type Options struct {
AppliesTo AppliesToBuilder
AppliesToDeletedGroup AppliesToBuilder
Client *client.LMSdkGo
Name string
ParentID int32
DisableAlerting bool
DeleteDevices bool
}
Options are the options for creating a device group.
Click to show internal directories.
Click to hide internal directories.