Versions in this module Expand all Collapse all v0 v0.1.0 May 7, 2021 Changes in this version + func GetTimeMethod() (string, error) + func RegisterAgent(a *Agent) error + func SetAutoTime() error + func SetManualTime(c Clock) error + func UnregisterAgent(a *Agent) error + type Agent struct + Interface string + Name string + Passphrase string + Path dbus.ObjectPath + func NewAgent(psk string) *Agent + func (a *Agent) Destroy() error + func (a *Agent) ReportError(service dbus.ObjectPath, err string) *dbus.Error + func (a *Agent) RequestInput(service dbus.ObjectPath, rq map[string]dbus.Variant) (map[string]dbus.Variant, *dbus.Error) + type Clock struct + Day int + Hours int + Method string + Minutes int + Month int + Year int + func GetTime() *Clock + func (c *Clock) FromTime(t time.Time) + func (c *Clock) Parse(hours, mins, year, month, day string) error + func (c *Clock) ToTime() (time.Time, error) + type DBusInterface struct + Connection *dbus.Conn + Interface string + Object dbus.BusObject + 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) + func (db *DBusInterface) Call(name string, args ...interface{}) ([]interface{}, error) + func (db *DBusInterface) Done() error + func (db *DBusInterface) Get(name string) (interface{}, error) + func (db *DBusInterface) Set(name string, value interface{}) error + type EthConfig struct + Address string + Interface string + MTU uint16 + Method string + type IPv4Config struct + Address string + Gateway string + Method string + Netmask string + type IPv6Config struct + Address string + Gateway string + Method string + PrefixLength uint8 + Privacy string + type Provider struct + Domain string + Host string + Name string + Type string + type ProxyConfig struct + Excludes []string + Method string + Servers []string + URL string + type Service struct + AutoConnect bool + Domains []string + DomainsConfiguration []string + Error string + Ethernet EthConfig + Favorite bool + IPv4 IPv4Config + IPv4Configuration IPv4Config + IPv6 IPv6Config + IPv6Configuration IPv6Config + Immutable bool + Name string + Nameservers []string + NameserversConfiguration []string + Path dbus.ObjectPath + Provider Provider + Proxy ProxyConfig + ProxyConfiguration ProxyConfig + Roaming bool + Security []string + State string + Strength uint8 + Timeservers []string + TimeserversConfiguration []string + Type string + func GetServices() ([]*Service, error) + func (s *Service) ApplyDNS() error + func (s *Service) ApplyIP() error + func (s *Service) Connect(psk string) error + func (s *Service) Disconnect() error + type Technology struct + Connected bool + Name string + Path dbus.ObjectPath + Powered bool + Tethering bool + Type string + func GetTechnologies() ([]*Technology, error) + func (t *Technology) Disable() error + func (t *Technology) Enable() error + func (t *Technology) Scan() error