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 ¶
Functions ¶
This section is empty.
Types ¶
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.