Documentation ¶
Index ¶
- type Manager
- func (m *Manager) Add(options ...types.DeviceOption) (*lm.RestDevice, error)
- func (m *Manager) Config() *config.Config
- func (m *Manager) DeleteByDisplayName(name string) error
- func (m *Manager) DeleteByID(id int32) error
- func (m *Manager) FindByDisplayName(name string) (*lm.RestDevice, error)
- func (m *Manager) GetListByGroupID(groupID int32) ([]lm.RestDevice, error)
- func (m *Manager) UpdateAndReplaceByDisplayName(name string, options ...types.DeviceOption) (*lm.RestDevice, error)
- func (m *Manager) UpdateAndReplaceByID(id int32, options ...types.DeviceOption) (*lm.RestDevice, error)
- func (m *Manager) UpdateAndReplaceFieldByDisplayName(name string, field string, options ...types.DeviceOption) (*lm.RestDevice, error)
- func (m *Manager) UpdateAndReplaceFieldByID(id int32, field string, options ...types.DeviceOption) (*lm.RestDevice, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct { *types.Base *builder.Builder ControllerClient api.CollectorSetControllerClient }
Manager implements types.DeviceManager
func (*Manager) Add ¶
func (m *Manager) Add(options ...types.DeviceOption) (*lm.RestDevice, error)
Add implements types.DeviceManager.
func (*Manager) DeleteByDisplayName ¶ added in v1.0.1
DeleteByDisplayName implements types.DeviceManager.
func (*Manager) DeleteByID ¶
DeleteByID implements types.DeviceManager.
func (*Manager) FindByDisplayName ¶
func (m *Manager) FindByDisplayName(name string) (*lm.RestDevice, error)
FindByDisplayName implements types.DeviceManager.
func (*Manager) GetListByGroupID ¶ added in v1.0.1
func (m *Manager) GetListByGroupID(groupID int32) ([]lm.RestDevice, error)
GetListByGroupID implements getting all the devices belongs to the group directly
func (*Manager) UpdateAndReplaceByDisplayName ¶ added in v1.0.1
func (m *Manager) UpdateAndReplaceByDisplayName(name string, options ...types.DeviceOption) (*lm.RestDevice, error)
UpdateAndReplaceByDisplayName implements types.DeviceManager.
func (*Manager) UpdateAndReplaceByID ¶
func (m *Manager) UpdateAndReplaceByID(id int32, options ...types.DeviceOption) (*lm.RestDevice, error)
UpdateAndReplaceByID implements types.DeviceManager.
func (*Manager) UpdateAndReplaceFieldByDisplayName ¶ added in v1.0.1
func (m *Manager) UpdateAndReplaceFieldByDisplayName(name string, field string, options ...types.DeviceOption) (*lm.RestDevice, error)
UpdateAndReplaceFieldByDisplayName implements types.DeviceManager.
func (*Manager) UpdateAndReplaceFieldByID ¶
func (m *Manager) UpdateAndReplaceFieldByID(id int32, field string, options ...types.DeviceOption) (*lm.RestDevice, error)
UpdateAndReplaceFieldByID implements types.DeviceManager.
Click to show internal directories.
Click to hide internal directories.