ui

package
v0.0.0-...-2269899 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBusProxy

type DBusProxy struct {
	// contains filtered or unexported fields
}

DBusProxy is a UIProxy for a UI with DBus capabilities.

func NewDBusProxy

func NewDBusProxy(ftype api.InterfaceType) (*DBusProxy, error)

NewDBusProxy returns a new dbus proxy.

func (*DBusProxy) Close

func (dbp *DBusProxy) Close()

Close closes the dbus proxy.

func (*DBusProxy) Serve

func (dbp *DBusProxy) Serve(frontend *api.FrontendClient) error

Serve starts the dbus proxy for the given frontend.

func (*DBusProxy) WirelessConnect

func (dbp *DBusProxy) WirelessConnect(msg string) (int32, *dbus.Error)

WirelessConnect provides a DBus method to netctlfront.WirelessConnect.

func (*DBusProxy) WirelessConnectWithSaved

func (dbp *DBusProxy) WirelessConnectWithSaved(ssid string) (bool, *dbus.Error)

WirelessConnectWithSaved provides a DBus method to netctlfront.WirelessConnectWithSaved.

func (*DBusProxy) WirelessDisconnect

func (dbp *DBusProxy) WirelessDisconnect() *dbus.Error

WirelessDisconnect provides a DBus method to netctlfront.WirelessDisconnect.

func (*DBusProxy) WirelessGetProperties

func (dbp *DBusProxy) WirelessGetProperties() (string, *dbus.Error)

WirelessGetProperties provies a DBus method to netctlfront.WirelessGetProperties.

type Proxy

type Proxy interface {
	Serve(client *api.FrontendClient) error
	Close()
}

Proxy acts as a proxy between some UI and a netctl frontend.

Jump to

Keyboard shortcuts

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