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 {
Service string
Path dbus.ObjectPath
Interface string
Name 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 `json:"path,omitempty"`
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
State string `json:"state,omitempty"`
Error string `json:"error,omitempty"`
Security []string `json:"security,omitempty"`
Strength uint8 `json:"strength,omitempty"`
Favorite bool `json:"favorite"`
AutoConnect bool `json:"autoconnect"`
Immutable bool `json:"immutable"`
Roaming bool `json:"roaming"`
Ethernet EthConfig `json:"ethernet,omitempty"`
IPv4 IPv4Config `json:"ipv4,omitempty"`
IPv4Configuration IPv4Config `json:"ipv4_configuration,omitempty"`
IPv6 IPv6Config `json:"ipv6,omitempty"`
IPv6Configuration IPv6Config `json:"ipv6_configuration,omitempty"`
Proxy ProxyConfig `json:"proxy,omitempty"`
ProxyConfiguration ProxyConfig `json:"proxy_configuration,omitempty"`
Provider Provider `json:"provider,omitempty"`
Domains []string `json:"domains,omitempty"`
DomainsConfiguration []string `json:"domains_configuration,omitempty"`
Nameservers []string `json:"nameservers,omitempty"`
NameserversConfiguration []string `json:"nameservers_configuration,omitempty"`
Timeservers []string `json:"timeservers,omitempty"`
TimeserversConfiguration []string `json:"timeservers_configuration,omitempty"`
MDNS bool `dbus:"mDNS" json:"mdns"`
MDNSConfiguration bool `dbus:"mDNSConfiguration" json:"mdns_configuration"`
}
func GetServices ¶
func (*Service) Disconnect ¶
type Technology ¶
type Technology struct {
Path dbus.ObjectPath `json:"path"`
Name string `json:"name"`
Type string `json:"type"`
Powered bool `json:"powered"`
Connected bool `json:"connected"`
Tethering bool `json:"tethering"`
TetheringIdentifier string `json:"tethering_identifier,omitempty"`
TetheringPassphrase string `json:"tethering_passphrase,omitempty"`
}
func GetTechnologies ¶
func GetTechnologies() ([]*Technology, error)
func (*Technology) Disable ¶
func (t *Technology) Disable() error
func (*Technology) DisableTethering ¶
func (t *Technology) DisableTethering() error
func (*Technology) Enable ¶
func (t *Technology) Enable() error
func (*Technology) EnableTethering ¶
func (t *Technology) EnableTethering(ssid string, psk string) error
func (*Technology) Scan ¶
func (t *Technology) Scan() error
Click to show internal directories.
Click to hide internal directories.