package
0.0.0-20240916134854-020f48ada450
Repository: https://github.com/vpnhouse/api.git
Documentation: pkg.go.dev

# Functions

NewAdminAddTrustedKeyRequestWithBody generates requests for AdminAddTrustedKey with any type of body.
NewAdminCreatePeerRequest calls the generic AdminCreatePeer builder with application/json body.
NewAdminCreatePeerRequestWithBody generates requests for AdminCreatePeer with any type of body.
NewAdminDeletePeerRequest generates requests for AdminDeletePeer.
NewAdminDeleteTrustedKeyRequest generates requests for AdminDeleteTrustedKey.
NewAdminDoAuthRequest generates requests for AdminDoAuth.
NewAdminGetPeerRequest generates requests for AdminGetPeer.
NewAdminGetSettingsRequest generates requests for AdminGetSettings.
NewAdminGetStatusRequest generates requests for AdminGetStatus.
NewAdminGetTrustedKeyRequest generates requests for AdminGetTrustedKey.
NewAdminListPeersRequest generates requests for AdminListPeers.
NewAdminListTrustedKeysRequest generates requests for AdminListTrustedKeys.
NewAdminReloadServiceRequest generates requests for AdminReloadService.
NewAdminUpdatePeerRequest calls the generic AdminUpdatePeer builder with application/json body.
NewAdminUpdatePeerRequestWithBody generates requests for AdminUpdatePeer with any type of body.
NewAdminUpdateSettingsRequest calls the generic AdminUpdateSettings builder with application/json body.
NewAdminUpdateSettingsRequestWithBody generates requests for AdminUpdateSettings with any type of body.
NewAdminUpdateTrustedKeyRequestWithBody generates requests for AdminUpdateTrustedKey with any type of body.
NewApiClientConnectRequest calls the generic ApiClientConnect builder with application/json body.
NewApiClientConnectRequestWithBody generates requests for ApiClientConnect with any type of body.
NewApiClientDisconnectRequest calls the generic ApiClientDisconnect builder with application/json body.
NewApiClientDisconnectRequestWithBody generates requests for ApiClientDisconnect with any type of body.
NewApiClientPingRequest calls the generic ApiClientPing builder with application/json body.
NewApiClientPingRequestWithBody generates requests for ApiClientPing with any type of body.
Creates a new Client, with reasonable defaults.
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling.
NewFederationPingRequest generates requests for FederationPing.
NewFederationUpdateKeyRequest calls the generic FederationUpdateKey builder with application/json body.
NewFederationUpdateKeyRequestWithBody generates requests for FederationUpdateKey with any type of body.
ParseAdminAddTrustedKeyResponse parses an HTTP response from a AdminAddTrustedKeyWithResponse call.
ParseAdminCreatePeerResponse parses an HTTP response from a AdminCreatePeerWithResponse call.
ParseAdminDeletePeerResponse parses an HTTP response from a AdminDeletePeerWithResponse call.
ParseAdminDeleteTrustedKeyResponse parses an HTTP response from a AdminDeleteTrustedKeyWithResponse call.
ParseAdminDoAuthResponse parses an HTTP response from a AdminDoAuthWithResponse call.
ParseAdminGetPeerResponse parses an HTTP response from a AdminGetPeerWithResponse call.
ParseAdminGetSettingsResponse parses an HTTP response from a AdminGetSettingsWithResponse call.
ParseAdminGetStatusResponse parses an HTTP response from a AdminGetStatusWithResponse call.
ParseAdminGetTrustedKeyResponse parses an HTTP response from a AdminGetTrustedKeyWithResponse call.
ParseAdminListPeersResponse parses an HTTP response from a AdminListPeersWithResponse call.
ParseAdminListTrustedKeysResponse parses an HTTP response from a AdminListTrustedKeysWithResponse call.
ParseAdminReloadServiceResponse parses an HTTP response from a AdminReloadServiceWithResponse call.
ParseAdminUpdatePeerResponse parses an HTTP response from a AdminUpdatePeerWithResponse call.
ParseAdminUpdateSettingsResponse parses an HTTP response from a AdminUpdateSettingsWithResponse call.
ParseAdminUpdateTrustedKeyResponse parses an HTTP response from a AdminUpdateTrustedKeyWithResponse call.
ParseApiClientConnectResponse parses an HTTP response from a ApiClientConnectWithResponse call.
ParseApiClientDisconnectResponse parses an HTTP response from a ApiClientDisconnectWithResponse call.
ParseApiClientPingResponse parses an HTTP response from a ApiClientPingWithResponse call.
ParseFederationPingResponse parses an HTTP response from a FederationPingWithResponse call.
ParseFederationUpdateKeyResponse parses an HTTP response from a FederationUpdateKeyWithResponse call.
WithBaseURL overrides the baseURL.
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client.
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request.

# Constants

No description provided by the author
No description provided by the author
Defines values for PeerType.
Defines values for SettingsLogLevel.
Defines values for SettingsLogLevel.
Defines values for SettingsLogLevel.
Defines values for SettingsLogLevel.
No description provided by the author

# Structs

No description provided by the author
AdminAuthResponse defines model for AdminAuthResponse.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ApiClientConnectJSONBody defines parameters for ApiClientConnect.
No description provided by the author
No description provided by the author
No description provided by the author
Client which conforms to the OpenAPI3 specification for this service.
Information to configure client on client side.
ClientWithResponses builds on ClientInterface to offer response payloads.
Connection information for wireguard peers.
ConnectionIdentifiers defines model for ConnectionIdentifiers.
Generic error response.
No description provided by the author
FederationUpdateKeyJSONBody defines parameters for FederationUpdateKey.
No description provided by the author
Peer representation.
PeerRecord defines model for PeerRecord.
Wireguard-specific tunnel information.
Current operation status.
Server-side configuration.
TrustedKeyRecord defines model for TrustedKeyRecord.

# Interfaces

The interface specification for the client above.
ClientWithResponsesInterface is the interface specification for the client with responses above.
Doer performs HTTP requests.

# Type aliases

AdminCreatePeerJSONBody defines parameters for AdminCreatePeer.
AdminCreatePeerJSONRequestBody defines body for AdminCreatePeer for application/json ContentType.
AdminUpdatePeerJSONBody defines parameters for AdminUpdatePeer.
AdminUpdatePeerJSONRequestBody defines body for AdminUpdatePeer for application/json ContentType.
AdminUpdateSettingsJSONBody defines parameters for AdminUpdateSettings.
AdminUpdateSettingsJSONRequestBody defines body for AdminUpdateSettings for application/json ContentType.
ApiClientConnectJSONRequestBody defines body for ApiClientConnect for application/json ContentType.
ApiClientDisconnectJSONBody defines parameters for ApiClientDisconnect.
ApiClientDisconnectJSONRequestBody defines body for ApiClientDisconnect for application/json ContentType.
ApiClientPingJSONBody defines parameters for ApiClientPing.
ApiClientPingJSONRequestBody defines body for ApiClientPing for application/json ContentType.
ClientOption allows setting custom parameters during construction.
FederationUpdateKeyJSONRequestBody defines body for FederationUpdateKey for application/json ContentType.
Peer representation.
Peer tunnel type.
RequestEditorFn is the function signature for the RequestEditor callback function.
Generic error response.
Server-side configuration.
Logging level.
TrustedKey defines model for TrustedKey.