Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
func ParseVPNConnectionList ¶
func ParseVPNConnectionList(nmcliConShowOutput string) []Connection
type NetworkManager ¶
type NetworkManager interface { ListConnections() ([]Connection, error) SetConnection(conn Connection) error }
type NmcliClient ¶
type NmcliClient struct{}
func (*NmcliClient) ListConnections ¶
func (*NmcliClient) ListConnections() ([]Connection, error)
func (*NmcliClient) SetConnection ¶
func (*NmcliClient) SetConnection(conn Connection) error
type VpnConnectionManager ¶
type VpnConnectionManager struct { NetworkManager NetworkManager *mux.Router }
func NewAPI ¶
func NewAPI(netManager NetworkManager) *VpnConnectionManager
Click to show internal directories.
Click to hide internal directories.