Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type Connection
- type ConnectionList
- func (datas ConnectionList) Check() error
- func (datas ConnectionList) Diff(list ConnectionList) ConnectionList
- func (datas ConnectionList) Exists(data *Connection) bool
- func (datas ConnectionList) Get(ty, filename string) *Connection
- func (datas ConnectionList) Len() int
- func (datas ConnectionList) Less(i, j int) bool
- func (datas ConnectionList) Swap(i, j int)
- type Interface
- type NetworkData
Constants ¶
View Source
const (
ConnTypeWIFI = "wifi"
)
Variables ¶
View Source
var (
ErrConnUnsupportedType = errors.New("unsupported connection type")
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func NewConfig ¶
func NewConfig(name string, core Interface, sessionSigLoop *dbusutil.SignalLoop, path dbus.ObjectPath, logger *log.Logger) *Config
func (*Config) GetExportedMethods ¶
func (v *Config) GetExportedMethods() dbusutil.ExportedMethods
func (*Config) GetInterfaceName ¶
type Connection ¶
type Connection struct { Type string `json:"type"` Filename string `json:"filename"` Contents []byte `json:"contents"` }
func (*Connection) Check ¶
func (data *Connection) Check() error
func (*Connection) Equal ¶
func (data *Connection) Equal(info *Connection) bool
func (*Connection) RemoveFile ¶
func (data *Connection) RemoveFile(dir string) error
func (*Connection) WriteFile ¶
func (data *Connection) WriteFile(dir string) error
type ConnectionList ¶
type ConnectionList []*Connection
func (ConnectionList) Check ¶
func (datas ConnectionList) Check() error
func (ConnectionList) Diff ¶
func (datas ConnectionList) Diff(list ConnectionList) ConnectionList
func (ConnectionList) Exists ¶
func (datas ConnectionList) Exists(data *Connection) bool
func (ConnectionList) Get ¶
func (datas ConnectionList) Get(ty, filename string) *Connection
func (ConnectionList) Len ¶
func (datas ConnectionList) Len() int
func (ConnectionList) Less ¶
func (datas ConnectionList) Less(i, j int) bool
func (ConnectionList) Swap ¶
func (datas ConnectionList) Swap(i, j int)
type NetworkData ¶
type NetworkData struct { Version string `json:"version"` Connections ConnectionList `json:"connections"` }
Click to show internal directories.
Click to hide internal directories.