Documentation ¶
Index ¶
- func GetTimeMethod() (string, error)
- func RegisterAgent(a *Agent) error
- func SetAutoTime() error
- func SetManualTime(c Clock) error
- func UnregisterAgent(a *Agent) error
- type Agent
- type Clock
- type DBusInterface
- func DBus(service string, path dbus.ObjectPath, ifname string) (*DBusInterface, error)
- func DBusClock() (*DBusInterface, error)
- func DBusManager() (*DBusInterface, error)
- func DBusService(svc dbus.ObjectPath) (*DBusInterface, error)
- func DBusTechnology(tech dbus.ObjectPath) (*DBusInterface, error)
- func DBusWifi() (*DBusInterface, error)
- type EthConfig
- type IPv4Config
- type IPv6Config
- type Provider
- type ProxyConfig
- type Service
- type Technology
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTimeMethod ¶
func RegisterAgent ¶
func SetAutoTime ¶
func SetAutoTime() error
func SetManualTime ¶
func UnregisterAgent ¶
Types ¶
type Agent ¶
type Agent struct { Name string Path dbus.ObjectPath Interface string Passphrase string }
func (*Agent) ReportError ¶
type Clock ¶
type DBusInterface ¶
func DBus ¶
func DBus(service string, path dbus.ObjectPath, ifname string) (*DBusInterface, error)
func DBusClock ¶
func DBusClock() (*DBusInterface, error)
func DBusManager ¶
func DBusManager() (*DBusInterface, error)
func DBusService ¶
func DBusService(svc dbus.ObjectPath) (*DBusInterface, error)
func DBusTechnology ¶
func DBusTechnology(tech dbus.ObjectPath) (*DBusInterface, error)
func DBusWifi ¶
func DBusWifi() (*DBusInterface, error)
func (*DBusInterface) Call ¶
func (db *DBusInterface) Call(name string, args ...interface{}) ([]interface{}, error)
func (*DBusInterface) Done ¶
func (db *DBusInterface) Done() error
func (*DBusInterface) Get ¶
func (db *DBusInterface) Get(name string) (interface{}, error)
func (*DBusInterface) Set ¶
func (db *DBusInterface) Set(name string, value interface{}) error
type IPv4Config ¶
type IPv6Config ¶
type ProxyConfig ¶
type Service ¶
type Service struct { Path dbus.ObjectPath Name string Type string State string Error string Security []string Strength uint8 Favorite bool AutoConnect bool Immutable bool Roaming bool Ethernet EthConfig IPv4 IPv4Config IPv4Configuration IPv4Config IPv6 IPv6Config IPv6Configuration IPv6Config Proxy ProxyConfig ProxyConfiguration ProxyConfig Provider Provider Domains []string DomainsConfiguration []string Nameservers []string NameserversConfiguration []string Timeservers []string TimeserversConfiguration []string }
func GetServices ¶
func (*Service) Disconnect ¶
type Technology ¶
type Technology struct { Path dbus.ObjectPath Name string Type string Powered bool Connected bool Tethering bool }
func GetTechnologies ¶
func GetTechnologies() ([]*Technology, error)
func (*Technology) Disable ¶
func (t *Technology) Disable() error
func (*Technology) Enable ¶
func (t *Technology) Enable() error
func (*Technology) Scan ¶
func (t *Technology) Scan() error
Click to show internal directories.
Click to hide internal directories.