@unparallel/smartclide-che-rest-client
v1.0.8
Published
This connector implements the logic needed to connect with SmartCLIDE workspaces, providing an abstraction used by the SmartCLIDE IDE.
Downloads
11
Readme
SmartCLIDE Che REST Client
This connector abstracts the Eclipse Che API, providing methods to easily obtain specific information about a user and their workspaces.
Installation
Use the package manager npm to install the SmartCLIDE connector.
npm install @unparallel/smartclide-che-rest-client
Usage
import Connector from '@unparallel/smartclide-che-rest-client';
let connector = new Connector(baseURL);
// Create workspace with the given devfile
connector.createWorkspace(keycloakToken, devfile);
// Get list of all workspaces
connector.getWorkspaces(keycloakToken);
// Get list of all workspaces of the given type
connector.getWorkspacesWithType(keycloakToken, workspaceType);
// Get N most recent workspaces
connector.getLatestWorkspaces(keycloakToken, n);
// Get details of a given workspace
connector.getWorkspace(keycloakToken, workspaceID);
// Check if given workspace exists
connector.workspaceExists(keycloakToken, workspaceName);
// Launch the given workspace
connector.startWorkspace(keycloakToken, workspaceID);
// Update the given workspace with the provided data
connector.updateWorkspace(keycloakToken, workspaceID, data);
// Stop the given workspace
connector.stopWorkspace(keycloakToken, workspaceID);
// Delete the given workspace
connector.deleteWorkspace(keycloakToken, workspaceID);