Documentation ¶
Index ¶
- type TunnelAPI
- func (tun *TunnelAPI) AdminAddTrustedKey(w http.ResponseWriter, r *http.Request, id string)
- func (tun *TunnelAPI) AdminConnectionInfoWireguard(w http.ResponseWriter, r *http.Request)
- func (tun *TunnelAPI) AdminCreatePeer(w http.ResponseWriter, r *http.Request)
- func (tun *TunnelAPI) AdminCreateSharedPeer(w http.ResponseWriter, r *http.Request)
- func (tun *TunnelAPI) AdminDeletePeer(w http.ResponseWriter, r *http.Request, id int64)
- func (tun *TunnelAPI) AdminDeleteTrustedKey(w http.ResponseWriter, r *http.Request, id string)
- func (tun *TunnelAPI) AdminDoAuth(w http.ResponseWriter, r *http.Request)
- func (tun *TunnelAPI) AdminGetPeer(w http.ResponseWriter, r *http.Request, id int64)
- func (tun *TunnelAPI) AdminGetSettings(w http.ResponseWriter, r *http.Request)
- func (tun *TunnelAPI) AdminGetStatus(w http.ResponseWriter, r *http.Request)
- func (tun *TunnelAPI) AdminGetTrustedKey(w http.ResponseWriter, r *http.Request, id string)
- func (tun *TunnelAPI) AdminInitialSetup(w http.ResponseWriter, r *http.Request)
- func (tun *TunnelAPI) AdminIppoolIsUsed(w http.ResponseWriter, r *http.Request)
- func (tun *TunnelAPI) AdminIppoolSuggest(w http.ResponseWriter, r *http.Request)
- func (tun *TunnelAPI) AdminListPeers(w http.ResponseWriter, r *http.Request)
- func (tun *TunnelAPI) AdminListTrustedKeys(w http.ResponseWriter, r *http.Request)
- func (tun *TunnelAPI) AdminReloadService(w http.ResponseWriter, r *http.Request)
- func (tun *TunnelAPI) AdminUpdatePeer(w http.ResponseWriter, r *http.Request, id int64)
- func (tun *TunnelAPI) AdminUpdateSettings(w http.ResponseWriter, r *http.Request)
- func (tun *TunnelAPI) AdminUpdateTrustedKey(w http.ResponseWriter, r *http.Request, id string)
- func (tun *TunnelAPI) ClientConnect(w http.ResponseWriter, r *http.Request)
- func (tun *TunnelAPI) ClientConnectUnsafe(w http.ResponseWriter, r *http.Request)
- func (tun *TunnelAPI) ClientDisconnect(w http.ResponseWriter, r *http.Request)
- func (tun *TunnelAPI) ClientPing(w http.ResponseWriter, r *http.Request)
- func (tun *TunnelAPI) FederationPing(w http.ResponseWriter, r *http.Request)
- func (tun *TunnelAPI) FederationSetAuthorizerKeys(w http.ResponseWriter, r *http.Request)
- func (tun *TunnelAPI) PublicPeerActivate(w http.ResponseWriter, r *http.Request, slug string)
- func (tun *TunnelAPI) PublicPeerStatus(w http.ResponseWriter, r *http.Request, slug string)
- func (tun *TunnelAPI) RegisterHandlers(r chi.Router)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TunnelAPI ¶
type TunnelAPI struct {
// contains filtered or unexported fields
}
func NewTunnelHandlers ¶
func NewTunnelHandlers( runtime *runtime.TunnelRuntime, manager *manager.Manager, adminJWT *auth.JWTMaster, authorizer *authorizer.JWTAuthorizer, storage *storage.Storage, keystore keystore.Keystore, ip4am *ipam.IPAM, ) *TunnelAPI
func (*TunnelAPI) AdminAddTrustedKey ¶
AdminAddTrustedKey POST /api/tunnel/admin/trusted/{id}
func (*TunnelAPI) AdminConnectionInfoWireguard ¶
func (tun *TunnelAPI) AdminConnectionInfoWireguard(w http.ResponseWriter, r *http.Request)
func (*TunnelAPI) AdminCreatePeer ¶
func (tun *TunnelAPI) AdminCreatePeer(w http.ResponseWriter, r *http.Request)
AdminCreatePeer implements POST method on /api/admin/peers endpoint
func (*TunnelAPI) AdminCreateSharedPeer ¶
func (tun *TunnelAPI) AdminCreateSharedPeer(w http.ResponseWriter, r *http.Request)
AdminCreateSharedPeer implements POST method on /api/admin/peers/shared endpoint
func (*TunnelAPI) AdminDeletePeer ¶
AdminDeletePeer implements DELETE method on /api/admin/peers/{id} endpoint
func (*TunnelAPI) AdminDeleteTrustedKey ¶
AdminDeleteTrustedKey DELETE /api/tunnel/admin/trusted/{id}
func (*TunnelAPI) AdminDoAuth ¶
func (tun *TunnelAPI) AdminDoAuth(w http.ResponseWriter, r *http.Request)
AdminDoAuth implements handler for GET /api/tunnel/admin/auth
func (*TunnelAPI) AdminGetPeer ¶
AdminGetPeer implements GET method on /api/admin/peers/{id} endpoint
func (*TunnelAPI) AdminGetSettings ¶
func (tun *TunnelAPI) AdminGetSettings(w http.ResponseWriter, r *http.Request)
AdminGetSettings implements handler for GET /api/tunnel/admin/settings request
func (*TunnelAPI) AdminGetStatus ¶
func (tun *TunnelAPI) AdminGetStatus(w http.ResponseWriter, r *http.Request)
AdminGetStatus returns current server status
func (*TunnelAPI) AdminGetTrustedKey ¶
AdminGetTrustedKey GET /api/tunnel/admin/trusted/{id}
func (*TunnelAPI) AdminInitialSetup ¶
func (tun *TunnelAPI) AdminInitialSetup(w http.ResponseWriter, r *http.Request)
AdminInitialSetup POST /api/tunnel/admin/initial-setup
func (*TunnelAPI) AdminIppoolIsUsed ¶
func (tun *TunnelAPI) AdminIppoolIsUsed(w http.ResponseWriter, r *http.Request)
AdminIppoolIsUsed checks that the IP address is used by the server pool (POST /api/tunnel/admin/ip-pool/suggest)
func (*TunnelAPI) AdminIppoolSuggest ¶
func (tun *TunnelAPI) AdminIppoolSuggest(w http.ResponseWriter, r *http.Request)
AdminIppoolSuggest suggests an available IP address by the server pool (GET /api/tunnel/admin/ip-pool/suggest)
func (*TunnelAPI) AdminListPeers ¶
func (tun *TunnelAPI) AdminListPeers(w http.ResponseWriter, r *http.Request)
AdminListPeers implements GET method on /api/admin/peers endpoint
func (*TunnelAPI) AdminListTrustedKeys ¶
func (tun *TunnelAPI) AdminListTrustedKeys(w http.ResponseWriter, r *http.Request)
AdminListTrustedKeys GET /api/tunnel/admin/trusted
func (*TunnelAPI) AdminReloadService ¶
func (tun *TunnelAPI) AdminReloadService(w http.ResponseWriter, r *http.Request)
AdminReloadService reloads server with new configuration
func (*TunnelAPI) AdminUpdatePeer ¶
AdminUpdatePeer implements PUT method on /api/admin/peers/{id} endpoint
func (*TunnelAPI) AdminUpdateSettings ¶
func (tun *TunnelAPI) AdminUpdateSettings(w http.ResponseWriter, r *http.Request)
AdminUpdateSettings implements handler for PATCH /api/tunnel/admin/settings request
func (*TunnelAPI) AdminUpdateTrustedKey ¶
AdminUpdateTrustedKey PUT /api/tunnel/admin/trusted/{id}
func (*TunnelAPI) ClientConnect ¶
func (tun *TunnelAPI) ClientConnect(w http.ResponseWriter, r *http.Request)
ClientConnect implements endpoint for POST /api/client/connect
func (*TunnelAPI) ClientConnectUnsafe ¶
func (tun *TunnelAPI) ClientConnectUnsafe(w http.ResponseWriter, r *http.Request)
ClientConnectUnsafe implements endpoint for POST /api/client/connect_unsafe
func (*TunnelAPI) ClientDisconnect ¶
func (tun *TunnelAPI) ClientDisconnect(w http.ResponseWriter, r *http.Request)
ClientDisconnect implements endpoint for POST /api/client/disconnect
func (*TunnelAPI) ClientPing ¶
func (tun *TunnelAPI) ClientPing(w http.ResponseWriter, r *http.Request)
ClientPing implements endpoint for POST /api/client/ping
func (*TunnelAPI) FederationPing ¶
func (tun *TunnelAPI) FederationPing(w http.ResponseWriter, r *http.Request)
func (*TunnelAPI) FederationSetAuthorizerKeys ¶
func (tun *TunnelAPI) FederationSetAuthorizerKeys(w http.ResponseWriter, r *http.Request)
func (*TunnelAPI) PublicPeerActivate ¶
func (*TunnelAPI) PublicPeerStatus ¶ added in v0.2.3
func (*TunnelAPI) RegisterHandlers ¶
func (tun *TunnelAPI) RegisterHandlers(r chi.Router)