Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { NewClient(monitorService *monitors.MonitorService) (Client, error) Config() string Save(path, prefix string) (string, error) }
func NewConfigFromTarget ¶
func NewConfigFromTarget(configData ConfigData) (Config, error)
initialize the vpn client configuration
type ConfigData ¶
func NewVPNConfigData ¶
func NewVPNConfigData(service Service) (ConfigData, error)
retrieve vpn configuration from the target
type Service ¶
type Service interface { Connect() (*ServiceConfig, error) Disconnect() error GetSpaceNode() userspace.SpaceNode }
type ServiceConfig ¶
type WGCtrlClient ¶
type WGCtrlClient struct {
// contains filtered or unexported fields
}
func NewWireguardCtrlClient ¶
func NewWireguardCtrlClient(ifaceName string) (*WGCtrlClient, error)
func (*WGCtrlClient) BytesTransmitted ¶
func (wgcc *WGCtrlClient) BytesTransmitted() (int64, int64, error)
func (*WGCtrlClient) PublicKey ¶
func (wgcc *WGCtrlClient) PublicKey() (string, error)
func (*WGCtrlClient) StatusText ¶
func (wgcc *WGCtrlClient) StatusText() (string, error)
type WGCtrlService ¶
type WGCtrlService struct {
// contains filtered or unexported fields
}
func NewWireguardCtrlService ¶
func NewWireguardCtrlService( ifaceName string, device *device.Device, ) *WGCtrlService
func (*WGCtrlService) Start ¶
func (wgcs *WGCtrlService) Start() error
func (*WGCtrlService) Stop ¶
func (wgcs *WGCtrlService) Stop() error
Click to show internal directories.
Click to hide internal directories.