wg

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a basic wireguard client.

func (*Client) CaddyModule

func (*Client) CaddyModule() caddy.ModuleInfo

func (*Client) Cleanup

func (c *Client) Cleanup() error

func (*Client) MarshalJSON

func (c *Client) MarshalJSON() ([]byte, error)

func (*Client) Networks

func (c *Client) Networks() map[string]pointc.Net

func (*Client) Provision

func (c *Client) Provision(ctx caddy.Context) (err error)

func (*Client) UnmarshalJSON

func (c *Client) UnmarshalJSON(bytes []byte) error

type PresharedKey

PresharedKey is a wireguard preshared key in base64 format.

type PrivateKey

PrivateKey is a wireguard private key in base64 format.

type PublicKey

type PublicKey = configvalues.CaddyTextUnmarshaler[wgapi.PublicKey, valueKey[wgapi.PublicKey], *valueKey[wgapi.PublicKey]]

PublicKey is a wireguard public key in base64 format.

type Server

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

Server is a basic wireguard server.

func (*Server) CaddyModule

func (*Server) CaddyModule() caddy.ModuleInfo

func (*Server) Cleanup

func (c *Server) Cleanup() error

func (*Server) MarshalJSON

func (c *Server) MarshalJSON() ([]byte, error)

func (*Server) Networks

func (c *Server) Networks() map[string]pointc.Net

func (*Server) Provision

func (c *Server) Provision(ctx caddy.Context) (err error)

func (*Server) UnmarshalJSON

func (c *Server) UnmarshalJSON(bytes []byte) error

Jump to

Keyboard shortcuts

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