Documentation
¶
Index ¶
- Variables
- type Interface
- type Manager
- func (m *Manager) AddInterface(id string) error
- func (m *Manager) DeleteInterface(id string) error
- func (m *Manager) FetchInterfaces() (map[string]Interface, error)
- func (m *Manager) LoadInterfacesFromFile() (*VPNInterfaces, error)
- func (m *Manager) LookupTracked(name string) (Interface, bool)
- func (m *Manager) LookupTrackedType(name string) (string, bool)
- func (m *Manager) SystemNameResolver() func(id string) (string, error)
- type VPNInterfaces
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInterfaceDown = errors.New("interface has no address; is the VPN connection up?")
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface struct {
Type string `json:"type" yaml:"type"`
State string `json:"state" yaml:"status"`
Description string `json:"description" yaml:"description"`
SystemName string `json:"system_name" yaml:"system_name"`
DefaultGW bool `json:"defaultgw" yaml:"defaultgw"`
Global bool `json:"global" yaml:"global"`
Address string `json:"address" yaml:"address"`
}
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewInterfaceManager ¶
func (*Manager) AddInterface ¶
func (*Manager) DeleteInterface ¶
func (*Manager) LoadInterfacesFromFile ¶
func (m *Manager) LoadInterfacesFromFile() (*VPNInterfaces, error)
type VPNInterfaces ¶
Click to show internal directories.
Click to hide internal directories.