package
0.0.0-20240916134854-020f48ada450
Repository: https://github.com/vpnhouse/api.git
Documentation: pkg.go.dev
# Functions
Creates a new Client, with reasonable defaults.
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling.
NewDeleteKeyRequest generates requests for DeleteKey.
NewDeleteNodeLabelRequest generates requests for DeleteNodeLabel.
NewDeleteNodeRequest generates requests for DeleteNode.
NewGetKeyByIdRequest generates requests for GetKeyById.
NewGetNodeInfoRequest generates requests for GetNodeInfo.
NewGetNodeLabelRequest generates requests for GetNodeLabel.
NewImportInventoryRequestWithBody generates requests for ImportInventory with any type of body.
NewListKeysRequest generates requests for ListKeys.
NewListNodeAddressesRequest generates requests for ListNodeAddresses.
NewListNodeLabelsRequest generates requests for ListNodeLabels.
NewListNodesRequest generates requests for ListNodes.
NewRegisterNodeRequest calls the generic RegisterNode builder with application/json body.
NewRegisterNodeRequestWithBody generates requests for RegisterNode with any type of body.
NewSetNodeAddressRequest calls the generic SetNodeAddress builder with application/json body.
NewSetNodeAddressRequestWithBody generates requests for SetNodeAddress with any type of body.
NewSetNodeLabelRequest calls the generic SetNodeLabel builder with application/json body.
NewSetNodeLabelRequestWithBody generates requests for SetNodeLabel with any type of body.
NewUnsetNodeAddressRequest calls the generic UnsetNodeAddress builder with application/json body.
NewUnsetNodeAddressRequestWithBody generates requests for UnsetNodeAddress with any type of body.
NewUpdateKeyRequest calls the generic UpdateKey builder with application/json body.
NewUpdateKeyRequestWithBody generates requests for UpdateKey with any type of body.
NewUpdateNodeRequest calls the generic UpdateNode builder with application/json body.
NewUpdateNodeRequestWithBody generates requests for UpdateNode with any type of body.
ParseDeleteKeyResponse parses an HTTP response from a DeleteKeyWithResponse call.
ParseDeleteNodeLabelResponse parses an HTTP response from a DeleteNodeLabelWithResponse call.
ParseDeleteNodeResponse parses an HTTP response from a DeleteNodeWithResponse call.
ParseGetKeyByIdResponse parses an HTTP response from a GetKeyByIdWithResponse call.
ParseGetNodeInfoResponse parses an HTTP response from a GetNodeInfoWithResponse call.
ParseGetNodeLabelResponse parses an HTTP response from a GetNodeLabelWithResponse call.
ParseImportInventoryResponse parses an HTTP response from a ImportInventoryWithResponse call.
ParseListKeysResponse parses an HTTP response from a ListKeysWithResponse call.
ParseListNodeAddressesResponse parses an HTTP response from a ListNodeAddressesWithResponse call.
ParseListNodeLabelsResponse parses an HTTP response from a ListNodeLabelsWithResponse call.
ParseListNodesResponse parses an HTTP response from a ListNodesWithResponse call.
ParseRegisterNodeResponse parses an HTTP response from a RegisterNodeWithResponse call.
ParseSetNodeAddressResponse parses an HTTP response from a SetNodeAddressWithResponse call.
ParseSetNodeLabelResponse parses an HTTP response from a SetNodeLabelWithResponse call.
ParseUnsetNodeAddressResponse parses an HTTP response from a UnsetNodeAddressWithResponse call.
ParseUpdateKeyResponse parses an HTTP response from a UpdateKeyWithResponse call.
ParseUpdateNodeResponse parses an HTTP response from a UpdateNodeWithResponse 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
No description provided by the author
Defines values for NodeState.
Defines values for NodeState.
# Structs
Client which conforms to the OpenAPI3 specification for this service.
ClientWithResponses builds on ClientInterface to offer response payloads.
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
ListNodesParams defines parameters for ListNodes.
No description provided by the author
Node defines model for Node.
NodeRecord defines model for NodeRecord.
PublicKey defines model for PublicKey.
PublicKeyRecord defines model for PublicKeyRecord.
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
# 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
ClientOption allows setting custom parameters during construction.
NodeState defines model for NodeState.
RegisterNodeJSONBody defines parameters for RegisterNode.
RegisterNodeJSONRequestBody defines body for RegisterNode for application/json ContentType.
RequestEditorFn is the function signature for the RequestEditor callback function.
SetNodeAddressJSONBody defines parameters for SetNodeAddress.
SetNodeAddressJSONRequestBody defines body for SetNodeAddress for application/json ContentType.
SetNodeLabelJSONBody defines parameters for SetNodeLabel.
SetNodeLabelJSONRequestBody defines body for SetNodeLabel for application/json ContentType.
UnsetNodeAddressJSONBody defines parameters for UnsetNodeAddress.
UnsetNodeAddressJSONRequestBody defines body for UnsetNodeAddress for application/json ContentType.
UpdateKeyJSONBody defines parameters for UpdateKey.
UpdateKeyJSONRequestBody defines body for UpdateKey for application/json ContentType.
UpdateNodeJSONBody defines parameters for UpdateNode.
UpdateNodeJSONRequestBody defines body for UpdateNode for application/json ContentType.