connman

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogAll int = iota
	LogDebug
	LogInfo
	LogError
	LogFatal
)
View Source
const (
	ManagerGetProperties   = "net.connman.Manager.GetProperties"
	ManagerSetProperty     = "net.connman.Manager.SetProperty"
	ManagerGetTechnologies = "net.connman.Manager.GetTechnologies"
	ManagerGetServices     = "net.connman.Manager.GetServices"
)
View Source
const (
	ServiceGetProperties = "net.connman.Service.GetProperties"
	ServiceSetProperty   = "net.connman.Service.SetProperty"
	ServiceConnect       = "net.connman.Service.Connect"
	ServiceDisconnect    = "net.connman.Service.Disconnect"
)
View Source
const (
	TechnologyGetProperties = "net.connman.Technology.GetProperties"
	TechnologySetProperty   = "net.connman.Technology.SetProperty"
	TechnologyScan          = "net.connman.Technology.Scan"
)

Variables

View Source
var (
	LogLevel             int      = LogError
	DisabledTechnologies []string = []string{}
)

Functions

func AddDisabledTechnology

func AddDisabledTechnology(typ string)

func DictStore

func DictStore(dict map[string]dbus.Variant, store reflect.Value) error

func Printf

func Printf(logLevel int, fmt string, args ...interface{})

Types

type Manager

type Manager struct {
	State        string
	OfflineMode  bool
	Technologies []techList
	Services     []servList
	WiFiName     string
	// contains filtered or unexported fields
}

func NewManager

func NewManager() (*Manager, error)

func (*Manager) GetProperties

func (m *Manager) GetProperties() error

func (*Manager) GetServiceId

func (m *Manager) GetServiceId(typ string, name string) (string, error)

func (*Manager) GetServices

func (m *Manager) GetServices() error

func (*Manager) GetTechnologies

func (m *Manager) GetTechnologies() error

type Server

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

func NewServer

func NewServer() (*Server, error)

type Service

type Service struct {
	Type        string
	Name        string
	Id          string
	State       string
	AutoConnect bool
	Nameservers []string
	Timeservers []string
	Domains     []string
	IPv4        ipv4
	IPv6        ipv6
	Security    []string
	// contains filtered or unexported fields
}

func NewService

func NewService(id string) (*Service, error)

func (*Service) Connect

func (s *Service) Connect() error

func (*Service) Disconnect

func (s *Service) Disconnect() error

func (*Service) GetProperties

func (s *Service) GetProperties() error

func (*Service) SetAutoConnect

func (s *Service) SetAutoConnect(value bool) error

func (*Service) SetIPv4

func (s *Service) SetIPv4(method string, addr string, mask string, gw string) error

type Technology

type Technology struct {
	Type                string
	Name                string
	Powered             bool
	Tethering           bool
	TetheringIdentifier string
	TetheringPassphrase string
	// contains filtered or unexported fields
}

func NewTechnology

func NewTechnology(ty string) (*Technology, error)

func (*Technology) GetProperties

func (t *Technology) GetProperties() error

func (*Technology) Scan

func (t *Technology) Scan() error

func (*Technology) SetPowered

func (t *Technology) SetPowered(power bool) error

func (*Technology) SetTethering

func (t *Technology) SetTethering(tether bool) error

func (*Technology) SetTetheringParameters

func (t *Technology) SetTetheringParameters(id string, pwd string) error

Jump to

Keyboard shortcuts

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