Documentation ¶
Index ¶
- type WireGuardContainer
- func (c *WireGuardContainer) CreateDevice(ctx echo.Context) error
- func (c *WireGuardContainer) CreateDevicePeer(ctx echo.Context) error
- func (c *WireGuardContainer) DeleteDevice(ctx echo.Context) error
- func (c *WireGuardContainer) DeleteDevicePeer(ctx echo.Context) error
- func (c *WireGuardContainer) GetDevice(ctx echo.Context) error
- func (c *WireGuardContainer) GetDeviceOptions(ctx echo.Context) error
- func (c *WireGuardContainer) GetDevicePeer(ctx echo.Context) error
- func (c *WireGuardContainer) GetDevicePeerQuickConfig(ctx echo.Context) error
- func (c *WireGuardContainer) GetDevicePeerQuickConfigQRCodePNG(ctx echo.Context) error
- func (c *WireGuardContainer) ListDevicePeers(ctx echo.Context) error
- func (c *WireGuardContainer) ListDevices(ctx echo.Context) error
- func (c *WireGuardContainer) UpdateDevice(ctx echo.Context) error
- func (c *WireGuardContainer) UpdateDeviceOptions(ctx echo.Context) error
- func (c *WireGuardContainer) UpdateDevicePeer(ctx echo.Context) error
- type WireGuardContainerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WireGuardContainer ¶
type WireGuardContainer struct {
// contains filtered or unexported fields
}
WireGuardContainer will hold all dependencies for your application.
func NewWireGuardContainer ¶
func NewWireGuardContainer(options WireGuardContainerOptions) (WireGuardContainer, error)
NewWireGuardContainer returns an empty or an initialized container for your handlers.
func (*WireGuardContainer) CreateDevice ¶
func (c *WireGuardContainer) CreateDevice(ctx echo.Context) error
CreateDevice - Create new device @todo: need to be implemented
func (*WireGuardContainer) CreateDevicePeer ¶
func (c *WireGuardContainer) CreateDevicePeer(ctx echo.Context) error
CreateDevicePeer - Create new device peer
func (*WireGuardContainer) DeleteDevice ¶
func (c *WireGuardContainer) DeleteDevice(ctx echo.Context) error
DeleteDevice - Delete Device @todo: need to be implemented
func (*WireGuardContainer) DeleteDevicePeer ¶
func (c *WireGuardContainer) DeleteDevicePeer(ctx echo.Context) error
DeleteDevicePeer - Delete device's peer
func (*WireGuardContainer) GetDevice ¶
func (c *WireGuardContainer) GetDevice(ctx echo.Context) error
GetDevice - Get device info
func (*WireGuardContainer) GetDeviceOptions ¶
func (c *WireGuardContainer) GetDeviceOptions(ctx echo.Context) error
GetDeviceOptions - Get device options
func (*WireGuardContainer) GetDevicePeer ¶
func (c *WireGuardContainer) GetDevicePeer(ctx echo.Context) error
GetDevicePeer - Get device peer info
func (*WireGuardContainer) GetDevicePeerQuickConfig ¶
func (c *WireGuardContainer) GetDevicePeerQuickConfig(ctx echo.Context) error
GetDevicePeerQuickConfig - Get device peer quick config
func (*WireGuardContainer) GetDevicePeerQuickConfigQRCodePNG ¶
func (c *WireGuardContainer) GetDevicePeerQuickConfigQRCodePNG(ctx echo.Context) error
GetDevicePeerQuickConfigQRCodePNG - Get device peer quick config QR code
func (*WireGuardContainer) ListDevicePeers ¶
func (c *WireGuardContainer) ListDevicePeers(ctx echo.Context) error
ListDevicePeers - Peers list
func (*WireGuardContainer) ListDevices ¶
func (c *WireGuardContainer) ListDevices(ctx echo.Context) error
ListDevices - Devices list
func (*WireGuardContainer) UpdateDevice ¶
func (c *WireGuardContainer) UpdateDevice(ctx echo.Context) error
UpdateDevice - Update device
func (*WireGuardContainer) UpdateDeviceOptions ¶
func (c *WireGuardContainer) UpdateDeviceOptions(ctx echo.Context) error
UpdateDeviceOptions - Update device's options
func (*WireGuardContainer) UpdateDevicePeer ¶
func (c *WireGuardContainer) UpdateDevicePeer(ctx echo.Context) error
UpdateDevicePeer - Update device's peer
type WireGuardContainerOptions ¶
type WireGuardContainerOptions struct { Storage storage.Storage DefaultDeviceOptions storage.StoreDeviceOptions }