device

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2019 License: MPL-2.0 Imports: 10 Imported by: 5

Documentation

Index

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) Config

func (m *Manager) Config() *config.Config

Config implements types.DeviceManager.

func (*Manager) DeleteByDisplayName added in v1.0.1

func (m *Manager) DeleteByDisplayName(name string) error

DeleteByDisplayName implements types.DeviceManager.

func (*Manager) DeleteByID

func (m *Manager) DeleteByID(id int32) error

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL