vpn

package
v0.0.0-...-e749f68 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL