package
2.6.1+incompatible
Repository: https://github.com/storageos/go-api.git
Documentation: pkg.go.dev

# README

Go API client for api

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 2.5.0
  • Package version: 2.4.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit https://storageos.com

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional

Put the package under your project folder and add the following in import:

import "./api"

Documentation for API Endpoints

All URIs are relative to http://localhost/v2

ClassMethodHTTP requestDescription
DefaultApiAttachNFSVolumePost /namespaces/{namespaceID}/volumes/{id}/nfs/attachattach and share the volume using NFS
DefaultApiAttachVolumePost /namespaces/{namespaceID}/volumes/{id}/attachAttach a volume to the given node
DefaultApiAuthenticateUserPost /auth/loginAuthenticate a user
DefaultApiCreateNamespacePost /namespacesCreate a new namespace
DefaultApiCreatePolicyGroupPost /policiesCreate a new policy group
DefaultApiCreateUserPost /usersCreate a new user
DefaultApiCreateVolumePost /namespaces/{namespaceID}/volumesCreate a new Volume in the specified namespace
DefaultApiDeleteAuthenticatedUserDelete /users/selfDelete the authenticated user
DefaultApiDeleteAuthenticatedUserSessionsDelete /users/self/sessionsInvalidate the logged in user's sessions
DefaultApiDeleteNamespaceDelete /namespaces/{id}Delete a namespace
DefaultApiDeleteNodeDelete /nodes/{id}Delete a node
DefaultApiDeletePolicyGroupDelete /policies/{id}Delete a policy group
DefaultApiDeleteSessionsDelete /users/{id}/sessionsInvalidate login sessions
DefaultApiDeleteUserDelete /users/{id}Delete a user
DefaultApiDeleteVolumeDelete /namespaces/{namespaceID}/volumes/{id}Delete a volume
DefaultApiDetachVolumeDelete /namespaces/{namespaceID}/volumes/{id}/attachDetach the given volume
DefaultApiGetAuthenticatedUserGet /users/selfGet the currently authenticated user's information
DefaultApiGetClusterGet /clusterRetrieves the cluster's global configuration settings
DefaultApiGetDiagnosticsGet /diagnosticsRetrieves a diagnostics bundle from the target node
DefaultApiGetLicenceGet /cluster/licenceRetrieves the cluster's licence information
DefaultApiGetNamespaceGet /namespaces/{id}Fetch a namespace
DefaultApiGetNodeGet /nodes/{id}Fetch a node
DefaultApiGetPolicyGroupGet /policies/{id}Fetch a policy group
DefaultApiGetSingleNodeDiagnosticsGet /diagnostics/{id}Retrieves a single node diagnostics bundle from the target node
DefaultApiGetUserGet /users/{id}Fetch a user
DefaultApiGetVolumeGet /namespaces/{namespaceID}/volumes/{id}Fetch a volume
DefaultApiListNamespacesGet /namespacesFetch the list of namespaces
DefaultApiListNodesGet /nodesFetch the list of nodes
DefaultApiListPolicyGroupsGet /policiesFetch the list of policy groups
DefaultApiListUsersGet /usersFetch the list of users
DefaultApiListVolumesGet /namespaces/{namespaceID}/volumesFetch the list of volumes in the given namespace
DefaultApiRefreshJwtPost /auth/refreshRefresh the JWT
DefaultApiResizeVolumePut /namespaces/{namespaceID}/volumes/{id}/sizeIncrease the size of a volume.
DefaultApiSetComputeOnlyPut /nodes/{id}/compute-onlyModify the computeonly behaviour state for a node
DefaultApiSetCordonedPut /nodes/{id}/cordonModify the cordoned state for a node
DefaultApiSetFailureModePut /namespaces/{namespaceID}/volumes/{id}/failure-modeSet the failure mode of the volume.
DefaultApiSetPlacementStrategyPut /namespaces/{namespaceID}/volumes/{id}/placement-strategySets the placement strategy of the volume.
DefaultApiSetReplicasPut /namespaces/{namespaceID}/volumes/{id}/replicasSet the number of replicas to maintain for the volume.
DefaultApiSpecGet /openapiServes this openapi spec file
DefaultApiUpdateAuthenticatedUserPut /users/selfUpdate the authenticated user's information
DefaultApiUpdateClusterPut /clusterUpdate the cluster's global configuration settings
DefaultApiUpdateLicencePut /cluster/licenceUpdate the licence global configuration settings
DefaultApiUpdateNFSVolumeExportsPut /namespaces/{namespaceID}/volumes/{id}/nfs/export-configUpdate an nfs volume's export configuration
DefaultApiUpdateNFSVolumeMountEndpointPut /namespaces/{namespaceID}/volumes/{id}/nfs/mount-endpointUpdate an nfs volume's mount endpoint
DefaultApiUpdateNamespacePut /namespaces/{id}Update a namespace
DefaultApiUpdateNodePut /nodes/{id}Update a node
DefaultApiUpdatePolicyGroupPut /policies/{id}Update a policy group
DefaultApiUpdateUserPut /users/{id}Update a user
DefaultApiUpdateVolumePut /namespaces/{namespaceID}/volumes/{id}Update a volume

Documentation For Models

Documentation For Authorization

jwt

  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
    UserName: "username",
    Password: "password",
})
r, err := client.Service.Operation(auth, args)

Author

[email protected]