wgrepo

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WireGuardRepo

type WireGuardRepo struct {
	// contains filtered or unexported fields
}

func New

func New(params *WireGuardRepoParams) *WireGuardRepo

func (*WireGuardRepo) AddServerPeer

func (wg *WireGuardRepo) AddServerPeer(ctx context.Context, client *wgtypes.ServerPeer) (err error)

func (*WireGuardRepo) GetPeerStats

func (*WireGuardRepo) GetPeerStats(ctx context.Context) (stats map[wgtypes.Key]entity.WireGuardPeerStats, err error)

func (*WireGuardRepo) LoadServerConfig

func (wg *WireGuardRepo) LoadServerConfig(ctx context.Context, cfg *wgtypes.ServerConfig) (err error)

func (*WireGuardRepo) ReloadServer

func (wg *WireGuardRepo) ReloadServer(ctx context.Context) (err error)

func (*WireGuardRepo) RemoveServerPeer

func (wg *WireGuardRepo) RemoveServerPeer(ctx context.Context, name string) (err error)

func (*WireGuardRepo) StartServer

func (wg *WireGuardRepo) StartServer(ctx context.Context) (err error)

func (*WireGuardRepo) StopServer

func (wg *WireGuardRepo) StopServer(ctx context.Context) (err error)

func (*WireGuardRepo) WriteServerConfig

func (wg *WireGuardRepo) WriteServerConfig(ctx context.Context) (err error)

type WireGuardRepoParams

type WireGuardRepoParams struct {
	Logger zerolog.Logger

	Path string
}

Jump to

Keyboard shortcuts

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