Documentation ¶
Index ¶
- type CreateWireguardInterfaceParameters
- type CreateWireguardPeerParameters
- type DeleteWireguardInterfaceParameters
- type DeleteWireguardPeerParameters
- type GetWireguardInterfaceParameters
- type GetWireguardInterfaceResult
- type GetWireguardInterfacesResult
- type GetWireguardPeerParameters
- type GetWireguardPeerResult
- type GetWireguardPeersResult
- type GetWireguardStatusResult
- type UpdateWireguardInterfaceParameters
- type UpdateWireguardPeerParameters
- type VPN
- func (f *VPN) CreateWireguardInterface(ctx context.Context, params CreateWireguardInterfaceParameters) (struct{}, error)
- func (f *VPN) CreateWireguardPeer(ctx context.Context, params CreateWireguardPeerParameters) (struct{}, error)
- func (f *VPN) DeleteWireguardInterface(ctx context.Context, params DeleteWireguardInterfaceParameters) (struct{}, error)
- func (f *VPN) DeleteWireguardPeer(ctx context.Context, params DeleteWireguardPeerParameters) (struct{}, error)
- func (f *VPN) GetWireguardInterface(ctx context.Context, params GetWireguardInterfaceParameters) (GetWireguardInterfaceResult, error)
- func (f *VPN) GetWireguardInterfaces(ctx context.Context, params struct{}) (GetWireguardInterfacesResult, error)
- func (f *VPN) GetWireguardPeer(ctx context.Context, params GetWireguardPeerParameters) (GetWireguardPeerResult, error)
- func (f *VPN) GetWireguardPeers(ctx context.Context, params struct{}) (GetWireguardPeersResult, error)
- func (f *VPN) GetWireguardStatus(ctx context.Context, params struct{}) (GetWireguardStatusResult, error)
- func (f *VPN) UpdateWireguardInterface(ctx context.Context, params UpdateWireguardInterfaceParameters) (struct{}, error)
- func (f *VPN) UpdateWireguardPeer(ctx context.Context, params UpdateWireguardPeerParameters) (struct{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateWireguardInterfaceParameters ¶
type CreateWireguardInterfaceParameters struct { Name string `json:"name"` vpn.WireguardInterface }
type CreateWireguardPeerParameters ¶
type CreateWireguardPeerParameters struct { Name string `json:"name"` vpn.WireguardPeer }
type DeleteWireguardInterfaceParameters ¶
type DeleteWireguardInterfaceParameters struct {
Name string
}
type DeleteWireguardPeerParameters ¶
type DeleteWireguardPeerParameters struct {
Name string
}
type GetWireguardInterfaceParameters ¶
type GetWireguardInterfaceParameters struct {
ID string
}
type GetWireguardInterfaceResult ¶
type GetWireguardInterfaceResult struct { Name string `json:"name"` vpn.WireguardInterface }
type GetWireguardInterfacesResult ¶
type GetWireguardInterfacesResult struct {
Interfaces map[string]vpn.WireguardInterface
}
type GetWireguardPeerParameters ¶
type GetWireguardPeerParameters struct {
ID string
}
type GetWireguardPeerResult ¶
type GetWireguardPeerResult struct { Name string `json:"name"` vpn.WireguardPeer }
type GetWireguardPeersResult ¶
type GetWireguardPeersResult struct {
WireguardPeers map[string]vpn.WireguardPeer
}
type GetWireguardStatusResult ¶
type GetWireguardStatusResult struct {
Status string
}
type UpdateWireguardInterfaceParameters ¶
type UpdateWireguardInterfaceParameters struct { Name string vpn.WireguardInterface }
type UpdateWireguardPeerParameters ¶
type UpdateWireguardPeerParameters struct { Name string vpn.WireguardPeer }
type VPN ¶
type VPN struct { ConfigManager *config.ConfigManager DbusConn *dbus.Conn }
func (*VPN) CreateWireguardInterface ¶
func (f *VPN) CreateWireguardInterface(ctx context.Context, params CreateWireguardInterfaceParameters) (struct{}, error)
func (*VPN) CreateWireguardPeer ¶
func (f *VPN) CreateWireguardPeer(ctx context.Context, params CreateWireguardPeerParameters) (struct{}, error)
func (*VPN) DeleteWireguardInterface ¶
func (f *VPN) DeleteWireguardInterface(ctx context.Context, params DeleteWireguardInterfaceParameters) (struct{}, error)
func (*VPN) DeleteWireguardPeer ¶
func (f *VPN) DeleteWireguardPeer(ctx context.Context, params DeleteWireguardPeerParameters) (struct{}, error)
func (*VPN) GetWireguardInterface ¶
func (f *VPN) GetWireguardInterface(ctx context.Context, params GetWireguardInterfaceParameters) (GetWireguardInterfaceResult, error)
func (*VPN) GetWireguardInterfaces ¶
func (f *VPN) GetWireguardInterfaces(ctx context.Context, params struct{}) (GetWireguardInterfacesResult, error)
func (*VPN) GetWireguardPeer ¶
func (f *VPN) GetWireguardPeer(ctx context.Context, params GetWireguardPeerParameters) (GetWireguardPeerResult, error)
func (*VPN) GetWireguardPeers ¶
func (f *VPN) GetWireguardPeers(ctx context.Context, params struct{}) (GetWireguardPeersResult, error)
func (*VPN) GetWireguardStatus ¶
func (f *VPN) GetWireguardStatus(ctx context.Context, params struct{}) (GetWireguardStatusResult, error)
func (*VPN) UpdateWireguardInterface ¶
func (f *VPN) UpdateWireguardInterface(ctx context.Context, params UpdateWireguardInterfaceParameters) (struct{}, error)
func (*VPN) UpdateWireguardPeer ¶
func (f *VPN) UpdateWireguardPeer(ctx context.Context, params UpdateWireguardPeerParameters) (struct{}, error)
Click to show internal directories.
Click to hide internal directories.