package
1.0.0
Repository: https://github.com/nodeum-io/nodeum-sdk-go.git
Documentation: pkg.go.dev

# README

Go API client for nodeum

Nodeum API # Filter parameters When browsing a list of items, multiple filter parameters may be applied. Some operators can be added to the value as a prefix: - = value is equal. Default operator, may be omitted - != value is different - > greater than - >= greater than or equal - < lower than - >= lower than or equal - >< included in list, items should be separated by | - !>< not included in list, items should be separated by | - ~ pattern matching, may include % (any characters) and _ (one character) - !~ pattern not matching, may include % (any characters) and _ (one character)

Overview

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

  • API version: 2.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.GoClientCodegen

Installation

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

import "./nodeum"

Documentation for API Endpoints

All URIs are relative to https://localhost/api/v2

ClassMethodHTTP requestDescription
CloudBucketsApiIndexCloudBucketsGet /cloud_bucketsLists all cloud buckets.
CloudBucketsApiIndexCloudBucketsByCloudConnectorGet /cloud_connectors/{cloud_connector_id}/cloud_bucketsLists all cloud buckets.
CloudBucketsApiIndexCloudBucketsByCloudPoolGet /cloud_pools/{cloud_pool_id}/cloud_bucketsLists all cloud buckets.
CloudBucketsApiMountStatusCloudBucketGet /cloud_buckets/{cloud_bucket_id}/mountGet mount status of Cloud bucket.
CloudBucketsApiMountStatusCloudBucketByCloudConnectorGet /cloud_connectors/{cloud_connector_id}/cloud_buckets/{cloud_bucket_id}/mountGet mount status of Cloud bucket.
CloudBucketsApiMountStatusCloudBucketByCloudPoolGet /cloud_pools/{cloud_pool_id}/cloud_buckets/{cloud_bucket_id}/mountGet mount status of Cloud bucket.
CloudBucketsApiShowCloudBucketGet /cloud_buckets/{cloud_bucket_id}Displays a specific cloud bucket.
CloudBucketsApiShowCloudBucketByCloudConnectorGet /cloud_connectors/{cloud_connector_id}/cloud_buckets/{cloud_bucket_id}Displays a specific cloud bucket.
CloudBucketsApiShowCloudBucketByCloudPoolGet /cloud_pools/{cloud_pool_id}/cloud_buckets/{cloud_bucket_id}Displays a specific cloud bucket.
CloudBucketsApiSyncCloudBucketsPut /cloud_connectors/{cloud_connector_id}/cloud_buckets/-/syncSynchronize internal cloud buckets with their remote equivalent.
CloudBucketsApiSyncResultCloudBucketsGet /cloud_connectors/{cloud_connector_id}/cloud_buckets/-/syncCheck result of cloud connector sync job.
CloudConnectorsApiCreateCloudConnectorPost /cloud_connectorsCreates a new cloud connector.
CloudConnectorsApiDestroyCloudConnectorDelete /cloud_connectors/{cloud_connector_id}Destroys a specific cloud connector.
CloudConnectorsApiIndexCloudConnectorsGet /cloud_connectorsLists all cloud connectors.
CloudConnectorsApiShowCloudConnectorGet /cloud_connectors/{cloud_connector_id}Displays a specific cloud connector.
CloudConnectorsApiTestCloudConnectorPut /cloud_connectors/-/testTest an unsaved cloud connector.
CloudConnectorsApiTestResultCloudConnectorGet /cloud_connectors/-/testCheck result of cloud connector test job.
CloudConnectorsApiUpdateCloudConnectorPut /cloud_connectors/{cloud_connector_id}Updates a specific cloud connector.
CloudPoolsApiCreateCloudPoolPost /cloud_poolsCreates a new cloud pool.
CloudPoolsApiDestroyCloudPoolDelete /cloud_pools/{cloud_pool_id}Destroys a specific cloud pool.
CloudPoolsApiIndexCloudPoolsGet /cloud_poolsLists all cloud pools.
CloudPoolsApiMountStatusCloudPoolGet /cloud_pools/{cloud_pool_id}/mountGet mount status of Cloud pool.
CloudPoolsApiShowCloudPoolGet /cloud_pools/{cloud_pool_id}Displays a specific cloud pool.
CloudPoolsApiUpdateCloudPoolPut /cloud_pools/{cloud_pool_id}Updates a specific cloud pool.
ContainersApiCreateContainerPost /containersCreates a new container.
ContainersApiCreateContainerPrivilegePost /containers/{container_id}/container_privilegesCreates a new privilege on the container.
ContainersApiDestroyContainerDelete /containers/{container_id}Destroys a specific container.
ContainersApiDestroyContainerPrivilegeDelete /containers/{container_id}/container_privileges/{container_privilege_id}Destroys a specific privilege.
ContainersApiIndexContainerPrivilegesGet /containers/{container_id}/container_privilegesLists all privilege on the container.
ContainersApiIndexContainersGet /containersLists all containers.
ContainersApiShowContainerGet /containers/{container_id}Displays a specific container.
ContainersApiShowContainerPrivilegeGet /containers/{container_id}/container_privileges/{container_privilege_id}Displays a specific privilege.
ContainersApiUpdateContainerPut /containers/{container_id}Updates a specific container.
ContainersApiUpdateContainerPrivilegePut /containers/{container_id}/container_privileges/{container_privilege_id}Updates a specific privilege.
FilesApiFilesChildrenGet /files/{file_parent_id}/childrenLists files under a specific folder.
FilesApiFilesChildrenByCloudPoolGet /cloud_pools/{cloud_pool_id}/files/{file_parent_id}/childrenLists files under a specific folder.
FilesApiFilesChildrenByContainerGet /containers/{container_id}/files/{file_parent_id}/childrenLists files under a specific folder.
FilesApiFilesChildrenByNasPoolGet /nas_pools/{nas_pool_id}/files/{file_parent_id}/childrenLists files under a specific folder.
FilesApiFilesChildrenByTapePoolGet /tape_pools/{tape_pool_id}/files/{file_parent_id}/childrenLists files under a specific folder.
FilesApiFilesChildrenByTaskGet /tasks/{task_id}/files/{file_parent_id}/childrenLists files under a specific folder.
FilesApiFilesChildrenByTaskExecutionGet /task_executions/{task_execution_id}/files/{file_parent_id}/childrenLists files under a specific folder.
FilesApiFilesChildrenByTaskExecutionByTaskGet /tasks/{task_id}/task_executions/{task_execution_id}/files/{file_parent_id}/childrenLists files under a specific folder.
FilesApiIndexFilesGet /filesLists files on root.
FilesApiIndexFilesByCloudPoolGet /cloud_pools/{cloud_pool_id}/filesLists files on root.
FilesApiIndexFilesByContainerGet /containers/{container_id}/filesLists files on root.
FilesApiIndexFilesByNasPoolGet /nas_pools/{nas_pool_id}/filesLists files on root.
FilesApiIndexFilesByTapePoolGet /tape_pools/{tape_pool_id}/filesLists files on root.
FilesApiIndexFilesByTaskGet /tasks/{task_id}/filesLists files on root.
FilesApiIndexFilesByTaskExecutionGet /task_executions/{task_execution_id}/filesLists files on root.
FilesApiIndexFilesByTaskExecutionByTaskGet /tasks/{task_id}/task_executions/{task_execution_id}/filesLists files on root.
FilesApiShowFileGet /files/{file_id}Displays a specific file.
FilesApiShowFileByCloudPoolGet /cloud_pools/{cloud_pool_id}/files/{file_id}Displays a specific file.
FilesApiShowFileByContainerGet /containers/{container_id}/files/{file_id}Displays a specific file.
FilesApiShowFileByNasPoolGet /nas_pools/{nas_pool_id}/files/{file_id}Displays a specific file.
FilesApiShowFileByTapePoolGet /tape_pools/{tape_pool_id}/files/{file_id}Displays a specific file.
FilesApiShowFileByTaskGet /tasks/{task_id}/files/{file_id}Displays a specific file.
FilesApiShowFileByTaskExecutionGet /task_executions/{task_execution_id}/files/{file_id}Displays a specific file.
FilesApiShowFileByTaskExecutionByTaskGet /tasks/{task_id}/task_executions/{task_execution_id}/files/{file_id}Displays a specific file.
MountPointsApiCreateMountPointPost /mount_pointsCreates a new mount point.
MountPointsApiDestroyMountPointDelete /mount_points/{mount_point_id}Destroys a specific mount point.
MountPointsApiIndexMountPointsGet /mount_pointsLists all mount points.
MountPointsApiMountMountPointPut /mount_points/{mount_point_id}/mountMount Mount Point.
MountPointsApiMountStatusMountPointGet /mount_points/{mount_point_id}/mountGet mount status of Mount Point.
MountPointsApiShowMountPointGet /mount_points/{mount_point_id}Displays a specific mount point`.
MountPointsApiUnmountMountPointDelete /mount_points/{mount_point_id}/mountUnmount Mount Point.
MountPointsApiUpdateMountPointPut /mount_points/{mount_point_id}Updates a specific mount point`.
MountsApiIndexMountsGet /mountsList all mounted storages
NasApiCreateNasPost /nasCreates a new NAS.
NasApiDestroyNasDelete /nas/{nas_id}Destroys a specific NAS.
NasApiIndexNasGet /nasLists all NAS.
NasApiShowNasGet /nas/{nas_id}Displays a specific NAS.
NasApiUpdateNasPut /nas/{nas_id}Updates a specific NAS.
NasPoolsApiCreateNasPoolPost /nas_poolsCreates a new NAS pool.
NasPoolsApiDestroyNasPoolDelete /nas_pools/{nas_pool_id}Destroys a specific NAS pool.
NasPoolsApiIndexNasPoolsGet /nas_poolsLists all NAS pools.
NasPoolsApiMountStatusNasPoolGet /nas_pools/{nas_pool_id}/mountGet mount status of NAS pool.
NasPoolsApiShowNasPoolGet /nas_pools/{nas_pool_id}Displays a specific NAS pool.
NasPoolsApiUpdateNasPoolPut /nas_pools/{nas_pool_id}Updates a specific NAS pool.
NasSharesApiCreateNasShareByNasPost /nas/{nas_id}/nas_sharesCreates a new NAS share.
NasSharesApiDestroyNasShareDelete /nas_shares/{nas_share_id}Destroys a specific NAS share.
NasSharesApiDestroyNasShareByNasDelete /nas/{nas_id}/nas_shares/{nas_share_id}Destroys a specific NAS share.
NasSharesApiDestroyNasShareByNasPoolDelete /nas_pools/{nas_pool_id}/nas_shares/{nas_share_id}Destroys a specific NAS share.
NasSharesApiIndexNasSharesGet /nas_sharesLists all NAS shares.
NasSharesApiIndexNasSharesByNasGet /nas/{nas_id}/nas_sharesLists all NAS shares.
NasSharesApiIndexNasSharesByNasPoolGet /nas_pools/{nas_pool_id}/nas_sharesLists all NAS shares.
NasSharesApiMountStatusNasShareGet /nas_shares/{nas_share_id}/mountGet mount status of NAS Share.
NasSharesApiMountStatusNasShareByNasGet /nas/{nas_id}/nas_shares/{nas_share_id}/mountGet mount status of NAS Share.
NasSharesApiMountStatusNasShareByNasPoolGet /nas_pools/{nas_pool_id}/nas_shares/{nas_share_id}/mountGet mount status of NAS Share.
NasSharesApiShowNasShareByNasGet /nas/{nas_id}/nas_shares/{nas_share_id}Displays a specific NAS share.
NasSharesApiShowNasSharesGet /nas_shares/{nas_share_id}Displays a specific NAS share.
NasSharesApiShowNasSharesByNasPoolGet /nas_pools/{nas_pool_id}/nas_shares/{nas_share_id}Displays a specific NAS share.
NasSharesApiTestNasSharePut /nas/{nas_id}/nas_shares/-/testTest an unsaved NAS Share.
NasSharesApiTestResultNasShareGet /nas/{nas_id}/nas_shares/-/testCheck result of a NAS Share test job.
NasSharesApiUpdateNasSharePut /nas_shares/{nas_share_id}Updates a specific NAS share.
NasSharesApiUpdateNasShareByNasPut /nas/{nas_id}/nas_shares/{nas_share_id}Updates a specific NAS share.
NasSharesApiUpdateNasShareByNasPoolPut /nas_pools/{nas_pool_id}/nas_shares/{nas_share_id}Updates a specific NAS share.
TapeDrivesApiCreateTapeDriveByTapeLibraryPost /tape_libraries/{tape_library_id}/tape_drivesCreates a new tape drive.
TapeDrivesApiDestroyTapeDriveDelete /tape_drives/{tape_drive_id}Destroys a specific tape drive.
TapeDrivesApiDestroyTapeDriveByTapeLibraryDelete /tape_libraries/{tape_library_id}/tape_drives/{tape_drive_id}Destroys a specific tape drive.
TapeDrivesApiIndexTapeDriveDevicesGet /tape_libraries/{tape_library_id}/tape_drives/-/devicesLists tape drives devices.
TapeDrivesApiIndexTapeDrivesGet /tape_drivesLists all tape drives.
TapeDrivesApiIndexTapeDrivesByTapeLibraryGet /tape_libraries/{tape_library_id}/tape_drivesLists all tape drives.
TapeDrivesApiShowTapeDriveGet /tape_drives/{tape_drive_id}Displays a specific tape drive.
TapeDrivesApiShowTapeDriveByTapeLibraryGet /tape_libraries/{tape_library_id}/tape_drives/{tape_drive_id}Displays a specific tape drive.
TapeDrivesApiUpdateTapeDrivePut /tape_drives/{tape_drive_id}Updates a specific tape drive.
TapeDrivesApiUpdateTapeDriveByTapeLibraryPut /tape_libraries/{tape_library_id}/tape_drives/{tape_drive_id}Updates a specific tape drive.
TapeLibrariesApiCreateTapeLibraryPost /tape_librariesCreates a new tape library.
TapeLibrariesApiDestroyTapeLibraryDelete /tape_libraries/{tape_library_id}Destroys a specific tape library.
TapeLibrariesApiIndexTapeLibrariesGet /tape_librariesLists all tape libraries.
TapeLibrariesApiIndexTapeLibraryDevicesGet /tape_libraries/-/devicesLists tape libraries devices.
TapeLibrariesApiShowTapeLibraryGet /tape_libraries/{tape_library_id}Displays a specific tape library.
TapeLibrariesApiUpdateTapeLibraryPut /tape_libraries/{tape_library_id}Updates a specific tape library.
TapePoolsApiCreateTapePoolPost /tape_poolsCreates a new tape pool.
TapePoolsApiDestroyTapePoolDelete /tape_pools/{tape_pool_id}Destroys a specific tape pool.
TapePoolsApiIndexTapePoolsGet /tape_poolsLists all tape pools.
TapePoolsApiShowTapePoolGet /tape_pools/{tape_pool_id}Displays a specific tape pool.
TapePoolsApiUpdateTapePoolPut /tape_pools/{tape_pool_id}Updates a specific tape pool.
TapesApiIndexTapesGet /tapesLists all tapes.
TapesApiIndexTapesByTapeLibraryGet /tape_libraries/{tape_library_id}/tapesLists all tapes.
TapesApiIndexTapesByTapePoolGet /tape_pools/{tape_pool_id}/tapesLists all tapes.
TapesApiMountStatusTapeGet /tapes/{tape_id}/mountGet mount status of Tape.
TapesApiMountStatusTapeByTapeLibraryGet /tape_libraries/{tape_library_id}/tapes/{tape_id}/mountGet mount status of Tape.
TapesApiMountStatusTapeByTapePoolGet /tape_pools/{tape_pool_id}/tapes/{tape_id}/mountGet mount status of Tape.
TapesApiShowTapeGet /tapes/{tape_id}Displays a specific tape.
TapesApiShowTapeByTapeLibraryGet /tape_libraries/{tape_library_id}/tapes/{tape_id}Displays a specific tape.
TapesApiShowTapeByTapePoolGet /tape_pools/{tape_pool_id}/tapes/{tape_id}Displays a specific tape.
TaskDestinationsApiCreateTaskDestinationPost /tasks/{task_id}/task_destinationsCreates a new task destination.
TaskDestinationsApiDestroyTaskDestinationDelete /tasks/{task_id}/task_destinations/{task_destination_id}Destroys a specific task destination.
TaskDestinationsApiIndexTaskDestinationsGet /tasks/{task_id}/task_destinationsLists all task destinations.
TaskDestinationsApiShowTaskDestinationGet /tasks/{task_id}/task_destinations/{task_destination_id}Displays a specific task destination.
TaskDestinationsApiUpdateTaskDestinationPut /tasks/{task_id}/task_destinations/{task_destination_id}Updates a specific task destination.
TaskExecutionsApiIndexTaskExecutionsGet /task_executionsLists all task executions.
TaskExecutionsApiIndexTaskExecutionsByTaskGet /tasks/{task_id}/task_executionsLists all task executions.
TaskExecutionsApiShowTaskExecutionGet /task_executions/{task_execution_id}Displays a specific task execution.
TaskExecutionsApiShowTaskExecutionByTaskGet /tasks/{task_id}/task_executions/{task_execution_id}Displays a specific task execution.
TaskMetadataApiCreateTaskMetadatumPost /tasks/{task_id}/task_metadataCreates a new task metadatum.
TaskMetadataApiDestroyTaskMetadatumDelete /tasks/{task_id}/task_metadata/{task_metadatum_id}Destroys a specific task metadatum.
TaskMetadataApiIndexTaskMetadataGet /tasks/{task_id}/task_metadataLists all task metadata.
TaskMetadataApiShowTaskMetadatGet /tasks/{task_id}/task_metadata/{task_metadatum_id}Displays a specific task metadatum.
TaskMetadataApiUpdateTaskMetadatumPut /tasks/{task_id}/task_metadata/{task_metadatum_id}Updates a specific task metadatum.
TaskOptionsApiCreateTaskOptionPost /tasks/{task_id}/task_optionsCreates a new task option.
TaskOptionsApiDestroyTaskOptionDelete /tasks/{task_id}/task_options/{task_option_id}Destroys a specific task option.
TaskOptionsApiIndexTaskOptionsGet /tasks/{task_id}/task_optionsLists all task options.
TaskOptionsApiShowTaskOptionGet /tasks/{task_id}/task_options/{task_option_id}Displays a specific task option.
TaskOptionsApiUpdateTaskOptionPut /tasks/{task_id}/task_options/{task_option_id}Updates a specific task option.
TaskSourcesApiCreateTaskSourcePost /tasks/{task_id}/task_sourcesCreates a new task source.
TaskSourcesApiDestroyTaskSourceDelete /tasks/{task_id}/task_sources/{task_source_id}Destroys a specific task source.
TaskSourcesApiIndexTaskSourcesGet /tasks/{task_id}/task_sourcesLists all task sources.
TaskSourcesApiShowTaskSourceGet /tasks/{task_id}/task_sources/{task_source_id}Displays a specific task source.
TaskSourcesApiUpdateTaskSourcePut /tasks/{task_id}/task_sources/{task_source_id}Updates a specific task source.
TasksApiCreateTaskPost /tasksCreates a new task.
TasksApiDestroyTaskDelete /tasks/{task_id}Destroys a specific task.
TasksApiIndexTasksGet /tasksLists all tasks.
TasksApiShowTaskGet /tasks/{task_id}Displays a specific task.
TasksApiUpdateTaskPut /tasks/{task_id}Updates a specific task.
UsersApiCreateApiKeyPost /users/me/api_keysCreates a new API Key for current user.
UsersApiDestroyApiKeyDelete /users/me/api_keys/{api_key_id}Destroys a specific API Key.
UsersApiIndexApiKeysGet /users/me/api_keysLists all API keys of current user.
UsersApiShowApiKeyGet /users/me/api_keys/{api_key_id}Displays a specific API Key with its scopes.
UsersApiUpdateApiKeyPut /users/me/api_keys/{api_key_id}Updates a specific API Key.

Documentation For Models

Documentation For Authorization

BasicAuth

  • 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)

BearerAuth

  • Type: API key

Example

auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
	Key: "APIKEY",
	Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)

Author

# Functions

CacheExpires helper function to determine remaining time before repeating a request.
NewAPIClient creates a new API client.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ContextAccessToken takes a string oauth2 access token as authentication for the request.
ContextAPIKey takes an APIKey as authentication for the request.
ContextBasicAuth takes BasicAuth as authentication for the request.
ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.

# Structs

No description provided by the author
APIClient manages communication with the Nodeum API API v2.0.0 In most cases there should be only one, shared, APIClient.
No description provided by the author
APIKey provides API key based authentication to a request passed via context using ContextAPIKey.
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
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth.
Attribute can't be blank.
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
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
Attribute can't be updated.
GenericSwaggerError Provides access to the body, error and model on returned errors.
Attribute must be greater than %{count}.
Attribute must be greater than or equal to %{count}.
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
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
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
Attribute is invalid.
Attribute must be less than %{count}.
Attribute must be less than or equal to %{count}.
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
No description provided by the author
No description provided by the author
No description provided by the author
Must have less than %{count} occurrences (currently have %{value}).
Must have at most or less than %{count} occurrences (currently have %{value}).
Quota on cache can't be above 100% (total).
No description provided by the author
Attribute has already been taken.
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
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
No description provided by the author
Attribute is too long (maximum is %{count} characters).
Attribute is too short (minimum is %{count} characters).

# Type aliases

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
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