qrcode_for_nm_connection

package
v0.0.0-...-d7d14cc Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressQR

func CompressQR(in string) string

func NetworkCode

func NetworkCode(ns NetworkSetting) string

func QRNetworkCode

func QRNetworkCode(ns NetworkSetting) (qrcode.QRCode, error)

Types

type NetworkSetting

type NetworkSetting struct {
	Ssid     []byte
	Id       string
	Sec      string // WPA or WEP
	IsPsk    bool
	IsHidden bool
	Key      string
	DbusId   int
}

func GetNetworkSettings

func GetNetworkSettings(settingsId int, conn *dbus.Conn) (NetworkSetting, error)

func NewNetworkSetting

func NewNetworkSetting(callbody interface{}) (NetworkSetting, error)

func (*NetworkSetting) AddNetworkSecrets

func (ns *NetworkSetting) AddNetworkSecrets(callbody interface{}) error

Jump to

Keyboard shortcuts

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