connmanupd

package
v0.0.0-...-36646aa Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoService = "no service"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Wired Ethernet
	WiFi  Wifi
}

func NewConf

func NewConf(path string) (*Conf, error)

func (*Conf) Install

func (c *Conf) Install(dir string) map[string]error

func (Conf) String

func (c Conf) String()

type Ethernet

type Ethernet struct {
	Valid   bool
	Enable  bool
	Name    string // Service name
	IPv4    IP4
	Connect string
}

func (Ethernet) String

func (e Ethernet) String() string

type IP4

type IP4 struct {
	Method  string // "off" | "dhcp" | "manual"
	Address string
	Netmask string
	Gateway string
}

func (IP4) String

func (ip4 IP4) String() string

type Security

type Security struct {
	Mode       string // "none" | "wep" | "psk" | "ieee8021x"
	Passphrase string
}

func (Security) String

func (s Security) String() string

type Wifi

type Wifi struct {
	Valid    bool
	Enable   bool
	Name     string // Network name (SSID)
	Tether   bool
	IPv4     IP4
	Security Security
	Connect  string // "auto" | "yes" | "no"
	Hidden   bool
}

func (Wifi) String

func (w Wifi) String() string

type WifiServiceFile

type WifiServiceFile struct {
	Name     string
	Tether   bool
	IPv4     IP4
	Security Security
}

func (WifiServiceFile) String

func (sf WifiServiceFile) String() string

Jump to

Keyboard shortcuts

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