Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) Call(method string, flags dbus.Flags, args ...interface{}) *dbus.Call
- func (c *Client) Connect() error
- func (c *Client) Disconnect()
- func (c *Client) GetProperties(props interface{}) error
- func (c *Client) GetProperty(p string) (dbus.Variant, error)
- func (c *Client) Register(path string, iface string) (chan *dbus.Signal, error)
- func (c *Client) Unregister(path string, iface string) error
- type Config
- type DeviceManager
- func (d *DeviceManager) Create(dev objects.DeviceDefinition) (objects.DeviceDefinition, error)
- func (d *DeviceManager) Delete(id string) (bool, error)
- func (d *DeviceManager) Find(q *objects.BaseQuery) ([]dbus.ObjectPath, error)
- func (d *DeviceManager) Read(id string) (*objects.DeviceDefinition, error)
- func (d *DeviceManager) Update(id string, dev objects.DeviceDefinition) (bool, error)
Constants ¶
View Source
const ( // SessionBus uses the session bus SessionBus = 0 // SystemBus uses the system bus SystemBus = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Config *Config // contains filtered or unexported fields }
Client implement a DBus client
func (*Client) GetProperties ¶
GetProperties load all the properties for an interface
func (*Client) GetProperty ¶
GetProperty return a property value
type DeviceManager ¶
type DeviceManager struct {
// contains filtered or unexported fields
}
DeviceManager client
func NewDeviceManager ¶
func NewDeviceManager() *DeviceManager
NewDeviceManager create a new DeviceManager client
func (*DeviceManager) Create ¶
func (d *DeviceManager) Create(dev objects.DeviceDefinition) (objects.DeviceDefinition, error)
Create a new device
func (*DeviceManager) Delete ¶
func (d *DeviceManager) Delete(id string) (bool, error)
Delete a device definition
func (*DeviceManager) Find ¶
func (d *DeviceManager) Find(q *objects.BaseQuery) ([]dbus.ObjectPath, error)
Find a list of device
func (*DeviceManager) Read ¶
func (d *DeviceManager) Read(id string) (*objects.DeviceDefinition, error)
Read a device definition
func (*DeviceManager) Update ¶
func (d *DeviceManager) Update(id string, dev objects.DeviceDefinition) (bool, error)
Update a device
Click to show internal directories.
Click to hide internal directories.